From: Shawn Guo <shawnguo@kernel.org>
To: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Sascha Hauer <kernel@pengutronix.de>,
Fabio Estevam <fabio.estevam@nxp.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Deepak Das <deepak_das@mentor.com>,
linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 0/3] gpio/pinctrl: imx: let IOMUX controller know about on-SoC GPIOs
Date: Mon, 5 Sep 2016 10:12:01 +0800 [thread overview]
Message-ID: <20160905021201.GC25778@tiger> (raw)
In-Reply-To: <cc5ab313-c3c6-bfd4-d2b8-92a7d153cf05@mentor.com>
On Fri, Sep 02, 2016 at 04:11:46PM +0300, Vladimir Zapolskiy wrote:
> Hi Shawn, Fabio,
>
> On 08/20/2016 01:10 AM, Vladimir Zapolskiy wrote:
> >The change establishes a connection between on-SoC IOMUX controller(s)
> >and GPIO controllers found on some SoC from Freescale/NXP iMX series,
> >if a GPIO controller device node contains common gpio-ranges information.
> >
> >The change is backward compatible with respect to potentially not updated
> >outdated DTB data without gpio-ranges propery, for such boards the only
> >functional change is lowered initcall priority of GPIO controller driver,
> >which in general anyway is exected to be used only after pinctrl/pinmux
> >controller.
> >
> >If this change is applied the next interesting applications may be done
> >as a follow-up work, for example switching pad function to GPIO on gpiod
> >request, converting iomux controller driver to strict type and so on.
> >
> >For actual values of gpio-ranges properties please reference series
> >"ARM: dts: imx: add gpio-ranges properties to some iMX GPIO controllers"
> >http://archive.arm.linux.org.uk/lurker/message/20160819.220621.86d845d1.en.html
> >
> >Deepak Das (1):
> > gpio: mxc: lower level of gpio_mxc_init() initcall
> >
> >Vladimir Zapolskiy (2):
> > pinctrl: imx: accept gpio request/free from pinctrl
> > gpio: mxc: add generic gpio request/free callbacks to pinctrl
> >
> > drivers/gpio/gpio-mxc.c | 7 ++++++-
> > drivers/pinctrl/freescale/pinctrl-imx.c | 4 ++--
> > 2 files changed, 8 insertions(+), 3 deletions(-)
> >
>
> no comments so far, please could you express your concerns about
> this change? IMHO it would be nice to have this feature enabled
> in v4.9.
>
> I assume that the most worrisome commit is the change of GPIO controller
> driver init level, but I belive it is safe enough, no?
If I understand it correctly, with the change, most of GPIO client
device drivers use the same init level as GPIO driver. So we are not
sure if GPIO driver is ready when client drivers try to request GPIO.
It shouldn't be a problem if every client driver handle the failure
with deferred probing, but I'm not sure that's the case now.
Shawn
next prev parent reply other threads:[~2016-09-05 2:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 22:10 [PATCH 0/3] gpio/pinctrl: imx: let IOMUX controller know about on-SoC GPIOs Vladimir Zapolskiy
2016-08-19 22:10 ` [PATCH 1/3] pinctrl: imx: accept gpio request/free from pinctrl Vladimir Zapolskiy
2016-08-19 22:10 ` [PATCH 2/3] gpio: mxc: lower level of gpio_mxc_init() initcall Vladimir Zapolskiy
2016-08-19 22:10 ` [PATCH 3/3] gpio: mxc: add generic gpio request/free callbacks to pinctrl Vladimir Zapolskiy
2016-09-02 13:11 ` [PATCH 0/3] gpio/pinctrl: imx: let IOMUX controller know about on-SoC GPIOs Vladimir Zapolskiy
2016-09-05 2:12 ` Shawn Guo [this message]
2016-09-05 11:49 ` Vladimir Zapolskiy
2016-09-08 1:41 ` Shawn Guo
2016-09-08 1:52 ` Vladimir Zapolskiy
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=20160905021201.GC25778@tiger \
--to=shawnguo@kernel.org \
--cc=deepak_das@mentor.com \
--cc=fabio.estevam@nxp.com \
--cc=kernel@pengutronix.de \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=vladimir_zapolskiy@mentor.com \
/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;
as well as URLs for NNTP newsgroup(s).