From patchwork Tue Mar 8 05:43:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Covington X-Patchwork-Id: 8529661 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F159C9F7CA for ; Tue, 8 Mar 2016 05:43:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E67292017E for ; Tue, 8 Mar 2016 05:43:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB80220148 for ; Tue, 8 Mar 2016 05:43:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840AbcCHFne (ORCPT ); Tue, 8 Mar 2016 00:43:34 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:53304 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753488AbcCHFne (ORCPT ); Tue, 8 Mar 2016 00:43:34 -0500 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 5ADE66074A; Tue, 8 Mar 2016 05:43:33 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4596D60898; Tue, 8 Mar 2016 05:43:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from illium.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: cov@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E47DD605DE; Tue, 8 Mar 2016 05:43:30 +0000 (UTC) From: Christopher Covington To: Russell King , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, Timur Tabi , Jon Masters , Mark Langsdorf , Andre Przywara , Dave Martin , Aleksey Makarov , Christopher Covington , Christopher Covington Subject: [PATCH] tty: amba-pl011: Use 32-bit accesses for SBSA UART Date: Tue, 8 Mar 2016 00:43:19 -0500 Message-Id: <1457415800-8799-1-git-send-email-cov@codeaurora.org> X-Mailer: git-send-email 2.7.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Christopher Covington Version 2 of the Server Base System Architecture (SBSA) describes the Generic UART registers as 32 bits wide. At least one implementation, found of the Qualcomm Technologies QDF2432, only supports 32 bit accesses. While other implementations may also support smaller sized accesses, simply use 32 bit accesses all the time for the SBSA UART for simple, broad, compatibility. Signed-off-by: Christopher Covington Tested-by: Mark Langsdorf --- 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,