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:
92a6e6b
)
USB: pxa27x_udc: use four bits to store endpoint addresses
author
Matt Reimer
<
[email protected]
>
Thu, 1 Apr 2010 20:44:04 +0000
(13:44 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 20 May 2010 20:21:36 +0000
(13:21 -0700)
Endpoint addresses on pxa27x can be programmed as 1-15, but since
only three bits were being used to store the endpoint number it
was possible to overflow.
Signed-off-by: Matt Reimer <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/gadget/pxa27x_udc.h
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/pxa27x_udc.h
b/drivers/usb/gadget/pxa27x_udc.h
index ff61e4866e8afa4d2f072f3520009b36a9fd155d..cd16231d8c731633d3ed211f6a8b788e72e64113 100644
(file)
--- a/
drivers/usb/gadget/pxa27x_udc.h
+++ b/
drivers/usb/gadget/pxa27x_udc.h
@@
-360,7
+360,7
@@
struct pxa_ep {
* Specific pxa endpoint data, needed for hardware initialization
*/
unsigned dir_in:1;
- unsigned addr:
3
;
+ unsigned addr:
4
;
unsigned config:2;
unsigned interface:3;
unsigned alternate:3;