All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Bob Mottram <bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>,
	Linus Walleij
	<linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Alex Courbot <gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org,
	ct173-kernel-internal-81qHHgoATdFT9dQujB1mzip2UmYkHbXO@public.gmane.org
Subject: Re: [PATCH 2/4] ARM: gpio: tegra: Maintain endianness
Date: Wed, 11 Mar 2015 10:43:29 +0100	[thread overview]
Message-ID: <20150311094324.GH19577@ulmo.nvidia.com> (raw)
In-Reply-To: <1420817231-8346-3-git-send-email-bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>

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

On Fri, Jan 09, 2015 at 03:27:09PM +0000, Bob Mottram wrote:
> 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 <bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
> ---
>  drivers/gpio/gpio-tegra.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Linus, Alex,

would you prefer to take this through the GPIO tree or shall I take it
into the Tegra tree along with the rest of this series. In case of the
former:

Acked-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

I see that the patch wasn't Cc'ed to linux-gpio or Linus so, for
reference, here's a link to it in patchwork:

	http://patchwork.ozlabs.org/patch/427142/

I'm also quoting the entire patch below for your reference.

Thierry

> 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)
> --
> 2.1.0

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

  parent reply	other threads:[~2015-03-11  9:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-09 15:27 [PATCH 0/4] ARM: tegra: Support for big-endian (version 3) Bob Mottram
     [not found] ` <1420817231-8346-1-git-send-email-bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-09 15:27   ` [PATCH 1/4] ARM: tegra: Add a separate big-endian configuration Bob Mottram
2015-01-09 15:27   ` [PATCH 2/4] ARM: gpio: tegra: Maintain endianness Bob Mottram
     [not found]     ` <1420817231-8346-3-git-send-email-bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-27 18:41       ` Dmitry Osipenko
2015-03-11  9:43       ` Thierry Reding [this message]
     [not found]         ` <20150311094324.GH19577-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-03-11  9:46           ` Alexandre Courbot
     [not found]             ` <CAAVeFuLBz0UJsVEi=EYPbGd2x3Q6_JOELb4SHspR+w=tBS8mZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-11  9:55               ` Thierry Reding
     [not found]                 ` <20150311095543.GJ19577-AwZRO8vwLAwmlAP/+Wk3EA@public.gmane.org>
2015-03-11  9:58                   ` Alexandre Courbot
     [not found]                     ` <CAAVeFuLenb8V3rk6bbc2uDWo65sWZ2YLtFfuRLt2yEZ-3KwFwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-11 10:03                       ` [Ct173-kernel-internal] " Ben Dooks
2015-03-18  1:36           ` Linus Walleij
2015-01-09 15:27   ` [PATCH 3/4] ARM: tegra: enable big-endian support Bob Mottram
     [not found]     ` <1420817231-8346-4-git-send-email-bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-09 15:46       ` Dmitry Osipenko
     [not found]         ` <54AFF7E6.9030308-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-09 16:27           ` Bob Mottram
     [not found]             ` <54B0017E.2060509-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-09 16:32               ` Dmitry Osipenko
     [not found]                 ` <54B0028C.8050802-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-09 17:14                   ` [Linux-kernel] " Ben Dooks
     [not found]                     ` <54B00C58.3070303-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-12 18:04                       ` Dmitry Osipenko
     [not found]                         ` <54B40C99.4020907-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-13  8:47                           ` Ben Dooks
2015-01-13  9:05                           ` Bob Mottram
2015-01-19 14:26                           ` Bob Mottram
     [not found]                             ` <54BD141F.7070803-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-19 15:08                               ` Dmitry Osipenko
2015-01-09 15:27   ` [PATCH 4/4] ARM: tegra: fix big-endian issue with irq code Bob Mottram
     [not found]     ` <1420817231-8346-5-git-send-email-bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-27 18:42       ` Dmitry Osipenko
2015-03-11  9:48       ` Thierry Reding
2015-01-20 10:31   ` [Ct173-kernel-internal] [PATCH 0/4] ARM: tegra: Support for big-endian (version 3) Ben Dooks
     [not found]     ` <54BE2E77.9050909-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-20 11:36       ` Dmitry Osipenko
     [not found]         ` <54BE3DD2.1060204-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-01-20 11:45           ` Ben Dooks
     [not found]             ` <54BE3FC1.5010107-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org>
2015-01-20 13:18               ` Dmitry Osipenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150311094324.GH19577@ulmo.nvidia.com \
    --to=thierry.reding-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=bob.mottram-4yDnlxn2s6sWdaTGBSpHTA@public.gmane.org \
    --cc=ct173-kernel-internal-81qHHgoATdFT9dQujB1mzip2UmYkHbXO@public.gmane.org \
    --cc=gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.