linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clocksource: tegra: Maintain CPU endianness
@ 2015-03-18 15:44 Dmitry Osipenko
  2015-03-26  9:58 ` Daniel Lezcano
  2015-03-26 15:31 ` Thierry Reding
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry Osipenko @ 2015-03-18 15:44 UTC (permalink / raw)
  To: digetx, Stephen Warren, Thierry Reding, Alexandre Courbot,
	Daniel Lezcano, Thomas Gleixner
  Cc: linux-kernel, linux-tegra

Support big-endian kernel by using endian-aware register access functions.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/clocksource/tegra20_timer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c
index d2616ef..d8a3a4e 100644
--- a/drivers/clocksource/tegra20_timer.c
+++ b/drivers/clocksource/tegra20_timer.c
@@ -57,9 +57,9 @@ static u64 persistent_ms, last_persistent_ms;
 static struct delay_timer tegra_delay_timer;
 
 #define timer_writel(value, reg) \
-	__raw_writel(value, timer_reg_base + (reg))
+	writel_relaxed(value, timer_reg_base + (reg))
 #define timer_readl(reg) \
-	__raw_readl(timer_reg_base + (reg))
+	readl_relaxed(timer_reg_base + (reg))
 
 static int tegra_timer_set_next_event(unsigned long cycles,
 					 struct clock_event_device *evt)
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clocksource: tegra: Maintain CPU endianness
  2015-03-18 15:44 [PATCH] clocksource: tegra: Maintain CPU endianness Dmitry Osipenko
@ 2015-03-26  9:58 ` Daniel Lezcano
  2015-03-26 15:31 ` Thierry Reding
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2015-03-26  9:58 UTC (permalink / raw)
  To: Dmitry Osipenko, Stephen Warren, Thierry Reding,
	Alexandre Courbot, Thomas Gleixner
  Cc: linux-kernel, linux-tegra

On 03/18/2015 04:44 PM, Dmitry Osipenko wrote:
> Support big-endian kernel by using endian-aware register access functions.
>
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>

Stephen, Thierry ?

Do you ack it ?

Thanks
   -- Daniel

> ---
>   drivers/clocksource/tegra20_timer.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clocksource/tegra20_timer.c b/drivers/clocksource/tegra20_timer.c
> index d2616ef..d8a3a4e 100644
> --- a/drivers/clocksource/tegra20_timer.c
> +++ b/drivers/clocksource/tegra20_timer.c
> @@ -57,9 +57,9 @@ static u64 persistent_ms, last_persistent_ms;
>   static struct delay_timer tegra_delay_timer;
>
>   #define timer_writel(value, reg) \
> -	__raw_writel(value, timer_reg_base + (reg))
> +	writel_relaxed(value, timer_reg_base + (reg))
>   #define timer_readl(reg) \
> -	__raw_readl(timer_reg_base + (reg))
> +	readl_relaxed(timer_reg_base + (reg))
>
>   static int tegra_timer_set_next_event(unsigned long cycles,
>   					 struct clock_event_device *evt)
>


-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clocksource: tegra: Maintain CPU endianness
  2015-03-18 15:44 [PATCH] clocksource: tegra: Maintain CPU endianness Dmitry Osipenko
  2015-03-26  9:58 ` Daniel Lezcano
@ 2015-03-26 15:31 ` Thierry Reding
  1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2015-03-26 15:31 UTC (permalink / raw)
  To: Dmitry Osipenko
  Cc: Stephen Warren, Alexandre Courbot, Daniel Lezcano,
	Thomas Gleixner, linux-kernel, linux-tegra

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

On Wed, Mar 18, 2015 at 06:44:49PM +0300, Dmitry Osipenko wrote:
> Support big-endian kernel by using endian-aware register access functions.
> 
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
>  drivers/clocksource/tegra20_timer.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Acked-by: Thierry Reding <treding@nvidia.com>

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-26 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 15:44 [PATCH] clocksource: tegra: Maintain CPU endianness Dmitry Osipenko
2015-03-26  9:58 ` Daniel Lezcano
2015-03-26 15:31 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).