diff options
author | Matt Reimer <mreimer@sdgsystems.com> | 2010-04-01 16:44:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-20 16:21:36 -0400 |
commit | 0ff8d1b3c858ea7c8daa54f7577971a76d04d283 (patch) | |
tree | e4ba112b93414b5f334d51ed1ec0a8e1f4e239f6 /drivers/usb | |
parent | 92a6e6b3280776b1341cd61b1d137ec34ab3f30b (diff) |
USB: pxa27x_udc: use four bits to store endpoint addresses
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 <mreimer@sdgsystems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pxa27x_udc.h b/drivers/usb/gadget/pxa27x_udc.h index ff61e4866e8a..cd16231d8c73 100644 --- a/drivers/usb/gadget/pxa27x_udc.h +++ b/drivers/usb/gadget/pxa27x_udc.h | |||
@@ -360,7 +360,7 @@ struct pxa_ep { | |||
360 | * Specific pxa endpoint data, needed for hardware initialization | 360 | * Specific pxa endpoint data, needed for hardware initialization |
361 | */ | 361 | */ |
362 | unsigned dir_in:1; | 362 | unsigned dir_in:1; |
363 | unsigned addr:3; | 363 | unsigned addr:4; |
364 | unsigned config:2; | 364 | unsigned config:2; |
365 | unsigned interface:3; | 365 | unsigned interface:3; |
366 | unsigned alternate:3; | 366 | unsigned alternate:3; |