Skip to contentSkip to conversation

USB: pxa27x_udc: use four bits to store endpoint addresses

PATCH New Matt Reimer 1 participant 1 message Apr 1, 2010 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/usb/gadget/pxa27x_udc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/gadget/pxa27x_udc.h +1 -1
index ff61e48..cd16231 100644
@@ -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;
Signature · 1 line
1.6.3.3