]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.17-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Nov 2025 15:02:50 +0000 (16:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Nov 2025 15:02:50 +0000 (16:02 +0100)
added patches:
revert-gpio-swnode-don-t-use-the-swnode-s-name-as-the-key-for-gpio-lookup.patch

queue-6.17/revert-gpio-swnode-don-t-use-the-swnode-s-name-as-the-key-for-gpio-lookup.patch [new file with mode: 0644]
queue-6.17/series

diff --git a/queue-6.17/revert-gpio-swnode-don-t-use-the-swnode-s-name-as-the-key-for-gpio-lookup.patch b/queue-6.17/revert-gpio-swnode-don-t-use-the-swnode-s-name-as-the-key-for-gpio-lookup.patch
new file mode 100644 (file)
index 0000000..0a5d4a2
--- /dev/null
@@ -0,0 +1,44 @@
+From ckeepax@opensource.cirrus.com  Thu Nov 27 16:02:06 2025
+From: Charles Keepax <ckeepax@opensource.cirrus.com>
+Date: Tue, 25 Nov 2025 10:29:24 +0000
+Subject: Revert "gpio: swnode: don't use the swnode's name as the key for GPIO lookup"
+To: stable@vger.kernel.org
+Cc: linus.walleij@linaro.org, brgl@bgdev.pl, patches@opensource.cirrus.com
+Message-ID: <20251125102924.3612459-1-ckeepax@opensource.cirrus.com>
+
+From: Charles Keepax <ckeepax@opensource.cirrus.com>
+
+This reverts commit 25decf0469d4c91d90aa2e28d996aed276bfc622.
+
+This software node change doesn't actually fix any current issues
+with the kernel, it is an improvement to the lookup process rather
+than fixing a live bug. It also causes a couple of regressions with
+shipping laptops, which relied on the label based lookup.
+
+There is a fix for the regressions in mainline, the first 5 patches
+of [1]. However, those patches are fairly substantial changes and
+given the patch causing the regression doesn't actually fix a bug
+it seems better to just revert it in stable.
+
+CC: stable@vger.kernel.org # 6.12, 6.17
+Link: https://lore.kernel.org/linux-sound/20251120-reset-gpios-swnodes-v7-0-a100493a0f4b@linaro.org/ [1]
+Closes: https://github.com/thesofproject/linux/issues/5599
+Closes: https://github.com/thesofproject/linux/issues/5603
+Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
+Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpio/gpiolib-swnode.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/gpio/gpiolib-swnode.c
++++ b/drivers/gpio/gpiolib-swnode.c
+@@ -41,7 +41,7 @@ static struct gpio_device *swnode_get_gp
+           !strcmp(gdev_node->name, GPIOLIB_SWNODE_UNDEFINED_NAME))
+               return ERR_PTR(-ENOENT);
+-      gdev = gpio_device_find_by_fwnode(fwnode);
++      gdev = gpio_device_find_by_label(gdev_node->name);
+       return gdev ?: ERR_PTR(-EPROBE_DEFER);
+ }
index 12b0073a1b3b54b8758b56b64bdcf279e98b3e76..65c7cf553e79838733b3a56987af55bd27674f94 100644 (file)
@@ -173,3 +173,4 @@ revert-drm-i915-dp-reject-hbr3-when-sink-doesn-t-support-tps4.patch
 drm-i915-dp-add-device-specific-quirk-to-limit-edp-rate-to-hbr2.patch
 sched_ext-fix-scx_kick_pseqs-corruption-on-concurrent-scheduler-loads.patch
 sched_ext-fix-flag-check-for-deferred-callbacks.patch
+revert-gpio-swnode-don-t-use-the-swnode-s-name-as-the-key-for-gpio-lookup.patch