[PATCH 0/2] driver core: provide and use device_match_fwnode_ext()

Bartosz Golaszewski posted 2 patches 1 month, 1 week ago
There is a newer version of this series
drivers/base/core.c        | 14 ++++++++++++++
drivers/gpio/gpiolib.c     |  2 +-
include/linux/device/bus.h |  1 +
3 files changed, 16 insertions(+), 1 deletion(-)
[PATCH 0/2] driver core: provide and use device_match_fwnode_ext()
Posted by Bartosz Golaszewski 1 month, 1 week ago
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
providing a new variant of device_match_fwnode() and using it in GPIO
core.

Link: https://lore.kernel.org/all/aZUIFiOYt6GOlDQx@google.com/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Bartosz Golaszewski (2):
      driver core: provide device_match_fwnode_ext()
      gpiolib: use device_match_fwnode_ext()

 drivers/base/core.c        | 14 ++++++++++++++
 drivers/gpio/gpiolib.c     |  2 +-
 include/linux/device/bus.h |  1 +
 3 files changed, 16 insertions(+), 1 deletion(-)
---
base-commit: 50f68cc7be0a2cbf54d8f6aaf17df32fb01acc3f
change-id: 20260219-device-match-secondary-fwnode-4cc163ec47ee

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Re: [PATCH 0/2] driver core: provide and use device_match_fwnode_ext()
Posted by Linus Walleij 1 month, 1 week ago
On Thu, Feb 19, 2026 at 5:31 PM Bartosz Golaszewski
<bartosz.golaszewski@oss.qualcomm.com> wrote:

> 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
> providing a new variant of device_match_fwnode() and using it in GPIO
> core.
>
> Link: https://lore.kernel.org/all/aZUIFiOYt6GOlDQx@google.com/
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

The concept (+/- code comments):
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij