[PATCH 0/4] Fix handling of GPIO keys and LEDs on geode
From: Dmitry Torokhov
Date: Mon Mar 23 2026 - 20:43:05 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>
---
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 | 9 +++++++++
include/linux/property.h | 9 ++++++++-
3 files changed, 35 insertions(+), 7 deletions(-)
---
base-commit: b84a0ebe421ca56995ff78b66307667b62b3a900
change-id: 20260315-property-gpio-fix-51586cffcd5d
Thanks.
--
Dmitry