Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Linus Walleij <linusw@kernel.org>,
	Bartosz Golaszewski <brgl@kernel.org>,
	Benson Leung <bleung@chromium.org>,
	Guenter Roeck <groeck@chromium.org>,
	Stephen Boyd <swboyd@chromium.org>,
	patches@opensource.cirrus.com, linux-gpio@vger.kernel.org,
	chrome-platform@lists.linux.dev, stable@vger.kernel.org
Subject: Re: [PATCH 0/6] gpio: fix firmware node reference count underflows
Date: Thu, 03 Dec 2026 11:58:10 -0800	[thread overview]
Message-ID: <76b37401fb46d112333b5490740b6dd1@gmail.com> (raw)
In-Reply-To: <axFcB-FEomsVgqOe@ashevche-desk.local>

Hi Andy,

On Thu, Dec 03, 2026 at 02:09:43PM +0200, Andy Shevchenko wrote:
> On Wed, Dec 02, 2026 at 10:45:45PM -0800, Dmitry Torokhov wrote:
...
> > Commit 6dbe6c07f94f replaced gpio_chip.of_node one week before
> > gpio_chip.fwnode was added in commit 990f6756bb64, making
> > gpio_chip.fwnode the direct mechanism for passing a firmware node to
> > gpiolib. Leaving the platform device's of_node unset also keeps its
> > uevent MODALIAS as platform:<name> and avoids pinctrl_bind_pins()
> > conflicts on rebind.
>
> I'm not sure how it's possible. If you look at the Git history you can
> see that 990f6756bb64 was the first one followed by 6dbe6c07f94f.

I compared author dates instead of commit dates. When you wrote
6dbe6c07f94f on Dec 6, Bart had not written 990f6756bb64 yet (Dec 13),
even though he applied his first on Dec 17, so the timeline still makes
sense.

> > Update arizona, tps6586x, tps65910, twl6040, and wm831x GPIO drivers to
> > pass the firmware node directly via gpio_chip.fwnode while keeping the
> > platform device as gpio_chip.parent, since MFD core already propagates
> > any parent ACPI companion to those direct children. Because cros-ec
> > sits behind an intermediate cros-ec-dev device that does not propagate
> > an ACPI companion, set gpio_chip.fwnode explicitly in cros-ec and keep
> > attaching the protocol device's firmware node with a devres-managed
> > reference cleared on unbind to preserve acpi_gpiochip_add() behavior.
>
> As for the series, 5 out of 6 are the culprit of my single commit (sorry
> for the troubles), would it make sense to combine? Otherwise it's easy
> to have one in some (custom) kernel and not others.

I'll leave the decision on combining them to Bart.

> Nevertheless, I am okay with this approach for backporting, but I think
> the problem should be solved in MFD core or platform driver core.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Thanks.

-- 
Dmitry

      reply	other threads:[~2026-12-03 19:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  6:45 [PATCH 0/6] gpio: fix firmware node reference count underflows Dmitry Torokhov
2026-12-03  6:45 ` [PATCH 1/6] gpio: arizona: Fix firmware node reference count underflow Dmitry Torokhov
2026-12-03 11:28   ` Charles Keepax
2026-12-03  6:45 ` [PATCH 2/6] gpio: tps6586x: " Dmitry Torokhov
2026-12-03  6:45 ` [PATCH 3/6] gpio: tps65910: " Dmitry Torokhov
2026-12-03  6:45 ` [PATCH 4/6] gpio: twl6040: " Dmitry Torokhov
2026-12-03  6:45 ` [PATCH 5/6] gpio: wm831x: " Dmitry Torokhov
2026-12-03 11:28   ` Charles Keepax
2026-12-03  6:45 ` [PATCH 6/6] gpio: cros-ec: " Dmitry Torokhov
2026-12-03 12:11   ` Andy Shevchenko
2026-12-03 12:09 ` [PATCH 0/6] gpio: fix firmware node reference count underflows Andy Shevchenko
2026-12-03 19:58   ` Dmitry Torokhov [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=76b37401fb46d112333b5490740b6dd1@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=bleung@chromium.org \
    --cc=brgl@kernel.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=groeck@chromium.org \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --cc=stable@vger.kernel.org \
    --cc=swboyd@chromium.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