msm: pil: Migrate to SMP2P framework from SMSM mechanism.

State information is communicated with the subsystems via SMSM
bits that use a broadcast protocol. There are disadvantages
to this, such as, not being able to ask one subsystem to stop
without affecting the others. The new SMSM Point-to-Point (SMP2P)
framework allows point to point communication of state information
between subsystems. So, switch over to using SMP2P framework for
communicating low level state between the Application processor
and other subsystems. The SMP2P framework exposes the functionality
as standard GPIO and IRQ APIs. So, we just treat it as such.

This was reverted because due to a bug in smp2p re-initialization
after performing an SSR, it broke modem SSR. This would prevent back
to back SSR on the modem because the error fatal SMP2P bit won't
get set the second time modem error fatal was triggered. That bug has
been subsequently fixed. So, re-introduce this patch.

The original patch is 901df4a6246d234a9029c26233f156f8e86a3a2e.
The revert of above is a48a11d1db49117f1e28fae04c2cb8df04264e50.
The is a revert of the above revert.

Change-Id: Ie17d6568d83d950c1890aaaced1f414e1fccbcfa
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
4 files changed