Tom Rini b2fb47f187 USB: Use (get|put)_unaligned for accessing wMaxPacketSize
In 9792987721c7980453fe6447c3fa6593b44f8458 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
..
2011-04-13 15:56:39 -04:00
2010-11-28 21:58:24 +01:00
2011-10-22 01:22:21 +02:00
2011-07-28 16:32:50 +02:00
2011-10-26 21:33:42 +02:00
2010-07-24 20:54:46 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-04-13 15:57:00 -04:00
2011-04-08 00:44:27 -04:00
2011-10-27 21:56:30 +02:00
2011-07-28 16:41:06 +02:00
2011-01-09 18:06:50 +01:00
2011-04-29 03:20:01 -05:00
2011-07-15 20:29:22 -05:00
2011-10-26 21:36:46 +02:00
2010-12-17 14:32:12 -06:00
2010-07-16 10:55:09 -05:00
2011-07-26 14:10:14 +02:00
2011-07-26 14:10:14 +02:00
2011-10-05 22:22:17 +02:00
2011-10-09 23:24:48 +02:00
2011-10-01 23:34:21 +02:00
2011-07-28 17:22:53 +02:00
2011-10-22 01:13:35 +02:00
2011-12-06 12:03:08 +01:00
2011-12-07 08:41:22 +01:00
2011-02-02 22:36:10 +01:00
2010-01-18 00:23:00 +01:00
2011-10-22 01:13:35 +02:00
2011-10-17 22:25:35 +02:00
2011-12-10 17:54:04 -05:00
2011-12-05 23:26:40 +01:00
2011-12-05 22:48:10 +01:00
2011-09-04 23:27:52 +02:00
2011-10-26 21:33:42 +02:00
2011-12-11 14:40:38 +01:00