msm: pm-8x60: Register sleep status driver before regulator

During hotplug, drivers wait for core to be power collapsed to turn off
the resources used by a core in CPU_DEAD notification. The kernel
thermal module which hotplugs the core in certain conditions is
registered in the arch_initcall(). To ensure that the CPU_DEAD waits for
sleep status to be set during hotplug, register the cpu sleep status
driver before the regulator driver.

To this effect, the sleep status driver is no longer made a child device
for pm-8x60 device.

Change-Id: I772521f4b3cd18e367aa44a41d60ef9735c99ef9
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Hammerhead: Register sleep status driver before regulator
Revert "msm: lpm_resources: Ignore RPM notifications only during RPM PC."

This reverts commit 06b0425ff9f6962d176d5c9054b8d364cd282630.
msm: lpm: Alter the voting mechanism for lpm drivers
msm: spm: add intermediate LPM mode for L2 PC

Currently when the core decide to enter into "PC + L2 PC"
LPM mode it informs to RPM and there is a chance of
system can enter into either XO or VDDmin. But this LPM
mode take longer time to enter and exit. Because of this
limitation some of the usecases where there is a less
latency APPS proc stays at lower LPM level (i.e GDFS) and
causing more power consumption. To address this issue adding
an intermediate LPM mode where L2 goes to PC but not inform
to RPM.

CRs-fixed: 552743
Change-Id: I321ff260d5baf8ac44917d67e9c9dfd260c8d5ca
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Disable lpm test
msm: smd: Update edge enumeration with new TZ - RPM edge.

A new smd edge is defined between  Trust Zone(TZ) processor
and RPM processor. This change renders the edge enumeration
in smd implementation incomplete. It also has a side effect
of smem_find() reporting "wrong size" warning.

Add new edge information to the existing enumeration and
update the code to report this new edge as word aligned.

CRs-Fixed: 515017
Change-Id: I57f87e7910958f244124a0ca4f43f6d0e33b5452
Signed-off-by: FNU Ramendra <rramendr@codeaurora.org>
msm: thermal: Set vdd restriction initialize level to -1

Currently the init level is set to 0(enabled), but at this point of
time, the actual voltage is not being set yet. If the device boots
up in low temp, it will try to set level to 0(enabled) again. Since
it will check the level against with previous level which is also
0(means enabled), it will not set the actual voltage/frequency for
the rails.

Set the init level to -1(disabled), so that when device defaults to
enable vdd restriction, it will actually set the voltage.

Change-Id: I9997245953c9947889a813901032c3df8c737ad3
Signed-off-by: Jennifer Liu <chihning@codeaurora.org>
ARM: dts: msm8974: Update MPM mapping for GIC interrupts
ARM: dts: msm: Add L2 perf monitor interrupts to bypass list
arm/dt: msm-iommu-v0: don't gate XO shutdown

The MMSSNOC AXI clock is controlled by the apps clock driver,
therefore there is no concept of "active-only". If the clock
is on, it will stay on irrespective of whether the apps
processor is running or power-collapsed. Drivers need to
ensure that their requests are removed before entering a
low-power mode that is expected to lead to XO shutdown.
Therefore there is no point in including an active-only flag,
and drivers should not rely on this flag taking care of
turning off this clock, because that can't happen.

CRs-fixed: 521149
Change-Id: I5f77330599c1e7258512f655b826a215d2ddfdb7
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
arm/dt: msm-iommu-v1: don't gate XO shutdown