Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2002 02:13:12 +0700 (NOVST)
From:      "Semen A. Ustimenko" <semenu@FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org
Cc:        Bill Paul <wpaul@FreeBSD.org>
Subject:   MIIBUS_MEDIAINIT method
Message-ID:  <20020422020233.W611-100000@def.the.net>

next in thread | raw e-mail | index | archive | help
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?

Thanks!


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020422020233.W611-100000>