[PATCH v2 0/4] Fix handling of GPIO keys and LEDs on geode

From: Dmitry Torokhov

Date: Sun Mar 29 2026 - 22:28:56 EST


This series deal with breakage on geode caused by a recent conversion of
the board to use static device properties for configuring GPIO-connected
keys and LEDs. The issue was that PROPERTY_ENTRY_GPIO() would create a
temporary structure on stack for GPIO properties which would later be
discarded.

The first change patches the behavior using existing in kernel APIs so
that the bug can easily be fixed in stable kernels, and the other 3
improve the API and add safety checks.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
Changes in v2:
- added printing offending propety name in patch #3 (Andy)
- Link to v1: https://patch.msgid.link/20260323-property-gpio-fix-v1-0-9cb46e5fe7df@xxxxxxxxx

---
Dmitry Torokhov (4):
x86/geode: fix on-stack property data usage
software node: allow passing reference args to PROPERTY_ENTRY_REF
software node: verify that property data is not on stack
x86/geode: use PROPERTY_ENTRY_REF for GPIO properties

arch/x86/platform/geode/geode-common.c | 24 ++++++++++++++++++------
drivers/base/swnode.c | 10 ++++++++++
include/linux/property.h | 9 ++++++++-
3 files changed, 36 insertions(+), 7 deletions(-)
---
base-commit: 3b058d1aeeeff27a7289529c4944291613b364e9
change-id: 20260315-property-gpio-fix-51586cffcd5d

Thanks.

--
Dmitry