diff options
| author | Ruchika Kharwar <[email protected]> | 2013-07-08 10:28:57 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-07-26 15:55:44 -0700 |
| commit | 76bac1987ca181d54f8c9456d20997cb1020af2d (patch) | |
| tree | 680b931935ce8538c593b71cec9b3c61d3ff5abf | |
| parent | c4415084218c68c5ee2fc583431e89a78d896b19 (diff) | |
OMAP: UART: Fix the revision register read.
The revision register is a 32 bit register. The serial_in() function reads
only the lower 16 bits of the register. This leads to an incorrect computation
of the Module revision.
Signed-off-by: Ruchika Kharwar <[email protected]>
[[email protected]: add some whitespaces]
Signed-off-by: Alexander Savchenko <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/tty/serial/omap-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 9271a1dceec3..9b6fc54967f2 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1344,7 +1344,7 @@ static void omap_serial_fill_features_erratas(struct uart_omap_port *up) u32 mvr, scheme; u16 revision, major, minor; - mvr = serial_in(up, UART_OMAP_MVER); + mvr = readl(up->port.membase + (UART_OMAP_MVER << up->port.regshift)); /* Check revision register scheme */ scheme = mvr >> OMAP_UART_MVR_SCHEME_SHIFT; |