On Wed, 9 Nov 2005, Jerry wrote: > 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), ---------------------------------------------------- ^ --------------^
Endpoint 0 is not a bulk endpoint. > &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 ? Alan Stern ------------------------------------------------------- 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-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel