]> git.karo-electronics.de Git - linux-beck.git/commit
ARM / shmobile: Return -EBUSY from A4LC power off if A3RV is active
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 14 Jul 2011 18:59:35 +0000 (20:59 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 14 Jul 2011 18:59:35 +0000 (20:59 +0200)
commit5ca80817e231723f1399bff495854ba2171103ca
treefeef09654d8045e30d854bebadc4766d73f12fd7
parentd28054020f97c7c9f15327a53945f0f40ffc5d7a
ARM / shmobile: Return -EBUSY from A4LC power off if A3RV is active

Since the A4LC should only be powered off if the A3RV is off, make
the A4LC's power down routine return -EBUSY if A3RV is not off to
indicate to the core that it doesn't want to power off the domain in
that case.  This will cause the core to regard A4LC as active, so
the pm_genpd_poweron() in pd_power_down_a3rv() is not necessary any
more.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
arch/arm/mach-shmobile/pm-sh7372.c