From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752136AbdAaSn2 (ORCPT ); Tue, 31 Jan 2017 13:43:28 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:60624 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752119AbdAaSnP (ORCPT ); Tue, 31 Jan 2017 13:43:15 -0500 Date: Tue, 31 Jan 2017 18:42:47 +0000 From: Russell King - ARM Linux To: Christopher Covington Cc: Peter Hurley , timur@codeaurora.org, pelcan@codeaurora.org, nleeder@codeaurora.org, Catalin Marinas , Will Deacon , Jonathan Corbet , Greg Kroah-Hartman , Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [RFC] tty: pl011: Work around stuck BUSY bit on QDF2400 Message-ID: <20170131184246.GA27312@n2100.armlinux.org.uk> References: <20170130234417.20855-1-cov@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170130234417.20855-1-cov@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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.