From: Tony Lindgren <tony@atomide.com>
To: "Mika Penttilä" <mika.penttila@nextfour.com>
Cc: "Gary Bisson" <gary.bisson@boundarydevices.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Mika Penttilä" <mika.penttila@nextfour.com>,
"Stefan Agner" <stefan@agner.ch>,
"Shawn Guo" <shawnguo@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: Re: [PATCH] fix pinctrl setup for i.IMX6
Date: Wed, 15 Mar 2017 09:26:39 -0700 [thread overview]
Message-ID: <20170315162639.GK20572@atomide.com> (raw)
In-Reply-To: <20170314145527.q53qh7yzm2x4zksf@t450s.lan>
* Gary Bisson <gary.bisson@boundarydevices.com> [170314 07:57]:
> Hi Linus,
>
> On Tue, Mar 14, 2017 at 03:47:58PM +0100, Linus Walleij wrote:
> > On Tue, Feb 28, 2017 at 7:00 AM, Mika Penttilä
> > <mika.penttila@nextfour.com> wrote:
> >
> > > Recent pulls for mainline pre 4.11 introduced pinctrl setup changes and moved pinctrl-imx to
> > > use generic helpers.
> > >
> > > Net effect was that hog group could not be resolved. I made it work for myself
> > > with a two stage setup with create and start separated, and dt probe in between them.
> > >
> > >
> > > Signed-off-by: Mika Penttilä <mika.penttila@nextfour.com>
> >
> > Sorry for including the whole mail body, some people may have missed the
> > mail. Notably the i.MX maintainers.
> >
> > Your patch reminds me of the pinctrl_register() vs pinctrl_register_and_init()
> > introduced by Tony Lindgren, can you look into this in commit
> > 950b0d91dc108f54bccca5a2f75bb46f2df63d29
> > "pinctrl: core: Fix regression caused by delayed work for hogs"?
> >
> > Does switching pinctrl_register_and_init() back to pinctrl_register()
> > solve your problem?
> >
> > Gary: have you seen any problem like this?
>
> Yes, Mika brought it up as soon as the first 4.11-rc appeared and indeed
> this issue can be reproduced on any i.MX6 platform.
>
> Then Tony offered a patch but you haven't replied to him yet:
> https://lkml.org/lkml/2017/2/28/140
I think as a regression fix for the -rc series, we should use Mika's
patch with the following tweaks:
1. Instead of adding yet another devm_pinctrl_register_and_init(),
let's just make devm_pinctrl_register_and_init() not call start
automatically. If people prefer to use Mika's naming for it
with nostart, I have no problem with that. But let's then rename
the current devm_pinctrl_register_and_init() so we are not stuck
with another interface with issues.
2. Update the four drivers using devm_pinctrl_register_and_init()
to also call start separately.
Mika, care to update your patch for that?
Regards,
Tony
next prev parent reply other threads:[~2017-03-15 16:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 6:00 [PATCH] fix pinctrl setup for i.IMX6 Mika Penttilä
2017-03-14 14:47 ` Linus Walleij
2017-03-14 14:55 ` Gary Bisson
2017-03-15 16:26 ` Tony Lindgren [this message]
2017-03-16 11:28 ` Linus Walleij
2017-03-14 14:57 ` Tony Lindgren
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=20170315162639.GK20572@atomide.com \
--to=tony@atomide.com \
--cc=gary.bisson@boundarydevices.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.penttila@nextfour.com \
--cc=shawnguo@kernel.org \
--cc=stefan@agner.ch \
/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