summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorMario Schuknecht <mario.schuknecht@dresearch-fe.de>2015-01-26 20:30:27 +0100
committerFelipe Balbi <balbi@ti.com>2015-01-27 09:34:58 -0600
commitdf6738d0d23321da834e9025845e26e09b0f6615 (patch)
treef0d0ee5e2960791389484631d180cf70ed3931de /drivers/usb/gadget/composite.c
parentcb83df77f3ec151d68a1b6be957207e6fc7b7f50 (diff)
downloadop-kernel-dev-df6738d0d23321da834e9025845e26e09b0f6615.zip
op-kernel-dev-df6738d0d23321da834e9025845e26e09b0f6615.tar.gz
usb: gadget: Fix os desc test
USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR with bRequestType instead of bRequest. Signed-off-by: Mario Schuknecht <mario.schuknecht@dresearch-fe.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 6178353..13adfd1 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -1655,7 +1655,7 @@ unknown:
* OS descriptors handling
*/
if (cdev->use_os_string && cdev->os_desc_config &&
- (ctrl->bRequest & USB_TYPE_VENDOR) &&
+ (ctrl->bRequestType & USB_TYPE_VENDOR) &&
ctrl->bRequest == cdev->b_vendor_code) {
struct usb_request *req;
struct usb_configuration *os_desc_cfg;
OpenPOWER on IntegriCloud