prima: import from kk_2.7_rb1.41 (3.2.7.47)
wcnss: Log debug registers when receives certain notification

If powering on a subsystem during restart fails, SSR framework will send
a "powerup failure" notification to the subsystem. Add support that
WCNSS platform driver will register to listen the notifications and if
receives "powerup failure" notification, it will log the debug registers.

Change-Id: I0ae8a5ee96122d71c7a86711044f6b07e400b62c
Signed-off-by: Yue Ma <yuem@codeaurora.org>
[smihir@codeaurora.org: removed powerup failure notification for riva]
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
wcnss: add API to check if wcnss is undergoing an SSR

Wlan driver should not read registers from wcnss or
try to communicate with the chip when it is undergoing
a subsystem-restart. Added an API with the wcnss platform
driver to check if ssr is in progress, this API will be
used by the wlan driver to protect register access and
other prohibited operations.

Change-Id: Ia0d93e774af126d84dbaabf5c36a2c90fdbd58be
CRs-Fixed: 621974
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
leds: pm8xxx: fix led's for aries which has 4ma and needs PM_PWM_BANK_HI
ARM: Make low-level printk work

Makes low-level printk work.

Signed-off-by: Tony Lindgren <tony@atomide.com>

Conflicts:
	kernel/printk.c

Change-Id: Ic97320d57b55549f354c5dbe380dd145e08f70fe
ARM: Fix "Make low-level printk work" to use a separate config option

Signed-off-by: Arve Hjønnevåg <arve@android.com>

Conflicts:
	kernel/printk.c

Change-Id: If3a9d8a5d538d5944345de8e8f45f36c9ce7e393
add modem notifier

N/A
(cherry picked from commit 8b89399514348b6e7fba04a08d89a9e96b1d0739)

Conflicts:
	arch/arm/mach-msm/modem-8960.c

Change-Id: Ida8008c7cc6a54e933afe88bc59b7402e8a80eef
try fix cant load modem
merge from miuiv5

Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
msm: rpc: invalidate data structures during close

When device powers down, RPC Router close can get called from both the
reboot notifier and from the platform driver remove resulting in an
access-after-free bug.

Invalidate internal data structures and check for NULL to gracefully
handle multiple close operations.

CRs-Fixed: 394129
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
(cherry picked from commit e201a31d51b79b3fb30966edea877666b217f6fb)

Change-Id: I883e9c58742b25c202ca36951df761667172dfa0
Signed-off-by: Gopal Goberu <ggober@codeaurora.org>
Reviewed-on: http://git.xiaomi.com:8660/6958
Reviewed-by: <linghuagu@gmail.com>
Tested-by: <linghuagu@gmail.com>