On Mon, Jun 30, 2003 at 08:39:05PM -0400, David Cullen wrote:
> > Do you want this driver included in the main kernel tree?
> >
> 
> I don't know.  Why would I want to add it?  What would I have to do to add
> it?

If you add it, then any further API changes to the USB or other parts of
the kernel will cause those changes to be made for your driver too.
This saves a lot in maintainance costs and time.

Also, this gets your driver into all of the Linux distros, which will
save you time and trouble in getting the driver to your users.

Just send me a patch against the latest 2.4 and 2.5 kernels and I'll
take a look at it.  Please CC the linux-usb-devel mailing list too, so
the people there can look your code over.

> > > Here's the source code for MODULE_DEVICE_TABLE:
> > >
> > > // Table of devices that work with this driver
> > > static struct usb_device_id usbio_table [] = {
> > >    { USB_DEVICE(USBIO_VENDOR_ID, USBIO_PRODUCT_ID) },
> > >    { } // Terminating entry
> > > };
> > >
> > > MODULE_DEVICE_TABLE(usb, usbio_table);
> >
> > Did you run 'depmod' after putting your driver into the proper
> > lib/modules/<KERNEL_VERSION>... directory?  That's what generates the
> > module.usbmap file that the hotplug system uses to match up devices to
> > modules.
> 
> depmod is run auto-magically by "make modules_install".  As I said before,
> grep'ing the modules.usbmap file gives this result:
> 
> usbio 0x0003 0x0fc5 0x1222 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00
> 0x00000000
> 
> which should tell "usb.agent" to use only the vendor ID and product ID (mask
> = 0x0003) to select a device driver.  However, as I said before, the
> function "usb_map_modules()" in "usb.agent" is not being called.

Hm, don't know why that would happen, do you have the latest version of
the hotplug scripts from linux-hotplug.sf.net?

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to