Skip to contentSkip to conversation

powerpc/44x: Set GPIO chip parent

PATCH Applied Rosen Penev 4 participants 7 messages May 17 – Aug 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Assisted-by Codex:GPT-5.5
Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")
---
 arch/powerpc/platforms/44x/gpio.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/gpio.c +1 -0
index aea0d913b59d..4413a94cf7a6 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Rosen Penev

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.

Assisted-by Codex:GPT-5.5
Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")

Yours,
Linus Walleij

reviewer Reviewed-by on v2 1/1
#2 lore raw
In reply to Rosen Penev

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_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.

Assisted-by Codex:GPT-5.5
Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")
Quoted 16 lines
---
  arch/powerpc/platforms/44x/gpio.c | 1 +
  1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/gpio.c +1 -0
index aea0d913b59d..4413a94cf7a6 100644
@@ -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;
#3 lore raw
In reply to Rosen Penev
Quoted 11 lines · Rosen Penev

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.

Assisted-by Codex:GPT-5.5
Fixes 1044dbaf2a77 ("powerpc/44x: Change GPIO driver to a proper platform driver")

Did I forget to ping someone?

Quoted 20 lines
---
 arch/powerpc/platforms/44x/gpio.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/gpio.c +1 -1
index aea0d913b59d..4413a94cf7a6 100644
@@ -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

#4 lore raw

Le 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_chip when it moved away from of_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.5
Fixes 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
---
  arch/powerpc/platforms/44x/gpio.c | 1 +
  1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/gpio.c +1 -1
index aea0d913b59d..4413a94cf7a6 100644
@@ -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

#5 lore raw
Quoted 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_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.

Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
Assisted-by Codex:GPT-5.5
Fixes 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

---
  arch/powerpc/platforms/44x/gpio.c | 1 +

  1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/gpio.c +1 -0
index aea0d913b59d..4413a94cf7a6 100644
@@ -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
maintainer Applied
#6 lore raw
In reply to Rosen Penev
Quoted 9 lines · Rosen Penev

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.

[...]

Applied to powerpc/next.

[1/1] powerpc/44x: Set GPIO chip parent

      https://git.kernel.org/powerpc/c/b9254d222d0b38cc6f7b73119fad6316f65278be

cheers