u-boot-brain/drivers/usb/gadget
Tom Rini b2fb47f187 USB: Use (get|put)_unaligned for accessing wMaxPacketSize
In 9792987721 Stefan describes a usecase
where the previous behavior of leaving wMaxPacketSize be unaligned
caused fatal problems.  The initial fix for this problem was incomplete
however as it showed another cases of non-aligned access that previously
worked implicitly.  This switches to making sure that all access of
wMaxPacketSize are done via (get|put)_unaligned.

In order to maintain a level of readability to the code in some cases
we now use a variable for the value of wMaxPacketSize and in others, a
macro.

Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Remy Bohmer <linux@bohmer.net>

OpenRISC:
Tested-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>

Beagleboard xM, Pandaboard run-tested, s5p_goni build-tested.
Signed-off-by: Tom Rini <trini@ti.com>
2011-12-16 21:37:17 +01:00
..
config.c Coding Style cleanup 2010-10-27 22:48:30 +02:00
core.c drivers/usb/gadget/core.c: Fix GCC 4.6 warning 2011-12-09 10:36:54 +01:00
ep0.c drivers/usb/gadget/ep0.c: Fix GCC 4.6 warning 2011-12-09 10:37:09 +01:00
ep0.h drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
epautoconf.c USB: Use (get|put)_unaligned for accessing wMaxPacketSize 2011-12-16 21:37:17 +01:00
ether.c USB-RNDIS: Send RNDIS state on disconnecting 2011-02-19 20:32:38 +01:00
gadget_chips.h USB: gadaget: add Marvell controller support 2011-12-11 14:40:38 +01:00
Makefile usb:gadget:s5p USB Device Controller (UDC) implementation 2011-12-11 14:44:40 +01:00
mpc8xx_udc.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
mv_udc.c USB: gadaget: add Marvell controller support 2011-12-11 14:40:38 +01:00
ndis.h USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
omap1510_udc.c drivers/usb: regorganisation 2009-04-06 20:40:46 +02:00
pxa27x_udc.c pxa: convert pxa27x_udc to use read and write functions 2011-12-11 14:41:14 +01:00
regs-otg.h usb:gadget:s5p USB Device Controller (UDC) implementation 2011-12-11 14:44:40 +01:00
rndis.c Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
rndis.h USB-RNDIS: Send RNDIS state on disconnecting 2011-02-19 20:32:38 +01:00
s3c_udc_otg_xfer_dma.c usb:gadget:s5p USB Device Controller (UDC) implementation 2011-12-11 14:44:40 +01:00
s3c_udc_otg.c USB: Use (get|put)_unaligned for accessing wMaxPacketSize 2011-12-16 21:37:17 +01:00
spr_udc.c mod change 755 => 644 for multiple files 2010-03-21 22:22:53 +01:00
usbstring.c Coding Style cleanup 2010-10-27 22:48:30 +02:00