Re: [linux-usb-devel] 2.6.11: usbnet broken

From: David Brownell
Date: Wed Mar 02 2005 - 15:59:32 EST


On Wednesday 02 March 2005 9:07 am, Holger Klawitter wrote:
> Hi there,
>
> in 2.6.11 the usbnet module is not being loaded for my Zaurus SL-C860 (Vendor
> ID = 044d, Product ID = 9031), which used to work in 2.6.10. (as stated in
> previous post, rc4 and rc5 were also broken).

Hmm, I don't think that post made it near linux-usb-devel ... :)

If the problem is just that the driver isn't loaded, but works if it's
modprobed by hand (or statically linked), then it's a hotplug problem.
Likely the same one that prevents _real_ CDC Ethernet devices from
hotplugging. See if the attached patch improves things.

Alternatively, I understand that the 2.6 based OpenZaurus code is
starting to work quite well on those models. You could upgrade
from that old Lineo/Embedix code, and gain the ability to talk to
Windows using RNDIS networking for free!


> Moreover, there seems to be a wrong Product ID in usbnet (already in 2.6.9):
> is=9050 should be=9031. Hence my Zarus is being recognized as C-750/760
> (which is fine as 760 and 860 only differ in memsize).

Are you saying Linux is saying something about "750/760"? Where?
Current usbnet versions only say "Sharp Zaurus, PXA-2xx based".
Maybe the Lineo/Embedix code is mis-identifying itself.

- Dave

--- 1.184/drivers/usb/core/usb.c 2005-01-20 14:33:35 -08:00
+++ edited/drivers/usb/core/usb.c 2005-03-02 12:47:31 -08:00
@@ -601,7 +601,7 @@
usb_dev->descriptor.bDeviceProtocol))
return -ENOMEM;

- if (usb_dev->descriptor.bDeviceClass == 0) {
+ if (1) {
struct usb_host_interface *alt = intf->cur_altsetting;

/* 2.4 only exposed interface zero. in 2.5, hotplug