]> git.karo-electronics.de Git - mv-sheeva.git/commit
PM / shmobile: Don't include SH7372's INTCS in syscore suspend/resume
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 23 Dec 2011 00:23:30 +0000 (01:23 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 25 Dec 2011 22:39:11 +0000 (23:39 +0100)
commit0f966d74cf77a9140a025464a287e1d2fee8a1fc
tree49eaef0010125e0474f79405091a803e142b7572
parentf7dadb37931a6ffa2aa6b443188299166dc5e638
PM / shmobile: Don't include SH7372's INTCS in syscore suspend/resume

Since the SH7372's INTCS in included into syscore suspend/resume,
which causes the chip to be accessed when PM domains have been
turned off during system suspend, the A4R domain containing the
INTCS has to stay on during system sleep, which is suboptimal
from the power consumption point of view.

For this reason, add a new INTC flag, skip_syscore_suspend, to mark
the INTCS for intc_suspend() and intc_resume(), so that they don't
touch it.  This allows the A4R domain to be turned off during
system suspend and the INTCS state is resrored during system
resume by the A4R's "power on" code.

Suggested-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
arch/arm/mach-shmobile/intc-sh7372.c
drivers/sh/intc/core.c
drivers/sh/intc/internals.h
include/linux/sh_intc.h