linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] ARM: socfpga: PM: Drop useless check for PM_SUSPEND_STANDBY
@ 2018-03-02 14:04 Geert Uytterhoeven
  2018-03-07 15:08 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2018-03-02 14:04 UTC (permalink / raw)
  To: Dinh Nguyen, Arnd Bergmann
  Cc: linux-arm-kernel, linux-kernel, Geert Uytterhoeven

As SoCFPGA uses the standard suspend_valid_only_mem() for its
platform_suspend_ops.valid() callback, its platform_suspend_ops.enter()
callback will never be called with state equal to PM_SUSPEND_STANDBY.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2:
  - Add Acked-by.
---
 arch/arm/mach-socfpga/pm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-socfpga/pm.c b/arch/arm/mach-socfpga/pm.c
index c378ab0c24317ccf..d4866788702cb87a 100644
--- a/arch/arm/mach-socfpga/pm.c
+++ b/arch/arm/mach-socfpga/pm.c
@@ -116,7 +116,6 @@ static int socfpga_pm_suspend(unsigned long arg)
 static int socfpga_pm_enter(suspend_state_t state)
 {
 	switch (state) {
-	case PM_SUSPEND_STANDBY:
 	case PM_SUSPEND_MEM:
 		outer_disable();
 		cpu_suspend(0, socfpga_pm_suspend);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] ARM: socfpga: PM: Drop useless check for PM_SUSPEND_STANDBY
  2018-03-02 14:04 [PATCH v2] ARM: socfpga: PM: Drop useless check for PM_SUSPEND_STANDBY Geert Uytterhoeven
@ 2018-03-07 15:08 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2018-03-07 15:08 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Dinh Nguyen, Linux ARM, Linux Kernel Mailing List

On Fri, Mar 2, 2018 at 3:04 PM, Geert Uytterhoeven
<geert+renesas@glider.be> wrote:
> As SoCFPGA uses the standard suspend_valid_only_mem() for its
> platform_suspend_ops.valid() callback, its platform_suspend_ops.enter()
> callback will never be called with state equal to PM_SUSPEND_STANDBY.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Acked-by: Tony Lindgren <tony@atomide.com>
> Acked-by: Dinh Nguyen <dinguyen@kernel.org>

Applied to next/soc, thanks!

       Arnd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-07 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-02 14:04 [PATCH v2] ARM: socfpga: PM: Drop useless check for PM_SUSPEND_STANDBY Geert Uytterhoeven
2018-03-07 15:08 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).