Date: Sun, 15 Jun 2003 14:45:43 -0700 (PDT) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb if_axe.c if_axereg.h Message-ID: <200306152145.h5FLjhdD082083@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2003/06/15 14:45:43 PDT
FreeBSD src repository
Modified files:
sys/dev/usb if_axe.c if_axereg.h
Log:
In the device attach routine, don't depend on uaa->iface being
populated. Apparently, if you use an ehci controller, it's not.
Use usbd_device2interface_handle() to retrieve the interface handle.
NOTE: uaa->iface is populated in the probe routine, so I suspect the
fact that it's NULL in the attach routine is a bug in the ehci driver.
Also, don't depend on the PHY addresses returned by the AXE_CMD_READ_PHYID
command. The address is correct for my LinkSys NIC, but a user has
reported that with a D-Link NIC, the PHYID command returns address 4
while the attached Broadcom PHY is in fact strapped for address 0.
Instead, latch onto the first PHY address that returns valid data
during a readreg operation.
Revision Changes Path
1.4 +23 -4 src/sys/dev/usb/if_axe.c
1.2 +1 -0 src/sys/dev/usb/if_axereg.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306152145.h5FLjhdD082083>
