Dear greg k-h

----- Original Message -----
From: "Greg KH" <[EMAIL PROTECTED]>
To: "David Cullen" <[EMAIL PROTECTED]>
Sent: Monday, June 30, 2003 7:42 PM
Subject: Re: [Linux-usb-users] USB hot plug fails even though driver works


> On Mon, Jun 30, 2003 at 07:33:52PM -0400, David Cullen wrote:
> > Dear greg k-h
>
> Any reason for not responding to the list, and sending this to me only?

1000 pardons.  I thought I checked the To: field and it said
[EMAIL PROTECTED]

> > > What is the usbio driver?  Where is the code for it located at?
> >
> > The usbio driver is a driver that I wrote for the Delcom USB I/O board.
See
> >
> >    http://www.delcom-eng.com/products_USBIO.asp#DemoBrd

I forgot to tell you where I put the code.  The code consists of usbio.c and
usbio.h and they are both located in "/usr/src/linux/drivers/usb".  I added
a line to Config.in, which auto-magically adds the necessary stuff to build
and install the module.

>
> 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?

> > 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.

David Cullen

May God bless you, and keep you, and may you one day experience
eternal life, and all the joys that accompany it, in this life and
the life to come, for eternal life is to know God, and the one
whom He has sent, Jesus Christ, the Word manifest in the flesh.





-------------------------------------------------------
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