if_arge eventually fails to attach PHY at boot (with arswitch)
Warner Losh
imp at bsdimp.com
Tue Nov 6 21:32:34 UTC 2012
On Nov 6, 2012, at 2:01 PM, Adrian Chadd wrote:
> Hi,
>
> I'm happy to make arswitch need to be specified in hints, rather than probed.
>
> Does anyone have any cleaner ideas on how to probe this stuff? It's
> very recursive (ie, arswitch exposes an mdiobus, which the arswitch
> code then tries to probe. The probing messes the mdiobus up and makes
> it difficult to find a PHY there.)
>
> This feels like ISA all over again..
FDT is the one true way of doing this :)
Hints are a poor, bastard step-child that beats doing without...
Warner
> :)
>
> Adrian
>
> On 6 November 2012 10:39, Luiz Otavio O Souza <loos.br at gmail.com> wrote:
>> On Nov 3, 2012, at 12:48 PM, Adrian Chadd wrote:
>>> On 3 November 2012 06:10, Luiz Otavio O Souza <loos.br at gmail.com> wrote:
>>>> Hi Adrian and sorry for the delay,
>>>>
>>>> Yes, there is one fix missing, but it is not ready yet... i'm work on the fix and hope to get it ready for a review later today or tomorrow.
>>>
>>> Cool! What is it?
>>
>> The arswitch driver always tries to attach to every mdio bus on the system. When the switch exposes his own mdio another arswitch instance was trying to attach to it and while trying to read from the switch registers it sometimes upset the switch.
>>
>> I've tried to fix this by others means, but agreed with Ray that arswitch can't be really 'detected', so i just removed the auto attachment from it and now it only attaches when hinted. This fixes the problem without any additional hack.
>>
>> Please let me know what you think about it.
>>
>> The rtl8366 may have the same problem, but for now i don't have any hardware to test it...
>>
>> Ahh, the AP96 kernel file has the arswitch device declared but there is no hints for it on AP96.hints, so i didn't touch it.
>>
>> Thanks,
>> Luiz
>>
> _______________________________________________
> freebsd-embedded at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded
> To unsubscribe, send any mail to "freebsd-embedded-unsubscribe at freebsd.org"
More information about the freebsd-embedded
mailing list