From: Qipan Li Date: Tue, 26 May 2015 09:35:59 +0000 (+0000) Subject: serial: sirf: correct the fifo empty_bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86459b0e407798cc16d52d493a624251e05ce6ad;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git serial: sirf: correct the fifo empty_bit Signed-off-by: Qipan Li Signed-off-by: Barry Song Signed-off-by: Greg Kroah-Hartman --- 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 = {