From: Lee Jones <lee.jones@linaro.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Paul Burton <paul.burton@imgtec.com>,
linux-mips@linux-mips.org, Arnd Bergmann <arnd@arndb.de>,
Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH 1/2] mfd: syscon: Support native-endian regmaps
Date: Mon, 7 Nov 2016 09:41:37 +0000 [thread overview]
Message-ID: <20161107094137.GD13127@dell> (raw)
In-Reply-To: <6eee2835-43b2-ffa1-9be3-a1a9d8ed56cf@roeck-us.net>
On Sat, 05 Nov 2016, Guenter Roeck wrote:
> On 10/14/2016 02:17 AM, Paul Burton wrote:
> > The regmap devicetree binding documentation states that a native-endian
> > property should be supported as well as big-endian & little-endian,
> > however syscon in its duplication of the parsing of these properties
> > omits support for native-endian. Fix this by setting
> > REGMAP_ENDIAN_NATIVE when a native-endian property is found.
> >
>
> Any chance to get this patch applied to mainline ? It is in -next, but
> big endian mips malta images still fail to reboot in mainline.
Applied to -fixes.
> > Signed-off-by: Paul Burton <paul.burton@imgtec.com>
> > Cc: Lee Jones <lee.jones@linaro.org>
> > Cc: Arnd Bergmann <arnd@arndb.de>
> > Cc: Guenter Roeck <linux@roeck-us.net>
> > Cc: Ralf Baechle <ralf@linux-mips.org>
> > Cc: linux-mips@linux-mips.org
> > ---
> > drivers/mfd/syscon.c | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
> > index 2f2225e..b93fe4c 100644
> > --- a/drivers/mfd/syscon.c
> > +++ b/drivers/mfd/syscon.c
> > @@ -73,8 +73,10 @@ static struct syscon *of_syscon_register(struct device_node *np)
> > /* Parse the device's DT node for an endianness specification */
> > if (of_property_read_bool(np, "big-endian"))
> > syscon_config.val_format_endian = REGMAP_ENDIAN_BIG;
> > - else if (of_property_read_bool(np, "little-endian"))
> > + else if (of_property_read_bool(np, "little-endian"))
> > syscon_config.val_format_endian = REGMAP_ENDIAN_LITTLE;
> > + else if (of_property_read_bool(np, "native-endian"))
> > + syscon_config.val_format_endian = REGMAP_ENDIAN_NATIVE;
> >
> > /*
> > * search for reg-io-width property in DT. If it is not provided,
> >
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
prev parent reply other threads:[~2016-11-07 9:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 7:09 Commit 'MIPS: Malta: Use syscon-reboot driver to reboot' in -next and changed reset behavior Guenter Roeck
2016-10-14 9:17 ` [PATCH 1/2] mfd: syscon: Support native-endian regmaps Paul Burton
2016-10-14 9:17 ` Paul Burton
2016-10-14 9:17 ` [PATCH 2/2] MIPS: malta: Fixup reboot Paul Burton
2016-10-14 9:17 ` Paul Burton
2016-10-14 17:39 ` [2/2] " Guenter Roeck
2016-10-25 10:48 ` [PATCH 2/2] " Maciej W. Rozycki
2016-10-25 10:48 ` Maciej W. Rozycki
2016-10-14 17:43 ` [1/2] mfd: syscon: Support native-endian regmaps Guenter Roeck
2016-10-25 10:47 ` [PATCH 1/2] " Maciej W. Rozycki
2016-10-25 10:47 ` Maciej W. Rozycki
2016-10-26 13:58 ` Lee Jones
2016-11-06 5:09 ` Guenter Roeck
2016-11-06 5:12 ` Guenter Roeck
2016-11-07 9:41 ` Lee Jones [this message]
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=20161107094137.GD13127@dell \
--to=lee.jones@linaro.org \
--cc=arnd@arndb.de \
--cc=linux-mips@linux-mips.org \
--cc=linux@roeck-us.net \
--cc=paul.burton@imgtec.com \
--cc=ralf@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox