u-boot/drivers/serial
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
..
altera_jtag_uart.c altera_jtag_uart: bypass when no jtag connection 2010-04-24 18:21:23 -04:00
altera_uart.c nios2: Fix outx/writex parameter order in io.h 2010-04-02 12:28:41 -04:00
arm_dcc.c stdio/device: rework function naming convention 2009-07-18 00:27:46 +02:00
atmel_usart.c ATMEL: fix related common atmel driver files 2011-05-18 07:56:51 +02:00
atmel_usart.h Coding Style cleanup 2010-10-27 22:48:30 +02:00
Makefile tegra2: Remove unused low-level Tegra2 UART code 2011-12-09 17:30:09 +01:00
mcfuart.c ColdFire: Update uart_port_conf in serial driver 2010-03-24 11:09:08 -05:00
ns9750_serial.c serial: move CFG_NS9750_UART to CONFIG_NS9750_UART 2008-08-13 01:40:39 +02:00
ns16550.c ARM:AM33XX: Add support for TI AM335X EVM 2011-10-27 21:56:36 +02:00
opencores_yanu.c Coding style cleanup, update CHANGELOG. 2010-05-26 23:51:22 +02:00
s3c64xx.c Move DECLARE_GLOBAL_DATA_PTR to file scope 2010-12-21 11:33:36 +01:00
s3c4510b_uart.c drivers/serial: Move conditional compilation to Makefile for CONFIG_* macros 2008-08-03 02:24:52 +02:00
s3c4510b_uart.h drivers/serial : move serial drivers to drivers/serial 2007-11-25 23:24:16 +01:00
sandbox.c sandbox: put stdin into raw mode 2011-11-03 22:35:21 +01:00
serial.c serial: reduce include platform file for marvell chip 2011-10-27 21:56:33 +02:00
serial_clps7111.c arm720t/clps7111: move serial driver to drivers/serial 2009-03-29 23:01:42 +02:00
serial_imx.c imx: move serial driver to drivers/serial 2009-03-30 18:58:38 +02:00
serial_ixp.c trigger hardware watchdog in IXP42x serial driver 2011-06-23 08:24:55 +02:00
serial_ks8695.c ks8695: move serial driver to drivers/serial 2009-03-29 23:01:42 +02:00
serial_lh7a40x.c lh7a40x: move serial driver to drivers/serial 2009-06-12 20:39:53 +02:00
serial_lpc2292.c Update CHANGELOG, coding style cleanup. 2009-04-05 00:27:57 +02:00
serial_max3100.c drivers/serial: Move conditional compilation to Makefile for CONFIG_* macros 2008-08-03 02:24:52 +02:00
serial_mxc.c MX: serial_mxc: cleanup removing nasty #ifdef 2011-12-06 23:59:40 +01:00
serial_netarm.c ppc4xx: Remove now unused CONFIG_UART1_CONSOLE 2010-09-23 09:02:05 +02:00
serial_pl01x.c serial: pl01x: drain PL01x FIFO before baudrate change 2011-10-22 00:42:04 +02:00
serial_pl01x.h Serial: p1011: new vendor init options 2011-05-12 19:09:07 +02:00
serial_pxa.c PXA: Rename CONFIG_PXA2[57]X to CONFIG_CPU_PXA2[57]X 2011-12-06 23:59:32 +01:00
serial_s3c24x0.c serial: drop useless ctlr field 2011-07-26 16:38:05 +02:00
serial_s3c44b0.c s3c44b0: move serial driver to drivers/serial 2009-03-29 23:01:41 +02:00
serial_s5p.c serial: drop useless ctlr field 2011-07-26 16:38:05 +02:00
serial_sa1100.c sa1100: move serial driver to drivers/serial 2009-03-29 23:01:41 +02:00
serial_sh.c sh: serial: Update serial driver for SH 2011-01-11 21:03:25 +09:00
serial_sh.h sh: Add Renesas rsk7264 board 2011-08-22 13:16:08 +09:00
serial_xuartlite.c serial: uartlite: Fix compilation warnings 2011-10-23 10:51:11 +02:00
usbtty.c USB: Use (get|put)_unaligned for accessing wMaxPacketSize 2011-12-16 21:37:17 +01:00
usbtty.h PXA: Rename CONFIG_PXA2[57]X to CONFIG_CPU_PXA2[57]X 2011-12-06 23:59:32 +01:00