Hi- On Tue, 7 Jan 2003, Jeffrey McDonald wrote:
| I'm using linux kernel 2.4.20 and the usb-skeleton.c program to test a new | device. One problem is that I've receive an error message | like: | | Jan 7 14:26:29 penne kernel: usb.c: error registering skeleton driver | Jan 7 14:26:29 penne kernel: usb-skeleton.c: usb_register failed for the | usb-skeleton.c driver. Error number -22 | | When the device is attempted to be registered. This occurs only during | the first time I try to install the module (just after the device has been | plugged in). If I unload the usb-skeleton module and reload it, I don't | see this error message. This message is apparently generated based on the | number of minor device numbers, of which there are 16 defined in the | usb-skeleton module...so its not at all clear to me why this fails at the | first instance of loading but not in subsequent loads. Please advise. What USB drivers/modules are loaded when this happens? Have you modified the usb-skeleton.c driver source code? If so, how? Post it? How about testing loading/unloading the driver without the device attached? See if this has any effect (probably won't): In usb-skeleton.c, change #define USB_SKEL_MINOR_BASE 200 to #define USB_SKEL_MINOR_BASE 192 I really think that it should be a multiple of 16 (in 2.4 kernels). -- ~Randy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
