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: 63650 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1839481lbc; Mon, 7 Mar 2016 21:43:36 -0800 (PST) X-Received: by 10.98.8.74 with SMTP id c71mr39368738pfd.155.1457415816298; Mon, 07 Mar 2016 21:43:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si2258946pfm.92.2016.03.07.21.43.35; Mon, 07 Mar 2016 21:43:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840AbcCHFne (ORCPT + 7 others); 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.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 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 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 --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+) -- Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,