Re: usb_control_msg question

Pete Zaitcev <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Red Hat, Inc.
Message-ID <[email protected]>
On Tue, 17 Jul 2007 11:04:05 -0700, "Gabriel Maganis" <[email protected]> wrote:

>    ret = usb_control_msg(dev,
>             usb_rcvctrlpipe(dev, 0),
>             SET_IDLE,
>             (0x01 << 5) + 0x01,
>             0xaa00, 0, data, 0, USB_CTRL_SET_TIMEOUT);

Are you sure you want to use input pipe with SET_IDLE?

> I've been able to do all of this using libusb in user space
> but have no success within a kernel module.

Compare usbmon traces for two cases, the difference should be evident.

-- Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.