On Thu, Nov 20, 2003 at 05:34:10AM -0800, David Brownell wrote:
> don wrote:
> >My Zaurus won't connect unless I modify this file.
> 
> Looks to me like it should work just fine -- except that
> hotplug won't load the module automatically because:

Exactly.

> >On my system, /sbin/hotplug is not called with an INTERFACE= argument.
> >
> >/sbin/hotplug: arguments (usb) env (... TYPE=2/0/0 ...)
> 
> Which, by the way, is a lie.  The device is NOT conformant
> with the CDC Ethernet class, even though it claims to be;
> it uses an encapsulation that's explicitly forbidden.
> (Which is why you can't use the CDCEther driver with it.)

Yes, unfortunately I am stuck with Sharp's code (yes I know about OZ
etc.).

> >Thus this never matches.
> >
> >It appears from the code in usb.c that there will only be an INTERFACE=
> >argument if the class is 0, which it isn't.
> 
> That seems like the root cause here.  Of course it's been that way for
> several years now.  That restriction to zero (USB_CLASS_PER_INTERFACE)
> should probably be removed ... in fact I thought that 2.6 had already
> removed it, but I see it hasn't.  Try removing that.

That works too, I'll leave it to people who know more about the whole
USB system to say which is the best fix.  Just changing the Zaurus
specific part of usbnet.c won't impact other drivers or devices.

> I'm assuming that some bug in the hotplug scripts, since fixed,
> covered up this problem.  I'm pretty sure I've seen Zaurii use
> hotplug to load "usbnet" before.

Perhaps different models or versions (mine is a 5500 with the 2.37 rom).

I just took a look at the lates hotplug scripts 2003_08_05, and the
behavior is the same.  If not INTERFACE= is given, these values are set
to 1000, which won't match anything.

So I will repeat my assertion that something must be changed for this
device to be recognized hotplug.

With the usb.c change, two interfaces appear:

  PRODUCT=4dd/8004/0 TYPE=2/0/0 INTERFACE=2/6/0

  PRODUCT=4dd/8004/0 TYPE=2/0/0 INTERFACE=10/0/0

I don't have CDCEther or acm compiled.

Don Reid


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to