Well, my kernel is still 2.6.5, so I had to manually apply the patch's chunks #2 and #3 (after 2.6.6 goes out, I'll try it on that). And this is what now happens when I plugin the modem:
... //------------------------------------------------------- usbnet 2-2:1.0: usb_probe_interface usbnet 2-2:1.0: usb_probe_interface - got id usb_control_msg2: result = 26 usbnet: probe of 2-2:1.0 failed with error -22 drivers/usb/core/usb.c: registered new driver usbnet //-------------------------------------------------------
You know, it's supposed to be MUCH more informative when you enable CONFIG_USB_DEBUG (which, thank you!, you did).
This patch should make "usbnet" more informative about what the real error was. In that one little stretch of init code, the debug messages weren't getting turned on ... :(
- Dave
--- 1.98/drivers/usb/net/usbnet.c Mon Apr 26 14:01:42 2004 +++ edited/derivers/usb/net/usbnet.c Sat May 8 16:49:55 2004 @@ -107,7 +107,13 @@ * *-------------------------------------------------------------------------*/ +// #define DEBUG // error path messages, extra info +// #define VERBOSE // more; success messages + #include <linux/config.h> +#ifdef CONFIG_USB_DEBUG +# define DEBUG +#endif #include <linux/module.h> #include <linux/kmod.h> #include <linux/sched.h> @@ -120,25 +126,16 @@ #include <linux/mii.h> #include <asm/uaccess.h> #include <asm/unaligned.h> - - -// #define DEBUG // error path messages, extra info -// #define VERBOSE // more; success messages -#define REALLY_QUEUE - -#if !defined (DEBUG) && defined (CONFIG_USB_DEBUG) -# define DEBUG -#endif #include <linux/usb.h> - #include <asm/io.h> #include <asm/scatterlist.h> #include <linux/mm.h> #include <linux/dma-mapping.h> - #define DRIVER_VERSION "25-Aug-2003" +#define REALLY_QUEUE + /*-------------------------------------------------------------------------*/ /* @@ -1006,7 +1003,7 @@ if (!info->control || !info->data) { dev_dbg (&intf->dev, "master #%u/%p slave #%u/%p\n", - info->u->bMasterInterface0 + info->u->bMasterInterface0, info->control, info->u->bSlaveInterface0, info->data);