diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2005-11-12 21:58:05 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-11-12 21:58:05 (GMT) |
commit | 5c8c755ce508a9d41d8a8d80fff387cb4e2929fc (patch) | |
tree | 6db5a7e195068fc4ca20651a23f20a2b0350295e /drivers/serial/dz.c | |
parent | cd52d1ee9a92587b242d946a2300a3245d3b885a (diff) | |
download | linux-fsl-qoriq-5c8c755ce508a9d41d8a8d80fff387cb4e2929fc.tar.xz |
[SERIAL] don't disable xscale serial ports after autoconfig
xscale-type UARTs have an extra bit (UUE) in the IER register that has
to be written as 1 to enable the UART. At the end of autoconfig() in
drivers/serial/8250.c, the IER register is unconditionally written as
zero, which turns off the UART, and makes any subsequent printch() hang
the box.
Since other 8250-type UARTs don't have this enable bit and are thus
always 'enabled' in this sense, it can't hurt to enable xscale-type
serial ports all the time as well. The attached patch changes the
autoconfig() exit path to see if the port has an UUE enable bit, and if
yes, to write UUE=1 instead of just putting a zero into IER, using the
same test as is used at the beginning of serial8250_console_write().
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial/dz.c')
0 files changed, 0 insertions, 0 deletions