diff options
author | Mian Yousaf Kaukab <yousaf.kaukab@intel.com> | 2015-05-16 22:33:33 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-05-26 17:40:01 +0200 |
commit | ea86507fd2ebcf8bfbaf92db279331c9c600e0d2 (patch) | |
tree | 95fabf82a7e02bbeb3c5c60378a687d7b3d89914 /drivers/usb/gadget | |
parent | usb: gadget: net2280: unconditionally reset dma in usb_reset (diff) | |
download | linux-ea86507fd2ebcf8bfbaf92db279331c9c600e0d2.tar.xz linux-ea86507fd2ebcf8bfbaf92db279331c9c600e0d2.zip |
usb: gadget: net2280: don't set ep_cfg.direction bit
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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/udc/net2280.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/net2280.c index 07e0dba3be07..4a90ae6f9bb8 100644 --- 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); |