From c93122b5677e1332a7fe154f1b1bd92e5437e822 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Thu, 7 Aug 2014 17:57:54 +0800 Subject: [PATCH] rk_serial: 4 bytes IO accesses RK3288 uart_dbg only support 4 bytes IO accesses --- drivers/tty/serial/rk_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/rk_serial.c b/drivers/tty/serial/rk_serial.c index f4f33068e7b1..d7c1cb9c45e9 100644 --- a/drivers/tty/serial/rk_serial.c +++ b/drivers/tty/serial/rk_serial.c @@ -304,7 +304,7 @@ static inline unsigned int serial_in(struct uart_rk_port *up, int offset) { offset = offset << 2; - return __raw_readb(up->port.membase + offset); + return __raw_readl(up->port.membase + offset); } /* Save the LCR value so it can be re-written when a Busy Detect IRQ occurs. */ @@ -325,7 +325,7 @@ static inline void dwapb_check_clear_ier(struct uart_rk_port *up, int offset) static inline void serial_out(struct uart_rk_port *up, int offset, unsigned char value) { dwapb_save_out_value(up, offset, value); - __raw_writeb(value, up->port.membase + (offset << 2)); + __raw_writel(value, up->port.membase + (offset << 2)); if (offset != UART_TX) dsb(); dwapb_check_clear_ier(up, offset); -- 2.34.1