projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea86507
)
usb: gadget: net2280: set all byte enables on start
author
Mian Yousaf Kaukab
<yousaf.kaukab@intel.com>
Sat, 16 May 2015 20:33:34 +0000
(22:33 +0200)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 26 May 2015 15:40:06 +0000
(10:40 -0500)
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>
drivers/usb/gadget/udc/net2280.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/net2280.c
b/drivers/usb/gadget/udc/net2280.c
index 4a90ae6f9bb89f203d7971babd0fb9d154a9e8b4..878a98ed84f58432816b55661132f493ab0be6cc 100644
(file)
--- a/
drivers/usb/gadget/udc/net2280.c
+++ b/
drivers/usb/gadget/udc/net2280.c
@@
-238,6
+238,7
@@
net2280_enable(struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
tmp |= (ep->is_in << ENDPOINT_DIRECTION);
}
+ tmp |= (4 << ENDPOINT_BYTE_COUNT);
tmp |= usb_endpoint_num(desc);
tmp |= (ep->ep.maxburst << MAX_BURST_SIZE);
}