Skip to content

Commit ea86507

Browse files
Mian Yousaf KaukabFelipe Balbi
authored andcommitted
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>
1 parent 3fc0a7c commit ea86507

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb/gadget/udc/net2280.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
232232
if (dev->enhanced_mode && ep->is_in) {
233233
tmp <<= IN_ENDPOINT_TYPE;
234234
tmp |= BIT(IN_ENDPOINT_ENABLE);
235-
/* Not applicable to Legacy */
236-
tmp |= BIT(ENDPOINT_DIRECTION);
237235
} else {
238236
tmp <<= OUT_ENDPOINT_TYPE;
239237
tmp |= BIT(OUT_ENDPOINT_ENABLE);

0 commit comments

Comments
 (0)