[PATCH] updates for KLSI usb->ethernet

Eric Sandeen (sandeen@sgi.com)
Wed, 07 Feb 2001 00:38:52 -0600


This patch, against 2.4.1-ac4, does the following for the KLSI
USB->ethernet adapter:

(patch at http://lager.dyndns.org/kaweth/KLSI-2.4.1-ac4.patch.bz2)

o Fixes firmware downloading. If firmware is already loaded
and an attempt is made to download it again, the device
will hang. This will happen on a warm boot. Driver now
checks the bcdDevice value, which changes after firmware
is loaded. It does this via usb_get_device_descriptor()
to avoid caching. If device already has firmware, it will
skip the download.

o Reports bcdDevice revision in debugging messages

o Updates firmware revision, fresh from KLSI

o Actually _uses_ interrupt parameter passed to
kaweth_trigger_firmware()

o added function prototype for
kaweth_internal_control_msg() to avoid warning

o spells "receive" correctly. :)

There is another way to handle the firmware download check - there is a
chunk of firmware which can be downloaded that causes the device to
disconnect, wait, then reconnect to the USB bus. When it reappears, it
has the new bcdDevice value in the descriptor.

This might be a better way to go, so that the device descriptor doesn't
silently change. I've also seen some errors when I try to re-read the
device descriptor with usb_get_device_descriptor(), for some reason.

Any thoughts on what would be more correct,

a) device descriptor silently changes
b) device magically disconnects/reconnects on its own

Both seem a bit odd, but take your pick. :)

-Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/