projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fc0a7c
)
usb: gadget: net2280: don't set ep_cfg.direction bit
author
Mian Yousaf Kaukab
<yousaf.kaukab@intel.com>
Sat, 16 May 2015 20:33:33 +0000
(22:33 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 26 May 2015 15:40:01 +0000
(10:40 -0500)
USB3380 ep_cfg.direction bit is reserved in enhanced mode. Don't set
it.
Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/net2280.c
b/drivers/usb/gadget/udc/net2280.c
index 07e0dba3be077b20cf2c1d4732b6a12e9ab0a7a6..4a90ae6f9bb89f203d7971babd0fb9d154a9e8b4 100644
(file)
--- a/
drivers/usb/gadget/udc/net2280.c
+++ b/
drivers/usb/gadget/udc/net2280.c
@@
-232,8
+232,6
@@
net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
if (dev->enhanced_mode && ep->is_in) {
tmp <<= IN_ENDPOINT_TYPE;
tmp |= BIT(IN_ENDPOINT_ENABLE);
- /* Not applicable to Legacy */
- tmp |= BIT(ENDPOINT_DIRECTION);
} else {
tmp <<= OUT_ENDPOINT_TYPE;
tmp |= BIT(OUT_ENDPOINT_ENABLE);