In message <[EMAIL PROTECTED]>, "Semen A. Ustimenko" write
s:
>Hi!
>
>I was just thinking about the purpose of this method... What is it?
>
>It used to be used by NIC drivers to add something like AUI beside MII
>provided media, correct?
>
>But it looks like every PHY's driver thinks it must call MEDIAINIT in its
>attach() routine. So, if there would be two PHY on MII (can this happen?),
>then the method will be called twice, and some NIC drivers (tx, xl, dc,
>maybe more) will not behave well.
>
>Isn't it reasonable to stop all PHY drivers from calling MEDIAINIT, and
>call it once per miibus instance in miibus_attach() or miibus_probe()
>instead?

I just had reason to mess around with a PHY GigE related problem
as well, and I can only say that the MII code might have sounded
like a good idea at the time but the implementation sucks as far
as I can tell.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to