All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] platform/x86: meraki-mx100: create and use real software node links
@ 2026-02-18 10:48 Bartosz Golaszewski
  2026-02-18 10:48 ` [PATCH v2 1/2] mfd: lpc_ich: expose the GPIO controller cell's software node Bartosz Golaszewski
  2026-02-18 10:48 ` [PATCH v2 2/2] platform/x86: meraki-mx100: use real software node references Bartosz Golaszewski
  0 siblings, 2 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2026-02-18 10:48 UTC (permalink / raw)
  To: Peter Tyser, Lee Jones, Hans de Goede, Ilpo Järvinen,
	Dmitry Torokhov, Andy Shevchenko, Greg Kroah-Hartman
  Cc: linux-kernel, platform-driver-x86, brgl, Bartosz Golaszewski

Meraki-mx100 is one of the GPIOLIB users that abuses the software node
API by setting up a dummy software node without any logical link to the
GPIO controller it wants to use and uses the fact that the GPIO core
matches the controller's label against the swnode's name to make the
lookup work.

We want to remove this behavior from GPIOLIB in favor of actual matching
of firmware nodes but that would break this user. This series creates
a real software node in the MFD driver and references it from the meraki
driver.

This can be done in two patches and stay bisectable as the software
nodes, despite having the same name, will have different parents so
there are no kobject issues.

Merging: this should probably be acked by Hans or Ilpo and go through
the MFD tree for v7.1.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Changes in v2:
- Use a namespace for the exported software node
- Link to v1: https://patch.msgid.link/20260213-meraki-swnodes-v1-0-8e032693456c@oss.qualcomm.com

---
Bartosz Golaszewski (2):
      mfd: lpc_ich: expose the GPIO controller cell's software node
      platform/x86: meraki-mx100: use real software node references

 drivers/mfd/lpc_ich.c               |  7 +++++++
 drivers/platform/x86/meraki-mx100.c | 41 ++++++++++++++++---------------------
 include/linux/mfd/lpc_ich.h         |  2 ++
 3 files changed, 27 insertions(+), 23 deletions(-)
---
base-commit: fe9e3edb6a215515d1148d32a5c445c5bdd7916f
change-id: 20260213-meraki-swnodes-44430d8178b4

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-09 10:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 10:48 [PATCH v2 0/2] platform/x86: meraki-mx100: create and use real software node links Bartosz Golaszewski
2026-02-18 10:48 ` [PATCH v2 1/2] mfd: lpc_ich: expose the GPIO controller cell's software node Bartosz Golaszewski
2026-03-06 12:53   ` (subset) " Lee Jones
2026-03-06 13:34     ` Bartosz Golaszewski
2026-03-09  9:55       ` Lee Jones
2026-03-09 10:05         ` Bartosz Golaszewski
2026-02-18 10:48 ` [PATCH v2 2/2] platform/x86: meraki-mx100: use real software node references Bartosz Golaszewski
2026-02-23 14:16   ` Ilpo Järvinen

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.