From patchwork Fri Jan 9 15:27:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Mottram X-Patchwork-Id: 427142 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 140231400D5 for ; Sat, 10 Jan 2015 02:27:45 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758043AbbAIP1j (ORCPT ); Fri, 9 Jan 2015 10:27:39 -0500 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]:58680 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932336AbbAIP1i (ORCPT ); Fri, 9 Jan 2015 10:27:38 -0500 Received: from localhost (localhost [127.0.0.1]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTP id A58A8460726; Fri, 9 Jan 2015 15:27:37 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at ducie-dc1.codethink.co.uk Received: from ducie-dc1.codethink.co.uk ([127.0.0.1]) by localhost (ducie-dc1.codethink.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ymhiOqW0RQde; Fri, 9 Jan 2015 15:27:29 +0000 (GMT) Received: from bashrc-X201.dyn.ducie.codethink.co.uk (bashrc-X201.dyn.ducie.codethink.co.uk [10.24.2.133]) by ducie-dc1.codethink.co.uk (Postfix) with ESMTPSA id 5CC6546063D; Fri, 9 Jan 2015 15:27:29 +0000 (GMT) From: Bob Mottram To: linux-tegra@vger.kernel.org, swarren@wwwdotorg.org, thierry.reding@gmail.com, gnurou@gmail.com, ct173-kernel-internal@lists.codethink.co.uk Cc: Bob Mottram Subject: [PATCH 2/4] ARM: gpio: tegra: Maintain endianness Date: Fri, 9 Jan 2015 15:27:09 +0000 Message-Id: <1420817231-8346-3-git-send-email-bob.mottram@codethink.co.uk> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1420817231-8346-1-git-send-email-bob.mottram@codethink.co.uk> References: <1420817231-8346-1-git-send-email-bob.mottram@codethink.co.uk> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Replace the _raw-writel with writel_relaxed to fix issue with running tegra in big-endian. Tested on Jetson TK1. Signed-off-by: Bob Mottram Tested-by: Dmitry Osipenko Acked-by: Thierry Reding Acked-by: Alexandre Courbot Acked-by: Linus Walleij --- drivers/gpio/gpio-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" 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/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 1741981..a83e140 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -85,12 +85,12 @@ static struct tegra_gpio_bank *tegra_gpio_banks; static inline void tegra_gpio_writel(u32 val, u32 reg) { - __raw_writel(val, regs + reg); + writel_relaxed(val, regs + reg); } static inline u32 tegra_gpio_readl(u32 reg) { - return __raw_readl(regs + reg); + return readl_relaxed(regs + reg); } static int tegra_gpio_compose(int bank, int port, int bit)