bug fix for aue driver

Nenhum_de_Nos matheus at eternamente.info
Thu Jul 30 05:14:44 UTC 2009


On Thu, July 30, 2009 01:11, john hood wrote:
> I have a D-Link DSB-650 USB ethernet adapter, which uses an ADMtek AN986
> USB MAC, a Broadcom BCM5201 PHY device, and the aue driver.
>
> Recent versions of FreeBSD (7.1, 7.2, 8 beta 2) all get stuck on "aue0:
> MII read timed out" errors after you try and bring the interface up.
> (The system continues to run, but you get long waits performing ioctls
> on the device, and no actual packets.)
>
> I think I've found the problem; the device is getting mis-initialized,
> and has been ever since the early days of the driver.  The old code
> mis-sets a power-down configuration line on the PHY just as it's
> resetting it.
>
> I think I have a fix; it 1) does the right thing for ADMtek's reference
> design, 2) matches (better) what the Linux driver does (successfully,
> for me), 3) matches the actual circuit of the DSB-650, 4) makes sense
> when you read it.  I suspect it will improve the situation for most
> users of Pegasus-based Ethernet adapters, and probably resolve most of
> the weird media- and PHY-related issues the driver's had for its entire
> life.
>
> Would people try the attached patch?  (If anyone cares much about an
> obsolete Ethernet adapter-- I used this mostly as an excuse to wade into
> the USB stack and understand it a little better...)  If you get
> debugging spew, please forward it to me.  If it just works (or not),
> tell me that too.
>
> The patch is against 8.0-beta2.  It won't apply to the old, pre-USB2
> driver in sys/dev/usb/if_aue.c, but the significant change is the reset
> code in the last hunk of the patch; trying that on whatever version of
> FreeBSD you're using is worthwhile.
>
> Thanks,
>
>   --jh

I had problems using some aue in anything prior to 8-current. when I used
usb from hps, all worked fine. I filed a PR for 7-stable in that time. my
aue on 7.x didn't work at all.

matheus

-- 
We will call you cygnus,
The God of balance you shall be

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

http://en.wikipedia.org/wiki/Posting_style


More information about the freebsd-usb mailing list