]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpiolib: match secondary fwnode too in gpio_device_find_by_fwnode()
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 26 Feb 2026 09:56:36 +0000 (10:56 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 27 Feb 2026 08:53:06 +0000 (09:53 +0100)
commiteb58f2b9bb0909ebce64e1a90b21b5cc2c9f17df
tree024bd2cef1c5a1dede1468311716a1202e87f427
parentfa4a3a95139e7293c1333a33bd7b19e7261e3bd0
gpiolib: match secondary fwnode too in gpio_device_find_by_fwnode()

In GPIOLIB, during fwnode lookup, after having resolved the consumer's
reference to a specific fwnode, we only match it against the primary
node of the controllers. Let's extend that to also the secondary node by
reworking gpio_chip_match_by_fwnode()

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20260226-device-match-secondary-fwnode-v4-1-27bd0cfbd8c6@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib.c