powerpc/44x: Set GPIO chip parent
Subsystems (2)
PATCH v2 1/1 powerpc/44x: Set GPIO chip parent
The PPC4xx GPIO driver stopped assigning an explicit parent to the gpio_chip when it moved away from of_mm_gpiochip_add_data().
Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
--- arch/powerpc/platforms/44x/gpio.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/gpio.c +1 -0
@@ -169,6 +169,7 @@ static int ppc4xx_gpio_probe(struct platform_device *ofdev) gc = &chip->gc; + gc->parent = dev; gc->base =-1 ; gc->ngpio =32 ; gc->direction_input = ppc4xx_gpio_dir_in;
Signature · 1 line
2.54.0
Quoted 11 lines · Rosen Penev
The PPC4xx GPIO driver stopped assigning an explicit parent to the
gpio_chipwhen it moved away fromof_mm_gpiochip_add_data().Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
Assisted-by Codex:GPT-5.5Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")Signed-off-by Rosen Penev <[email protected]>
Yours,
Linus Walleij
Le 17/05/2026 à 08:37, Rosen Penev a écrit :
Quoted 11 lines
The PPC4xx GPIO driver stopped assigning an explicit parent to the
gpio_chipwhen it moved away fromof_mm_gpiochip_add_data().Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
Assisted-by Codex:GPT-5.5Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")Signed-off-by Rosen Penev <[email protected]>
Quoted 16 lines
--- arch/powerpc/platforms/44x/gpio.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/platforms/44x/gpio.c +1
-0@@ -169,6 +169,7 @@ static int ppc4xx_gpio_probe(struct platform_device *ofdev) gc = &chip->gc; + gc->parent = dev; gc->base =-1 ; gc->ngpio =32 ; gc->direction_input = ppc4xx_gpio_dir_in;
Quoted 11 lines · Rosen Penev
The PPC4xx GPIO driver stopped assigning an explicit parent to the
gpio_chipwhen it moved away fromof_mm_gpiochip_add_data().Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
Assisted-by Codex:GPT-5.5Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")
Did I forget to ping someone?
Quoted 20 lines
Signed-off-by Rosen Penev <[email protected]>--- arch/powerpc/platforms/44x/gpio.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/platforms/44x/gpio.c +1
-1@@ -169,6 +169,7 @@ static int ppc4xx_gpio_probe(struct platform_device *ofdev) gc = &chip->gc; + gc->parent = dev; gc->base =-1 ; gc->ngpio =32 ; gc->direction_input = ppc4xx_gpio_dir_in; --2.54.0
Christophe Leroy (CS GROUP)
reviewerLe 17/07/2026 à 21:05, Rosen Penev a écrit :
Quoted 5 lines · Rosen Penev
Quoted 4 lines
The PPC4xx GPIO driver stopped assigning an explicit parent to the
gpio_chipwhen it moved away fromof_mm_gpiochip_add_data().
Quoted 8 lines
Quoted 7 lines
Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
Assisted-by Codex:GPT-5.5Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")Did I forget to ping someone?
Probably not, but afterwards you sent your series which moves the driver into drivers/gpio/ and which does the same, so this one was flagged "superseeded" in Patchwork (https://patchwork.ozlabs.org/project/linuxppc-dev/patch/[email protected]/)
I put it back to 'new'. Maddy, can you pick it up ?
Christophe
Quoted 20 lines
Quoted 20 lines
Signed-off-by Rosen Penev <[email protected]>--- arch/powerpc/platforms/44x/gpio.c | 1 + 1 file changed, 1 insertion(+)arch/powerpc/platforms/44x/gpio.c +1
-1@@ -169,6 +169,7 @@ static int ppc4xx_gpio_probe(struct platform_device *ofdev) gc = &chip->gc; + gc->parent = dev; gc->base =-1 ; gc->ngpio =32 ; gc->direction_input = ppc4xx_gpio_dir_in; --2.54.0
Madhavan Srinivasan
maintainerQuoted 13 lines · Christophe Leroy (CS GROUP)
Le 17/07/2026 à 21:05, Rosen Penev a écrit :
Quoted 10 lines · Rosen Penev
Quoted 9 lines
The PPC4xx GPIO driver stopped assigning an explicit parent to the
gpio_chipwhen it moved away fromof_mm_gpiochip_add_data().Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Assisted-by Codex:GPT-5.5Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")Did I forget to ping someone?
Probably not, but afterwards you sent your series which moves the driver into
drivers/gpio/and which does the same, so this one was flagged "superseeded" in Patchwork (https://patchwork.ozlabs.org/project/linuxppc-dev/patch/[email protected]/)I put it back to 'new'. Maddy, can you pick it up ?
yes, i have added this to my next-test
Maddy
Quoted 26 lines
Christophe
Quoted 21 lines
Quoted 21 lines
Signed-off-by Rosen Penev <[email protected]>---
arch/powerpc/platforms/44x/gpio.c| 1 +1 file changed, 1 insertion(+)arch/powerpc/platforms/44x/gpio.c +1
-0@@ -169,6 +169,7 @@ static int ppc4xx_gpio_probe(struct platform_device *ofdev) gc = &chip->gc; + gc->parent = dev; gc->base = -1; gc->ngpio = 32;
gc->direction_input=ppc4xx_gpio_dir_in;Signature · 1 line
2.54.0
Quoted 9 lines · Rosen Penev
The PPC4xx GPIO driver stopped assigning an explicit parent to the
gpio_chipwhen it moved away fromof_mm_gpiochip_add_data().Restore that association from the platform device so OF GPIO lookup can match phandles to the registered gpiochip.
Tested on: Cisco MX60W. No more probe deferral.
[...]
Applied to powerpc/next.
[1/1] powerpc/44x: Set GPIO chip parent
https://git.kernel.org/powerpc/c/b9254d222d0b38cc6f7b73119fad6316f65278be
cheers