diff options
author | Qipan Li <Qipan.Li@csr.com> | 2015-05-26 12:35:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-01 00:51:37 +0300 |
commit | 86459b0e407798cc16d52d493a624251e05ce6ad (patch) | |
tree | 41c12402b6e31a539d627e27694265a0c0a24941 /drivers/tty | |
parent | 326707ed88028283cf04d86848a0436cb966b01e (diff) | |
download | linux-86459b0e407798cc16d52d493a624251e05ce6ad.tar.xz |
serial: sirf: correct the fifo empty_bit
Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/sirfsoc_uart.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sirfsoc_uart.h b/drivers/tty/serial/sirfsoc_uart.h index 3ab3141e1aae..644f86529571 100644 --- a/drivers/tty/serial/sirfsoc_uart.h +++ b/drivers/tty/serial/sirfsoc_uart.h @@ -117,7 +117,7 @@ u32 uart_usp_ff_empty_mask(struct uart_port *port) { u32 empty_bit; - empty_bit = ilog2(port->fifosize); + empty_bit = ilog2(port->fifosize) + 1; return (1 << empty_bit); } struct sirfsoc_uart_register sirfsoc_usp = { |