]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: pxa: pxa27x: attach software node to its target GPIO controller
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 30 Apr 2026 12:57:21 +0000 (14:57 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 12 May 2026 12:03:19 +0000 (14:03 +0200)
Software node describing the GPIO controller for the pxa27x platforms is
currently "dangling" - it's not actually attached to the relevant
controller and doesn't allow real fwnode lookup. Attach it once it's
registered as a firmware node before adding the platform device.

Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260430-pxa-gpio-swnodes-v3-4-5142e95f0eca@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
arch/arm/mach-pxa/pxa27x.c

index ff63619790383859ba111e3efe7619aa6cbd248e..49c677f2dac156445447ebdd7a99f3463a762d20 100644 (file)
@@ -342,6 +342,9 @@ static int __init pxa27x_init(void)
 
                if (!of_have_populated_dt()) {
                        software_node_register(&pxa2xx_gpiochip_node);
+                       pxa27x_device_gpio.dev.fwnode = software_node_fwnode(
+                                                               &pxa2xx_gpiochip_node);
+
                        pxa2xx_set_dmac_info(&pxa27x_dma_pdata);
                        ret = platform_add_devices(devices,
                                                   ARRAY_SIZE(devices));