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>
This commit is contained in:
parent
326707ed88
commit
86459b0e40
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ u32 uart_usp_ff_empty_mask(struct uart_port *port)
|
||||||
{
|
{
|
||||||
u32 empty_bit;
|
u32 empty_bit;
|
||||||
|
|
||||||
empty_bit = ilog2(port->fifosize);
|
empty_bit = ilog2(port->fifosize) + 1;
|
||||||
return (1 << empty_bit);
|
return (1 << empty_bit);
|
||||||
}
|
}
|
||||||
struct sirfsoc_uart_register sirfsoc_usp = {
|
struct sirfsoc_uart_register sirfsoc_usp = {
|
||||||
|
|
Loading…
Reference in a new issue