Skip to contentSkip to conversation

ARM: mach-shmobile: fix A3SP suspend method

PATCH Rafael J. Wysocki 2 participants 2 messages Jan 12, 2012 – Jan 13, 2012 SuperH

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · Guennadi Liakhovetski

Fix the reverted condition in sh7372_a3sp_suspend().

---

arch/arm/mach-shmobile/pm-sh7372.c +0 -0
index 77b8fc1..43baa97 100644

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

Acked-by
#1 lore raw
Quoted 17 lines · Rafael J. Wysocki
Quoted 16 lines · Guennadi Liakhovetski

Fix the reverted condition in sh7372_a3sp_suspend().

---

arch/arm/mach-shmobile/pm-sh7372.c +1 -1
index 77b8fc1..43baa97 100644
@@ -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 -0
  struct sh7372_pm_domain sh7372_a3sp = {

Magnus, the patch is correct, but I need your ACK here.

Yes, it indeed seems like a correct fix.

Thanks to you and Guennadi for fixing this.

Cheers,

/ magnus