cvs commit: src/sys/dev/usb if_axe.c if_axereg.h
Bill Paul
wpaul at FreeBSD.org
Sun Jun 15 14:45:44 PDT 2003
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
More information about the cvs-src
mailing list