]> git.baikalelectronics.ru Git - kernel.git/commit
arm: mvebu: Reduce reg-io-width with UARTs
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 6 Mar 2013 10:23:33 +0000 (11:23 +0100)
committerJason Cooper <jason@lakedaemon.net>
Fri, 8 Mar 2013 22:03:44 +0000 (22:03 +0000)
commit1d36e063fd061e0f07117a7effd8ec349f999677
tree63da6295904962b3efb9b5e322b9364647e2dca6
parent8b71c3076fefa42246c03724f34351b18804e157
arm: mvebu: Reduce reg-io-width with UARTs

Setting the reg-io-width to 1 byte represents more accurate
description of the HW.

This will fix an issue where UART driver causes kernel
panic during bootup. Gregory CLEMENT traced the issue to
autoconfig() in 8250.c, where the existence of FIFO is
checked from UART_IIR register. The register is now read as
32-bit value as the reg-io-width is set to 4-bytes. The
retuned value seems to contain bogus data for bits 31:8,
causing the issue.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-xp.dtsi
arch/arm/boot/dts/armada-xp.dtsi