Dear Folks,

When I hotplug my USB device (a Delcom Engineering USB I/O board), hotplug
fails:

Jun 30 15:15:49 linuxtest2 /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Jun 30 15:15:52 linuxtest2 kernel: hub.c: USB new device connect on bus3/2,
assigned device number 9
Jun 30 15:15:52 linuxtest2 kernel: Manufacturer: Delcom Engineering
Jun 30 15:15:52 linuxtest2 kernel: Product: USB IO Controller
Jun 30 15:15:56 linuxtest2 kernel: usb_control/bulk_msg: timeout
Jun 30 15:15:56 linuxtest2 kernel: usbio.c: usbio_probe(): device matches:
idVendor = 0FC5, idProduct = 1222
Jun 30 15:15:56 linuxtest2 kernel: usbio.c: usbio_probe():
usb_set_configuration() succeeded
Jun 30 15:15:56 linuxtest2 kernel: usbio.c: usbio_probe(): Found free minor
table entry = 0
Jun 30 15:15:56 linuxtest2 kernel: usbio.c: usbio_probe(): Allocated memory
for dev = C8602F00
Jun 30 15:15:56 linuxtest2 kernel: usbio.c: usbio_probe(): dev = C8602F00,
dev->devfs = 00000000
Jun 30 15:15:56 linuxtest2 kernel: usbio.c: usbio_probe(): Delcom USB I/O
device now attached to usbio0
Jun 30 15:15:56 linuxtest2 /sbin/hotplug: arguments (usb) env
(DEVFS=/proc/bus/usb OLDPWD=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add
PWD=/etc/hotplug SHLVL=1 HOME=/ DEVICE=/proc/bus/usb/003/009 INTERFACE=0/0/0
PRODUCT=fc5/1222/9 TYPE=0/0/0 DEBUG=yes _=/bin/env)
Jun 30 15:15:56 linuxtest2 /sbin/hotplug: invoke /etc/hotplug/usb.agent ()
Jun 30 15:15:59 linuxtest2 /etc/hotplug/usb.agent: ... no modules for USB
product fc5/1222/9

However, when I access the device through my kernel module device driver,
everything works:

Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_open(): entry
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_open(): exit
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl(): entry
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl(): minor 0, cmd
0xC0104E01, arg BFFFF9D0
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl():
IOCTL_USBIO_COMMAND
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl(): copy_from_user
succeeded
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.recipient = 0x48
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.deviceModel = 0x12
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.majorCommand = 0x0A
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.minorCommand = 0x0C
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataLSB = 0x55
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataMSB = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.length = 0x0000
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[0] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[1] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[2] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[3] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[4] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[5] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[6] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[7] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl(): pipe = 84000900
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl():
usb_control_msg(): returnValue = 8
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.recipient = 0x48
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.deviceModel = 0x12
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.majorCommand = 0x0A
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.minorCommand = 0x0C
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataLSB = 0x55
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataMSB = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.length = 0x0000
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[0] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[1] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[2] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[3] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[4] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[5] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[6] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_info_packet():
packet.dataExtension[7] = 0x00
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_ioctl(): exit
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_release(): entry
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_release(): minor 0
Jun 30 15:18:37 linuxtest2 kernel: usbio.c: usbio_release(): exit

This control message turns on every other LED on the Delcom Engineering USB
I/O board:

   http://www.delcom-eng.com/images/USBDEMOA.jpg

I am using kernel version 2.4.18-14.P4B533 (a custom kernel).  A grep of
/lib/modules/2.4.18-14.P4B533 gives

usbio 0x0003 0x0fc5 0x1222 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00
0x00000000

Sticking a "mesg" line in "/etc/hotplug/usb.agent" shows that
"usb_map_modules()" 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