u-boot/drivers/usb
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
..
eth smsc95xx: Debug message cleanup 2011-11-22 08:39:24 +01:00
gadget USB: Use (get|put)_unaligned for accessing wMaxPacketSize 2011-12-16 21:37:17 +01:00
host USB: EHCI: Allow EHCI post-powerup configuration in board files 2011-12-11 14:50:03 +01:00
musb drivers/usb/musb/musb_udc.c: Fix GCC 4.6 warning 2011-12-09 10:36:33 +01:00
phy Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
ulpi USB: ULPI: increase error case verbosity 2011-12-16 21:05:46 +01:00