projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3522086
)
USB: gadget: composite: Don't call set_alt() on functions that are hidden.
author
Mike Lockwood
<lockwood@android.com>
Fri, 26 Feb 2010 14:30:01 +0000
(09:30 -0500)
committer
Colin Cross
<ccross@android.com>
Tue, 14 Jun 2011 16:09:05 +0000
(09:09 -0700)
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/composite.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/composite.c
b/drivers/usb/gadget/composite.c
index 46a65082212750110fe8dcdf5bd5263c2544fefe..cf7a5cf8503e25ba5ff0054ace23eff2b252d96b 100644
(file)
--- a/
drivers/usb/gadget/composite.c
+++ b/
drivers/usb/gadget/composite.c
@@
-484,6
+484,8
@@
static int set_config(struct usb_composite_dev *cdev,
if (!f)
break;
+ if (f->hidden)
+ continue;
/*
* Record which endpoints are used by the function. This is used