From: Michael Walle <michael@walle.cc>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>,
Saravana Kannan <saravanak@google.com>,
Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>,
Andrew Chant <achant@google.com>,
Edmond Chung <edmondchung@google.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Linus Walleij <linus.walleij@linaro.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
regressions@lists.linux.dev,
Stephen Rothwell <sfr@canb.auug.org.au>,
stable <stable@vger.kernel.org>,
Sergio Tanzilli <tanzilli@acmesystems.it>,
Thierry Reding <treding@nvidia.com>,
Vidya Sagar <vidyas@nvidia.com>,
Will McVicker <willmcvicker@google.com>,
Horatiu Vultur <horatiu.vultur@microchip.com>,
Lars Povlsen <lars.povlsen@microchip.com>
Subject: Re: [PATCH] gpio: Revert regression in sysfs-gpio (gpiolib.c)
Date: Thu, 17 Mar 2022 09:48:28 +0100 [thread overview]
Message-ID: <8a1a46f1e5b822fd49f56f2fe50c5396@walle.cc> (raw)
In-Reply-To: <CAHp75VeoFQHAh6SbVu7fsXfziW+2RoFTWKA6jFhFswBbazzGAA@mail.gmail.com>
Am 2022-03-17 09:37, schrieb Andy Shevchenko:
> On Thu, Mar 17, 2022 at 7:36 AM Michael Walle <michael@walle.cc> wrote:
>> Am 2022-03-15 16:32, schrieb Bartosz Golaszewski:
>> > On Mon, Mar 14, 2022 at 4:55 PM Michael Walle <michael@walle.cc> wrote:
>
> ...
>
>> I started to try this out, but then I was wondering if there weren't
>> other gpio/pinctrl drivers with the same problem. And judging by the
>> reports [1], I'd say there are. Then I wasn't sure if this is actually
>> the correct fix here - or if that old workaround [2] doesn't work
>> anymore because it might have that empty ranges "feature".
>>
>> To answer your question: I don't know. But I don't know if that is
>> actually the correct way of fixing this either.
>>
>> >> Also, I'm not sure if there are any other other driver which get
>> >> broken by this. I.e. ones falling into the gpio_stub_drv category.
>
> I know that OF is a mess, but I want to understand why in ACPI we
> haven't experienced such an issue. Any pointers would be appreciated.
During debugging I've seen that the pinctrl-microchip-sgpio will
report itself as gpio_stub_drv. You'll find that this driver
was added by the following commit:
commit 4731210c09f5977300f439b6c56ba220c65b2348
Author: Saravana Kannan <saravanak@google.com>
Date: Fri Jan 22 11:35:59 2021 -0800
gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by
default
The microchip driver has actually a binding which was described in
that commit message. Thus I concluded, that it makes sense this driver
falls into that workaround. That is where I stopped and wrote this mail.
Actually, I haven't found out yet where that fallback to gpio_stub_drv
is happening.
-michael
prev parent reply other threads:[~2022-03-17 8:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-17 15:35 [PATCH] gpio: Revert regression in sysfs-gpio (gpiolib.c) Marcelo Roberto Jimenez
2021-12-18 6:28 ` Thorsten Leemhuis
2021-12-20 14:57 ` Bartosz Golaszewski
2021-12-20 15:14 ` Geert Uytterhoeven
2021-12-20 19:24 ` Will McVicker
2021-12-20 20:41 ` Marcelo Roberto Jimenez
2021-12-20 20:41 ` Marcelo Roberto Jimenez
2021-12-20 20:41 ` Marcelo Roberto Jimenez
2022-01-10 7:02 ` Thorsten Leemhuis
2022-01-12 0:09 ` Marcelo Roberto Jimenez
2022-02-08 12:24 ` Thorsten Leemhuis
2022-02-17 19:11 ` Thierry Reding
2022-02-11 0:02 ` Linus Walleij
2022-02-11 22:36 ` Marcelo Roberto Jimenez
2022-02-12 16:54 ` Linus Walleij
2022-02-13 23:23 ` Marcelo Roberto Jimenez
2022-02-15 21:56 ` Linus Walleij
2022-02-16 14:40 ` Bartosz Golaszewski
2022-03-04 7:13 ` Thorsten Leemhuis
2022-03-07 9:58 ` Bartosz Golaszewski
2022-03-07 10:12 ` Thorsten Leemhuis
2022-05-20 9:12 ` Thorsten Leemhuis
2022-05-20 17:28 ` Marcelo Roberto Jimenez
2022-03-14 15:55 ` Michael Walle
2022-03-15 15:32 ` Bartosz Golaszewski
2022-03-15 15:45 ` Michael Walle
2022-03-17 8:37 ` Andy Shevchenko
2022-03-17 8:48 ` Michael Walle [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=8a1a46f1e5b822fd49f56f2fe50c5396@walle.cc \
--to=michael@walle.cc \
--cc=achant@google.com \
--cc=andy.shevchenko@gmail.com \
--cc=brgl@bgdev.pl \
--cc=edmondchung@google.com \
--cc=geert@linux-m68k.org \
--cc=horatiu.vultur@microchip.com \
--cc=lars.povlsen@microchip.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=marcelo.jimenez@gmail.com \
--cc=regressions@lists.linux.dev \
--cc=saravanak@google.com \
--cc=sfr@canb.auug.org.au \
--cc=stable@vger.kernel.org \
--cc=tanzilli@acmesystems.it \
--cc=treding@nvidia.com \
--cc=vidyas@nvidia.com \
--cc=willmcvicker@google.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).