mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
To: Lee Jones <lee@kernel.org>, Thomas Gleixner <tglx@kernel.org>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: brgl@kernel.org, linux-kernel@vger.kernel.org,
	Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Subject: [PATCH 0/2] x86/platform/geode: enable real fwnode GPIO lookup
Date: Wed, 29 Apr 2026 14:23:29 +0200	[thread overview]
Message-ID: <20260429-cs5535-swnode-v1-0-2bc5e17ddcf9@oss.qualcomm.com> (raw)

GPIO software node lookup should rely exclusively on matching the
addresses of the referenced firmware nodes. I tried to enforce it with
commit e5d527be7e69 ("gpio: swnode: don't use the swnode's name as the
key for GPIO lookup") but it broke existing users who abuse the software
node mechanism by creating "dummy" software nodes named after the device
they want to get GPIOs from but never attaching them to the actual GPIO
devices. They rely on the current behavior of GPIOLIB where it will match
the label of the GPIO controller against the name of the software node
and does not require a true link.

In order to un-revert e5d527be7e69, we need to convert all existing
users to real firmware node lookup for software nodes.

This series exposes the software node associated with the GPIO
controller cell of the cs5535 MFD device and uses it in the geode board
setup for LEDs.

Merging strategy: there's not much development going on for the geode
board file so this could go through the MFD tree with an ack from the
x86 maintainers.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (2):
      mfd: cs5535: add, assign and expose the software node for the GPIO cell
      x86/platform/geode: reference the real node of the cs5535 GPIO controller

 arch/x86/Kconfig                       | 10 +++++-----
 arch/x86/platform/geode/geode-common.c | 12 +++++-------
 drivers/mfd/cs5535-mfd.c               |  9 +++++++++
 include/linux/mfd/cs5535.h             |  8 ++++++++
 4 files changed, 27 insertions(+), 12 deletions(-)
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260429-cs5535-swnode-0f731d2bbe10

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


             reply	other threads:[~2026-04-29 12:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29 12:23 Bartosz Golaszewski [this message]
2026-04-29 12:23 ` [PATCH 1/2] mfd: cs5535: add, assign and expose the software node for the GPIO cell Bartosz Golaszewski
2026-05-07 15:21   ` (subset) " Lee Jones
2026-05-11  7:54     ` Bartosz Golaszewski
2026-05-13 13:28       ` Lee Jones
2026-05-13 13:38         ` Bartosz Golaszewski
2026-05-19 12:05           ` Bartosz Golaszewski
2026-05-21 13:52             ` Lee Jones
2026-04-29 12:23 ` [PATCH 2/2] x86/platform/geode: reference the real node of the cs5535 GPIO controller Bartosz Golaszewski
2026-04-29 19:06   ` Dmitry Torokhov
2026-04-30  7:10     ` Bartosz Golaszewski
2026-05-21 14:03   ` Bartosz Golaszewski
2026-05-21 14:19   ` Dave Hansen
2026-05-22  8:25     ` Bartosz Golaszewski

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=20260429-cs5535-swnode-v1-0-2bc5e17ddcf9@oss.qualcomm.com \
    --to=bartosz.golaszewski@oss.qualcomm.com \
    --cc=bp@alien8.de \
    --cc=brgl@kernel.org \
    --cc=dave.hansen@linux.intel.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hpa@zytor.com \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=x86@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®