Skip to content

Commit

Permalink
serial: sirf: correct the fifo empty_bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Qipan Li authored and Greg Kroah-Hartman committed May 31, 2015
1 parent 326707e commit 86459b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/sirfsoc_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 86459b0

Please sign in to comment.