All of lore.kernel.org
 help / color / mirror / Atom feed
* + rtc-at91rm9200-make-io-endian-agnostic.patch added to -mm tree
@ 2015-03-24 22:21 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2015-03-24 22:21 UTC (permalink / raw)
  To: ben.dooks, a.zummo, linux, nicolas.ferre, plagnioj, mm-commits


The patch titled
     Subject: drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic
has been added to the -mm tree.  Its filename is
     rtc-at91rm9200-make-io-endian-agnostic.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/rtc-at91rm9200-make-io-endian-agnostic.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/rtc-at91rm9200-make-io-endian-agnostic.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Ben Dooks <ben.dooks@codethink.co.uk>
Subject: drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic

Change the __raw IO calls to readl/write_relaxed which makes the driver
endian agnostic to run properly on big endian systems.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Andrew Victor <linux@maxim.org.za>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/rtc-at91rm9200.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/rtc/rtc-at91rm9200.c~rtc-at91rm9200-make-io-endian-agnostic drivers/rtc/rtc-at91rm9200.c
--- a/drivers/rtc/rtc-at91rm9200.c~rtc-at91rm9200-make-io-endian-agnostic
+++ a/drivers/rtc/rtc-at91rm9200.c
@@ -37,9 +37,9 @@
 #include "rtc-at91rm9200.h"
 
 #define at91_rtc_read(field) \
-	__raw_readl(at91_rtc_regs + field)
+	readl_relaxed(at91_rtc_regs + field)
 #define at91_rtc_write(field, val) \
-	__raw_writel((val), at91_rtc_regs + field)
+	writel_relaxed((val), at91_rtc_regs + field)
 
 #define AT91_RTC_EPOCH		1900UL	/* just like arch/arm/common/rtctime.c */
 
_

Patches currently in -mm which might be from ben.dooks@codethink.co.uk are

linux-next.patch
rtc-at91rm9200-make-io-endian-agnostic.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-24 22:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-24 22:21 + rtc-at91rm9200-make-io-endian-agnostic.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.