Skip to contentSkip to conversation

iop32x: gpio breakage after "instantiate GPIO from platform device"

PATCH Arnd Bergmann 2 participants 3 messages Jan 28, 2014 – Jan 29, 2014

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

Commit 7b85b867b9904 "ARM: plat-iop: instantiate GPIO from platform device" nicely cleaned up the gpio register access for iop, but forgot one board that directly pokes into the gpio registers to do a system reset.

That board no longer compiles, and this patch just disables the code in question to work around it so I can locally build randconfig again, but it needs to be fixed properly.

arch/arm/mach-iop32x/em7210.c +2 -0
index 177cd07..f3cb8e1 100644
@@ -178,8 +178,10 @@ static struct platform_device em7210_serial_device = {
 
 void em7210_power_off(void)
 {
+#if 0
 	*IOP3XX_GPOE &= 0xfe;
 	*IOP3XX_GPOD |= 0x01;
+#endif
 }
 
 static void __init em7210_init_machine(void)
#1 lore raw
Quoted 8 lines · Arnd Bergmann

Commit 7b85b867b9904 "ARM: plat-iop: instantiate GPIO from platform device" nicely cleaned up the gpio register access for iop, but forgot one board that directly pokes into the gpio registers to do a system reset.

That board no longer compiles, and this patch just disables the code in question to work around it so I can locally build randconfig again, but it needs to be fixed properly.

OK I'm sending a proper fix instead.

Yours,
Linus Walleij

#2 lore raw
Quoted 7 lines · On Wednesday 29 January 2014 13:41:59 Linus Walleij wrote:
Quoted 5 lines · Arnd Bergmann

Commit 7b85b867b9904 "ARM: plat-iop: instantiate GPIO from platform device" nicely cleaned up the gpio register access for iop, but forgot one board that directly pokes into the gpio registers to do a system reset.

Quoted 5 lines
Quoted 3 lines

That board no longer compiles, and this patch just disables the code in question to work around it so I can locally build randconfig again, but it needs to be fixed properly.

OK I'm sending a proper fix instead.

Ok, thanks!

Arnd