From patchwork Mon Mar 30 20:17:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 46547 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7CC95218BE for ; Mon, 30 Mar 2015 20:19:06 +0000 (UTC) Received: by lbfb1 with SMTP id b1sf8505252lbf.2 for ; Mon, 30 Mar 2015 13:19:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=VuxBJohg3FGwBQDvHSx6U7w2CJ4+GywfWeOG9WwTmAk=; b=T5EnoDF/OkS43y47wLCV3NMk+got2rdsz7BPLPg+F1RZnAc/QUaT+8NRShSNbOwE/U x1Isv4pNiNbVTgy4FEm5kGIdL7APugq1hw1pdv2lAa4Mo3L1BWYQPH+wDoAfdD1Tyo8n gs7ZUgug2Zu11boKy3WCOZYPixOa9fnH/lsazUXt+Bi+uM20+P4i532bzOvbMUeNU2Z7 D+oGPfhkOe0cvNyPv9X3DL0F18lBV/Hk5GeYmRnA9JkCtBuhdrZ0XI/oIa4HLHTCWaua wmKM5Q4y5lKu6IbQz6f50+8pbXe9phBEh5f9B82CCQg7bzmzH34DuKBm886otslOA+tE VMbQ== X-Gm-Message-State: ALoCoQn1AmMa+poUWtecLGi5LslYFM4Y7VMCug5zWhgAZhoHcp8mF8/NwTFPO8B64MewRUbOKF+F X-Received: by 10.180.83.41 with SMTP id n9mr4065117wiy.4.1427746745369; Mon, 30 Mar 2015 13:19:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.228.169 with SMTP id sj9ls620296lac.35.gmail; Mon, 30 Mar 2015 13:19:05 -0700 (PDT) X-Received: by 10.152.27.202 with SMTP id v10mr27972886lag.90.1427746745024; Mon, 30 Mar 2015 13:19:05 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id pv9si7749759lbb.2.2015.03.30.13.19.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 13:19:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lajy8 with SMTP id y8so11878603laj.0 for ; Mon, 30 Mar 2015 13:19:04 -0700 (PDT) X-Received: by 10.112.212.106 with SMTP id nj10mr27979626lbc.36.1427746744765; Mon, 30 Mar 2015 13:19:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp1368607lbq; Mon, 30 Mar 2015 13:19:03 -0700 (PDT) X-Received: by 10.68.94.197 with SMTP id de5mr61616343pbb.57.1427746742331; Mon, 30 Mar 2015 13:19:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si16227970pas.13.2015.03.30.13.19.00; Mon, 30 Mar 2015 13:19:02 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545AbbC3URf (ORCPT + 27 others); Mon, 30 Mar 2015 16:17:35 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:33349 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753967AbbC3URb (ORCPT ); Mon, 30 Mar 2015 16:17:31 -0400 Received: by wgbgs4 with SMTP id gs4so96733040wgb.0 for ; Mon, 30 Mar 2015 13:17:30 -0700 (PDT) X-Received: by 10.180.77.199 with SMTP id u7mr26061857wiw.42.1427746650162; Mon, 30 Mar 2015 13:17:30 -0700 (PDT) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id ha10sm17205957wjc.37.2015.03.30.13.17.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 13:17:29 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, maxime.ripard@free-electrons.com, viresh.kumar@linaro.org, ben.dooks@codethink.co.uk, digetx@gmail.com, hdegoede@redhat.com, laurent.pinchart+renesas@ideasonboard.com Subject: [PATCH 07/11] clocksource: at91: Make IO endian agnostic Date: Mon, 30 Mar 2015 22:17:09 +0200 Message-Id: <1427746633-9137-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427746633-9137-1-git-send-email-daniel.lezcano@linaro.org> References: <5519AEB2.8050306@linaro.org> <1427746633-9137-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Dooks Fix the use of __raw IO accessor with the readl/writel_relaxed versions to allow the code to be used on a system running in big endian. Signed-off-by: Ben Dooks Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Linux Kernel Cc: Linux ARM Kernel Cc: Andrew Victor Cc: Nicolas Ferre Cc: Jean-Christophe Plagniol-Villard Signed-off-by: Daniel Lezcano Acked-by: Nicolas Ferre --- drivers/clocksource/timer-atmel-pit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index b5b4d45..c0304ff 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource/timer-atmel-pit.c @@ -61,12 +61,12 @@ static inline struct pit_data *clkevt_to_pit_data(struct clock_event_device *clk static inline unsigned int pit_read(void __iomem *base, unsigned int reg_offset) { - return __raw_readl(base + reg_offset); + return readl_relaxed(base + reg_offset); } static inline void pit_write(void __iomem *base, unsigned int reg_offset, unsigned long value) { - __raw_writel(value, base + reg_offset); + writel_relaxed(value, base + reg_offset); } /*