ARM: mach-shmobile: fix A3SP suspend method
Quoted 9 lines · Guennadi Liakhovetski
Fix the reverted condition in
sh7372_a3sp_suspend().Signed-off-by Guennadi Liakhovetski <[email protected]>---
arch/arm/mach-shmobile/pm-sh7372.c +0
-0
arch/arm/mach-shmobile/pm-sh7372.c static int sh7372_a3sp_suspend(void) · line 282
Quoted 8 lines
arch/arm/mach-shmobile/pm-sh7372.c +1
-1@@ -276,7 +276,7 @@ static int sh7372_a3sp_suspend(void)* Serial consoles make use of SCIF hardware located in A3SP, * keep such power domain on if "no_console_suspend" is set. */ -return console_suspend_enabled ? -EBUSY :0 ; +return console_suspend_enabled ?0 : -EBUSY ; }struct sh7372_pm_domain sh7372_a3sp = {
Magnus, the patch is correct, but I need your ACK here.
Thanks,
Rafael
Magnus Damm
Acked-byQuoted 17 lines · Rafael J. Wysocki
Quoted 16 lines · Guennadi Liakhovetski
Fix the reverted condition in
sh7372_a3sp_suspend().Signed-off-by Guennadi Liakhovetski <[email protected]>---
arch/arm/mach-shmobile/pm-sh7372.c +1
-1@@ -276,7 +276,7 @@ static int sh7372_a3sp_suspend(void)* Serial consoles make use of SCIF hardware located in A3SP, * keep such power domain on if "no_console_suspend" is set. */ - return console_suspend_enabled ? -EBUSY : 0; + return console_suspend_enabled ? 0 : -EBUSY; }
Quoted 3 lines
arch/arm/mach-shmobile/pm-sh7372.c static int sh7372_a3sp_suspend(void) · line 282
Quoted 1 line
arch/arm/mach-shmobile/pm-sh7372.c +0
-0struct sh7372_pm_domain sh7372_a3sp = {Magnus, the patch is correct, but I need your ACK here.
Yes, it indeed seems like a correct fix.
Acked-by Magnus Damm <[email protected]>
Thanks to you and Guennadi for fixing this.
Cheers,
/ magnus