Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932458AbcCKPC1 (ORCPT ); Fri, 11 Mar 2016 10:02:27 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34700 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbcCKPCS (ORCPT ); Fri, 11 Mar 2016 10:02:18 -0500 Subject: Re: [PATCH] tty: amba-pl011: Use 32-bit accesses for SBSA UART To: Christopher Covington , Russell King , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org References: <1457415800-8799-1-git-send-email-cov@codeaurora.org> <1457678154-2272-1-git-send-email-cov@codeaurora.org> Cc: Timur Tabi , Jon Masters , Mark Langsdorf , Andre Przywara , Dave Martin , Aleksey Makarov From: Peter Hurley Message-ID: <56E2DDF6.2000107@hurleysoftware.com> Date: Fri, 11 Mar 2016 07:02:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <1457678154-2272-1-git-send-email-cov@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1594 Lines: 42 Hi Christopher, On 03/10/2016 10:35 PM, Christopher Covington wrote: > Version 2 of the Server Base System Architecture (SBSAv2) describes the > Generic UART registers as 32 bits wide. At least one implementation, found > on the Qualcomm Technologies QDF2432, only supports 32 bit accesses. > SBSAv3, which describes supported access sizes in greater detail, > explicitly requires support for both 16 and 32 bit accesses to all > registers (and 8 bit accesses to some but not all). Therefore, for broad > compatibility, simply use 32 bit accessors for the SBSA UART. So this eliminates the need to configure SBSA port via ACPI, correct? Thus, Aleksey can drop his "serial: pl011: use SPCR to setup 32-bit access"? > Tested-by: Mark Langsdorf > Signed-off-by: Christopher Covington > --- > Changes new in v2: > * Fixed from address > * Elaborated on forward (SBSAv3) compatibility in commit message > * Included Mark Langsdorf's Tested-by, which now covers: > QDF2432 > Seattle > X-Gene 1 > --- > drivers/tty/serial/amba-pl011.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c > index c0da0cc..ffb5eb8 100644 > --- a/drivers/tty/serial/amba-pl011.c > +++ b/drivers/tty/serial/amba-pl011.c > @@ -121,6 +121,7 @@ static struct vendor_data vendor_arm = { > > static struct vendor_data vendor_sbsa = { > .reg_offset = pl011_std_offsets, > + .access_32b = true, > .oversampling = false, > .dma_threshold = false, > .cts_event_workaround = false, >