[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1373268537-3198-1-git-send-email-oleksandr.savchenko@ti.com>
Date: Mon, 8 Jul 2013 10:28:57 +0300
From: Alexander Savchenko <oleksandr.savchenko@...com>
To: <gregkh@...uxfoundation.org>, <jslaby@...e.cz>
CC: <linux-serial@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Ruchika Kharwar <ruchika@...com>,
Alexander Savchenko <oleksandr.savchenko@...com>
Subject: [PATCH] OMAP: UART: Fix the revision register read.
From: Ruchika Kharwar <ruchika@...com>
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 <ruchika@...com>
[oleksandr.savchenko@...com: add some whitespaces]
Signed-off-by: Alexander Savchenko <oleksandr.savchenko@...com>
---
drivers/tty/serial/omap-serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index ad7b366..a23bbdb 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -1335,7 +1335,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;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists