From: 黄涛 Date: Thu, 7 Aug 2014 09:57:54 +0000 (+0800) Subject: rk_serial: 4 bytes IO accesses X-Git-Tag: firefly_0821_release~4917 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c93122b5677e1332a7fe154f1b1bd92e5437e822;p=firefly-linux-kernel-4.4.55.git rk_serial: 4 bytes IO accesses RK3288 uart_dbg only support 4 bytes IO accesses --- 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);