From: Philipp Zabel <p.zabel@pengutronix.de>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"Charles Keepax" <ckeepax@opensource.cirrus.com>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Bartosz Golaszewski" <bartosz.golaszewski@linaro.org>,
stable@vger.kernel.org, "Hans de Goede" <hansg@kernel.org>,
"Stephen Rothwell" <sfr@canb.auug.org.au>
Subject: Re: [PATCH] platform/x86: intel: chtwc_int33fe: don't dereference swnode args
Date: Fri, 21 Nov 2025 15:43:50 +0100 [thread overview]
Message-ID: <6e9f1b4dceefe29ed10e81e0fbf0fc9155f33fd1.camel@pengutronix.de> (raw)
In-Reply-To: <CAMRc=MdSai2EaQfAqjxdmLBdXPQVc8s4b5_sKDmuZV8gBCKp4g@mail.gmail.com>
Hi Bartosz,
On Fr, 2025-11-21 at 14:50 +0100, Bartosz Golaszewski wrote:
> On Fri, Nov 21, 2025 at 2:40 PM Hans de Goede <hansg@kernel.org> wrote:
> >
> > On 21-Nov-25 11:04 AM, Bartosz Golaszewski wrote:
> > > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > >
> > > Members of struct software_node_ref_args should not be dereferenced
> > > directly but set using the provided macros. Commit d7cdbbc93c56
> > > ("software node: allow referencing firmware nodes") changed the name of
> > > the software node member and caused a build failure. Remove all direct
> > > dereferences of the ref struct as a fix.
> > >
> > > However, this driver also seems to abuse the software node interface by
> > > waiting for a node with an arbitrary name "intel-xhci-usb-sw" to appear
> > > in the system before setting up the reference for the I2C device, while
> > > the actual software node already exists in the intel-xhci-usb-role-switch
> > > module and should be used to set up a static reference. Add a FIXME for
> > > a future improvement.
> > >
> > > Fixes: d7cdbbc93c56 ("software node: allow referencing firmware nodes")
> > > Fixes: 53c24c2932e5 ("platform/x86: intel_cht_int33fe: use inline reference properties")
> > > Cc: stable@vger.kernel.org
> > > Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > > Closes: https://lore.kernel.org/all/20251121111534.7cdbfe5c@canb.auug.org.au/
> > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > > ---
> > > This should go into the reset tree as a fix to the regression introduced
> > > by the reset-gpio driver rework.
> >
> > Thanks, patch looks good to me:
> >
> > Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
> >
> > Also ack for merging this through the reset tree.
> >
> > Ilpo please do *not* pick this one up as it will be merged
> > through the reset tree.
> >
>
> Philipp: I'm afraid this too must go into an immutable branch shared
> with the GPIO tree or else Linus Torvalds will yell at me if by chance
> he pulls my changes first into mainline. Unless you plan to do your PR
> early into the merge window in which case I can wait until it's in his
> tree and submit mine. Let me know what your preference is.
The following changes since commit 5fc4e4cf7a2268b5f73700fd1e8d02159f2417d8:
reset: gpio: use software nodes to setup the GPIO lookup (2025-11-20 16:51:49 +0100)
are available in the Git repository at:
https://git.pengutronix.de/git/pza/linux.git tags/reset-gpio-for-v6.19-2
for you to fetch changes up to 527250cd9092461f1beac3e4180a4481bffa01b5:
platform/x86: intel: chtwc_int33fe: don't dereference swnode args (2025-11-21 15:31:43 +0100)
----------------------------------------------------------------
Reset/GPIO/swnode changes for v6.19 (v2)
* Fix chtwc_int33fe build issue since commit d7cdbbc93c56 ("software
node: allow referencing firmware nodes").
----------------------------------------------------------------
Bartosz Golaszewski (1):
platform/x86: intel: chtwc_int33fe: don't dereference swnode args
drivers/platform/x86/intel/chtwc_int33fe.c | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
next prev parent reply other threads:[~2025-11-21 14:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-21 10:04 Bartosz Golaszewski
2025-11-21 13:39 ` Hans de Goede
2025-11-21 13:50 ` Bartosz Golaszewski
2025-11-21 14:43 ` Philipp Zabel [this message]
2025-11-21 14:18 ` Ilpo Järvinen
2025-11-21 14:43 ` Philipp Zabel
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=6e9f1b4dceefe29ed10e81e0fbf0fc9155f33fd1.camel@pengutronix.de \
--to=p.zabel@pengutronix.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=brgl@bgdev.pl \
--cc=ckeepax@opensource.cirrus.com \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=sakari.ailus@linux.intel.com \
--cc=sfr@canb.auug.org.au \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®