All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Doug Anderson <dianders@chromium.org>
Cc: Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	Sebastian Reichel <sebastian.reichel@collabora.com>
Subject: Re: [PATCH 2/2] regulator: rk808: fix OF node reference imbalance
Date: Wed, 8 Apr 2026 09:34:00 +0200	[thread overview]
Message-ID: <adYE6DsX1xQWmlvd@hovoldconsulting.com> (raw)
In-Reply-To: <CAD=FV=WevFKZs5fgvs-ESNaXsZgGnnREuSQv3eDx+SCz_FibXw@mail.gmail.com>

On Tue, Apr 07, 2026 at 05:57:06PM -0700, Doug Anderson wrote:

> On Tue, Apr 7, 2026 at 2:42 AM Johan Hovold <johan@kernel.org> wrote:
> >
> > The driver reuses the OF node of the parent multi-function device but
> > fails to take another reference to balance the one dropped by the
> > platform bus code when unbinding the MFD and deregistering the child
> > devices.
> >
> > Fix this by using the intended helper for reusing OF nodes.
> >
> > Fixes: 5111c931f36c ("regulator: rk808: cleanup parent device usage")
> 
> I don't think this is quite the right "Fixes". Even before that
> commit, the driver copied the parent's "of_node" and still set
> "of_node_reused".
> 
> The first place I see the parent's "of_node" being copied is actually
> commit 647e57351f8e ("regulator: rk808: reduce 'struct rk808' usage").
> "of_node_reused" is first set in commit 1b9e86d445a0 ("regulator:
> rk808: fix asynchronous probing"), but really that should have been
> set in the beginning anyway...

Indeed, thanks for catching that. I've just sent a v2 of the series with
the correct tag and that includes all of the regulator fixes that
unfortunately ended up being being spread over three series.

Johan

      reply	other threads:[~2026-04-08  7:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260407094156.2573027-1-johan@kernel.org>
2026-04-07  9:41 ` [PATCH 1/2] regulator: bq257xx: fix OF node reference imbalance Johan Hovold
2026-04-08  0:57   ` Doug Anderson
2026-04-07  9:41 ` [PATCH 2/2] regulator: rk808: " Johan Hovold
2026-04-07 10:41   ` Sebastian Reichel
2026-04-08  0:57   ` Doug Anderson
2026-04-08  7:34     ` Johan Hovold [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=adYE6DsX1xQWmlvd@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=broonie@kernel.org \
    --cc=dianders@chromium.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sebastian.reichel@collabora.com \
    --cc=stable@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.