The patch titled Subject: drivers/rtc/rtc-snvs: fix suspend/resume has been added to the -mm tree. Its filename is drivers-rtc-rtc-snvs-fix-suspend-resume.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-snvs-fix-suspend-resume.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-snvs-fix-suspend-resume.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sanchayan Maity <maitysanchayan@xxxxxxxxx> Subject: drivers/rtc/rtc-snvs: fix suspend/resume The alarm interrupt handler also reads registers which are part of SNVS and need clocks enabled. However, the resume function is called after IRQ's have been enabled, hence this leads to a abort: [ 90.755222] Unhandled fault: external abort on non-linefetch (0x1008) at 0x908c604c [ 90.762892] Internal error: : 1008 [#1] ARM [ 90.767082] Modules linked in: [ 90.770174] CPU: 0 PID: 421 Comm: sh Not tainted 3.18.0-rc5-00135-g0689c67-dirty #1592 [ 90.778100] task: 8e03e800 ti: 8cad8000 task.ti: 8cad8000 [ 90.783530] PC is at snvs_rtc_irq_handler+0x14/0x74 [ 90.788424] LR is at handle_irq_event_percpu+0x3c/0x144 Fix this by using the .{suspend/resume}_noirq callbacks instead of .{suspend/resume} . Signed-off-by: Sanchayan Maity <maitysanchayan@xxxxxxxxx> Cc: Shawn Guo <shawn.guo@xxxxxxxxxx> Cc: Stefan Agner <stefan@xxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-snvs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff -puN drivers/rtc/rtc-snvs.c~drivers-rtc-rtc-snvs-fix-suspend-resume drivers/rtc/rtc-snvs.c --- a/drivers/rtc/rtc-snvs.c~drivers-rtc-rtc-snvs-fix-suspend-resume +++ a/drivers/rtc/rtc-snvs.c @@ -346,7 +346,10 @@ static int snvs_rtc_resume(struct device } #endif -static SIMPLE_DEV_PM_OPS(snvs_rtc_pm_ops, snvs_rtc_suspend, snvs_rtc_resume); +static const struct dev_pm_ops snvs_rtc_pm_ops = { + .suspend_noirq = snvs_rtc_suspend, + .resume_noirq = snvs_rtc_resume, +}; static const struct of_device_id snvs_dt_ids[] = { { .compatible = "fsl,sec-v4.0-mon-rtc-lp", }, _ Patches currently in -mm which might be from maitysanchayan@xxxxxxxxx are drivers-rtc-rtc-snvs-add-clock-support.patch drivers-rtc-rtc-snvs-fix-suspend-resume.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html