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
..
2010-08-09 01:07:37 +02:00
2011-12-07 08:42:28 +01:00
2011-11-22 08:39:25 +01:00
2011-11-15 23:58:26 +01:00
2011-04-13 15:56:39 -04:00
2011-04-08 00:44:27 -04:00
2011-12-01 09:49:31 +01:00
2011-07-26 14:30:08 +02:00
2010-07-04 23:55:42 +02:00
2010-08-09 01:07:37 +02:00
2011-05-10 22:47:32 +02:00
2010-08-09 01:06:34 +02:00
2010-11-28 21:58:24 +01:00
2011-11-22 08:39:25 +01:00
2010-07-24 20:43:57 +02:00
2010-07-04 23:55:42 +02:00
2010-10-12 22:44:33 +02:00
2011-10-22 01:22:21 +02:00
2010-07-04 23:55:42 +02:00
2011-07-28 16:32:50 +02:00
2011-10-26 21:33:42 +02:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2010-07-24 20:54:46 +02:00
2011-11-16 21:04:44 +01:00
2011-08-04 23:34:02 +02:00
2011-06-01 22:44:50 +02:00
2011-07-26 16:58:48 +02:00
2011-11-07 22:47:40 +01:00
2011-08-01 15:19:40 +02:00
2011-04-13 15:57:00 -04:00
2010-07-04 23:55:42 +02:00
2011-11-22 08:39:25 +01:00
2011-11-03 20:41:47 +01:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2011-02-15 21:45:55 +01:00
2011-01-19 00:04:43 +01:00
2011-04-08 00:44:27 -04:00
2011-09-13 08:30:52 +02:00
2010-08-09 01:07:37 +02:00
2010-07-24 20:43:57 +02:00
2011-10-27 21:56:30 +02:00
2011-07-28 16:41:06 +02:00
2011-07-26 14:36:07 +02:00
2011-04-30 23:09:48 +02:00
2011-11-22 08:39:25 +01:00
2010-07-24 20:43:57 +02:00
2010-08-09 01:06:34 +02:00
2011-01-09 18:06:50 +01:00
2010-07-24 20:43:57 +02:00
2011-04-29 03:20:01 -05:00
2011-07-15 20:29:22 -05:00
2011-09-29 19:01:05 -05:00
2011-10-27 23:54:04 +02:00
2011-10-03 18:35:12 -05:00
2011-10-26 21:36:46 +02:00
2011-12-12 08:25:38 +01:00
2010-12-17 14:32:12 -06:00
2010-10-02 16:00:40 -04:00
2011-11-22 08:39:25 +01:00
2010-07-04 23:55:42 +02:00
2010-07-24 20:43:57 +02:00
2011-12-06 21:21:42 +01:00
2010-07-16 10:55:09 -05:00
2010-07-24 20:43:57 +02:00
2011-07-26 14:10:14 +02:00
2011-07-26 14:10:14 +02:00
2010-07-24 20:43:57 +02:00
2011-10-05 22:22:17 +02:00
2011-07-26 14:33:10 +02:00
2010-07-04 23:55:42 +02:00
2010-10-06 20:50:38 -04:00
2010-08-09 01:07:37 +02:00
2010-08-09 01:07:37 +02:00
2010-07-04 23:55:42 +02:00
2010-07-04 23:55:42 +02:00
2011-10-09 23:24:48 +02:00
2011-12-06 21:30:03 +01:00
2011-11-16 21:42:17 +01:00
2011-10-01 23:34:21 +02:00
2010-12-03 18:24:04 +01:00
2011-11-16 21:04:55 +01:00
2011-04-13 15:56:47 -04:00
2011-12-16 21:37:17 +01:00
2011-07-28 17:22:53 +02:00
2011-10-22 01:13:35 +02:00
2011-09-10 00:00:15 +02:00
2011-10-23 23:32:44 +02:00
2011-12-09 14:44:22 +01:00
2011-04-04 09:24:43 -05:00
2011-09-10 16:05:43 +02:00
2011-11-22 08:39:27 +01:00
2011-11-22 08:39:26 +01:00
2011-11-22 08:39:26 +01:00
2011-11-22 08:39:26 +01:00
2011-11-22 08:39:26 +01:00
2011-11-22 08:39:25 +01:00
2011-11-22 08:39:26 +01:00
2011-12-06 12:03:08 +01:00
2011-11-22 08:39:25 +01:00
2011-11-22 08:39:26 +01:00
2011-11-22 08:39:26 +01:00
2011-11-22 08:39:26 +01:00
2011-12-07 08:41:22 +01:00
2011-11-13 11:21:34 -05:00
2010-09-20 15:08:51 +02:00
2011-11-22 08:39:25 +01:00
2011-02-02 22:36:10 +01:00
2011-12-12 08:17:52 +01:00
2010-01-18 00:23:00 +01:00
2010-07-04 23:55:42 +02:00
2011-12-06 23:59:32 +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-07-17 17:11:53 +02:00
2011-12-05 23:26:40 +01:00
2011-12-07 08:35:14 +01:00
2011-11-22 08:39:25 +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
2011-10-27 23:54:03 +02:00
2011-12-16 21:37:17 +01:00
2011-07-28 21:27:36 +02:00