From owner-freebsd-hackers Sun Apr 21 12:13:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from viola.sinor.ru (viola.sinor.ru [217.70.106.9]) by hub.freebsd.org (Postfix) with ESMTP id A7A0237B405; Sun, 21 Apr 2002 12:13:16 -0700 (PDT) Received: from tlg2-ppp15.sibnet.ru (tlg2-ppp15.sibnet.ru [217.70.97.126]) by viola.sinor.ru (8.9.3/8.9.3) with ESMTP id CAA05985; Mon, 22 Apr 2002 02:13:13 +0700 Date: Mon, 22 Apr 2002 02:13:12 +0700 (NOVST) From: "Semen A. Ustimenko" X-X-Sender: semenu@def.the.net To: freebsd-hackers@FreeBSD.org Cc: Bill Paul Subject: MIIBUS_MEDIAINIT method Message-ID: <20020422020233.W611-100000@def.the.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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