[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170131184246.GA27312@n2100.armlinux.org.uk>
Date: Tue, 31 Jan 2017 18:42:47 +0000
From: Russell King - ARM Linux <linux@...linux.org.uk>
To: Christopher Covington <cov@...eaurora.org>
Cc: Peter Hurley <peter@...leysoftware.com>, timur@...eaurora.org,
pelcan@...eaurora.org, nleeder@...eaurora.org,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
Jonathan Corbet <corbet@....net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jslaby@...e.com>,
linux-arm-kernel@...ts.infradead.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-serial@...r.kernel.org
Subject: Re: [RFC] tty: pl011: Work around stuck BUSY bit on QDF2400
On Mon, Jan 30, 2017 at 06:44:17PM -0500, Christopher Covington wrote:
> {
> struct uart_amba_port *uap =
> container_of(port, struct uart_amba_port, port);
> - unsigned int status = pl011_read(uap, REG_FR);
> + unsigned int status = pl011_read(uap, REG_FR) ^ uap->vendor->inv_fr;
> return status & (uap->vendor->fr_busy | UART01x_FR_TXFF) ?
> 0 : TIOCSER_TEMT;
> }
I'd much prefer the reg & mask == val approach, but the above makes that
difficult.
So for the PL011 changes:
Acked-by: Russell King <rmk+kernel@...linux.org.uk>
Thanks.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
Powered by blists - more mailing lists