From mboxrd@z Thu Jan 1 00:00:00 1970 From: Barry Song <21cnbao@gmail.com> Subject: [PATCH 2/3] serial: sirf: correct the fifo empty_bit Date: Tue, 26 May 2015 09:35:59 +0000 Message-ID: <1432632960-19748-2-git-send-email-21cnbao@gmail.com> References: <1432632960-19748-1-git-send-email-21cnbao@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1432632960-19748-1-git-send-email-21cnbao@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org Cc: Qipan Li , workgroup.linux@csr.com, linux-arm-kernel@lists.infradead.org, Barry Song List-Id: linux-serial@vger.kernel.org From: Qipan Li Signed-off-by: Qipan Li Signed-off-by: Barry Song --- drivers/tty/serial/sirfsoc_uart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sirfsoc_uart.h b/drivers/tty/serial/sirfsoc_uart.h index 3ab3141..644f865 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 = { -- 2.3.5