From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jerry" Date: Wed, 09 Nov 2005 10:48:52 +0000 Subject: Question about USB hotpluging Message-Id: <06b201c5e51b$2cd484d0$9700a8c0@jerrynb> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_06AF_01C5E55E.3AA251D0" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_06AF_01C5E55E.3AA251D0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Dear Sir, Dear Sir, Environment: Suse 9.1 professional Kernel: 2.6.4-52 Project: writing a USB driver for CMOS sensor problem description: 1. the code is modified from ov511 sample source code. 2. the driver has been registered successfully. 3. videodev module also has been installed successfully. 4. the devices and drivers is located in /sys/bus/usb/devices and /sys/bus/usb/drivers instead of /proc/bus/usb. 5. when I execute the following code in probe() function, value=0x02;//declare as unsigned char actualLen=1; rc= usb_bulk_msg(wis->dev, usb_sndbulkpipe(wis->dev,0), &value,1,&actualLen,HZ); printk(KERN_ALERT "########## reg_r[1], rc=%d: %s \n",rc,symbolic(urb_errlist,rc)); rc= usb_bulk_msg(wis->dev, usb_recbulkpipe(wis->dev,0), &rValue,1,&actualLen,HZ); printk(KERN_ALERT "########## reg_r[2], actualLen=%d, buf=0x%x, rc=%d: %s \n",actualLen,rValue,rc,symbolic(urb_errlist,rc)); printk(KERN_ALERT "########## reg_r[3] ! \n"); 6. I got the error messages from /var/log/messages and shown it as attached file. Does anybody be able to help me to solve this problem ? Thanks and Regards, Jerry ------=_NextPart_000_06AF_01C5E55E.3AA251D0 Content-Type: text/plain; name="log.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="log.txt" Nov 9 18:07:00 linux kernel: usb 1-2: new full speed USB device using = address 6 Nov 9 18:07:00 linux kernel: usb 1-2: Product: USB camera Nov 9 18:07:00 linux /sbin/hotplug[5684]: add usb Nov 9 18:07:00 linux /sbin/hotplug[5684]: LOGPID=3D5684 OLDPWD=3D/ = DEVPATH=3D/devices/pci0000:00/0000:00:13.0/usb1/1-2 PATH=3D/sbin:/usr/sbin:/bin:/usr/bin ACTION=3Dadd PWD=3D/etc/hotplug = SHLVL=3D1 HOME=3D/ SEQNUM=3D237 _=3D/usr/bin/env Nov 9 18:07:00 linux kernel: Start to probe for device... ! Nov 9 18:07:00 linux kernel: Vendor ID 0x093a Nov 9 18:07:00 linux kernel: Product ID 0x0017 Nov 9 18:07:00 linux kernel: Start to probe for device...[0] ! Nov 9 18:07:00 linux kernel: Start to probe for device... ! [1] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [2] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [3] Nov 9 18:07:00 linux kernel: USB wiscms12 video device found Nov 9 18:07:00 linux kernel: Start to probe for device... ! [4] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [5] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [6] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [7] Nov 9 18:07:00 linux kernel: size=3D993,alt=3D1 Nov 9 18:07:00 linux kernel: Start to probe for device... ! [8] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [9] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [10] Nov 9 18:07:00 linux kernel: Start to probe for device... ! [11] Nov 9 18:07:00 linux kernel: Device at usb-0000:00:13.0-2 registered to = minor 0 Nov 9 18:07:00 linux kernel: Start to probe for device... ! [12] Nov 9 18:07:00 linux /sbin/hotplug[5686]: add usb Nov 9 18:07:00 linux /sbin/hotplug[5686]: LOGPID=3D5686 OLDPWD=3D/ = DEVPATH=3D/devices/pci0000:00/0000:00:13.0/usb1/1-2/1-2:1.0 PATH=3D/sbin:/usr/sbin:/bin:/usr/bin ACTION=3Dadd PWD=3D/etc/hotplug = SHLVL=3D1 HOME=3D/ DEVICE=3D/proc/bus/usb/001/006 PRODUCT=3D93a/17/100 = TYPE=3D255/255/255 SEQNUM=3D238 _=3D/usr/bin/env Nov 9 18:07:00 linux /sbin/hotplug[5702]: add video4linux Nov 9 18:07:00 linux /sbin/hotplug[5702]: LOGPID=3D5702 OLDPWD=3D/ = DEVPATH=3D/class/video4linux/video0 PATH=3D/sbin:/usr/sbin:/bin:/usr/bin ACTION=3Dadd PWD=3D/etc/hotplug = SHLVL=3D1 HOME=3D/ SEQNUM=3D239 _=3D/usr/bin/env Nov 9 18:07:00 linux kernel: ########## reg_r[1], rc=3D-110: NAK = (device does not respond) Nov 9 18:07:00 linux /sbin/hotplug[5702]: no runnable = /etc/hotplug/video4linux.agent is installed Nov 9 18:07:00 linux kernel: ########## reg_r[2], actualLen=3D0, = buf=3D0x2, rc=3D-110: NAK (device does not respond) Nov 9 18:07:00 linux kernel: ########## reg_r[3] ! Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: need a device for = this command Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: Setup 'wiscms12 ' = for 'USB product 93a/17/100' (from /etc/hotplug/usb.handmap) Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: Setup 'wiscms12 ' = for 'USB product 93a/17/100' (from /etc/hotplug/usb.usermap) Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: No drivers for 'USB = product 93a/17/100' (from /etc/hotplug/usb/ISDN.usermap) Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: No drivers for 'USB = product 93a/17/100' (from /etc/hotplug/usb/alsasound.usermap) Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: No drivers for 'USB = product 93a/17/100' (from /etc/hotplug/usb/sane-hardcoded.usermap) Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: No drivers for 'USB = product 93a/17/100' (from /etc/hotplug/usb/tascam_fw.usermap) Nov 9 18:07:00 linux /etc/hotplug/usb.agent[5686]: No drivers for 'USB = product 93a/17/100' (from /etc/hotplug/usb/usbcam.usermap) ------=_NextPart_000_06AF_01C5E55E.3AA251D0-- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel