Skip to content

Commit 463e104

Browse files
Mian Yousaf KaukabFelipe Balbi
authored andcommitted
usb: gadget: net2280: set all byte enables on start
Default 0 value can result in unintentional zlp for IN endpoints. 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 ea86507 commit 463e104

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/gadget/udc/net2280.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
238238
tmp |= (ep->is_in << ENDPOINT_DIRECTION);
239239
}
240240

241+
tmp |= (4 << ENDPOINT_BYTE_COUNT);
241242
tmp |= usb_endpoint_num(desc);
242243
tmp |= (ep->ep.maxburst << MAX_BURST_SIZE);
243244
}

0 commit comments

Comments
 (0)