On Fri, 9 Apr 2004, David Brownell wrote:

> Ryan Veety wrote:
> > I'm not sure if this is sparc specific, but since 2.4.5 I get an oops
> > loading usbnet.  Attached is a tiny patch to usbcore that fixes the oops
> > for me.  The problem is usb_disable_interface is called before any
> > alternates are set.
>
> Hmm?  That doesn't sound right.

Thats what I came up with after adding some printk's to figure out whats going
on.  In usb_disable_interface intf->cur_altsetting was NULL.  By breaking out
of usb_disable_interface if altsetting is NULL, the usbnet driver worked fine.
Also I ment to say kernel 2.6.5, not 2.4.5.

> If you apply the bk-usb.patch
> from 2.6.5-mm, or this patchlet from it,
>
>     http://marc.theaimsgroup.com/?l=linux-usb-devel&m=108127123114951&w=2
>
> Does that resolve the problem?

Yes, that also fixed the problem.  I'm sure its a much more correct patch than
my simple hack :)

Thanks
Ryan
     __________________________________________________________
   .'  Ryan Veety <[EMAIL PROTECTED]> - http://www.ryanspc.com  `.
   |          PGP Key: http://www.ryanspc.com/pgp.txt           |
    `----------------------------------------------------------'


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to