Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b86a5da8 authored by Mark Brown's avatar Mark Brown Committed by Russell King
Browse files

[ARM] 4946/1: pxa3xx: Print an error if we refuse to suspend



The PXA3xx will not suspend if there are no wakeup sources configured.
Print a diagnostic message to make it easier for the user to see what's
happening.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatareric miao <eric.y.miao@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 835e7f1c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -354,8 +354,10 @@ static void pxa3xx_cpu_pm_enter(suspend_state_t state)
	/*
	 * Don't sleep if no wakeup sources are defined
	 */
	if (wakeup_src == 0)
	if (wakeup_src == 0) {
		printk(KERN_ERR "Not suspending: no wakeup sources\n");
		return;
	}

	switch (state) {
	case PM_SUSPEND_STANDBY: