提交 28732238 编写于 作者: A Alexandre Belloni

ARM: at91: pm: fallback to slowclock when backup mode fails

If the backup sram allocation fails, ensure we can suspend by falling back
to the usual slow clock mode.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: NWenyou Yang <wenyou.yang@atmel.com>
上级 7693e18e
...@@ -544,6 +544,11 @@ static void __init at91_pm_backup_init(void) ...@@ -544,6 +544,11 @@ static void __init at91_pm_backup_init(void)
securam_fail: securam_fail:
iounmap(pm_data.sfrbu); iounmap(pm_data.sfrbu);
pm_data.sfrbu = NULL; pm_data.sfrbu = NULL;
if (pm_data.standby_mode == AT91_PM_BACKUP)
pm_data.standby_mode = AT91_PM_SLOW_CLOCK;
if (pm_data.suspend_mode == AT91_PM_BACKUP)
pm_data.suspend_mode = AT91_PM_SLOW_CLOCK;
} }
struct pmc_info { struct pmc_info {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册