msm: Asoc: LPA: Fix pause and next clip play issue

- When paused and press next button to play next song,
sometimes CMD_EOS fails to get Ack from LPASS and
is wait timeout for 5sec causing delay for next
playback start.
- In the failure case, even before trigger start
of driver is done,LPA driver receives pcm_close.
In this case, though EOS is issued, it is not
getting honored from LPASS.
- If trigger start not happen in LPA driver,
avoid CMD_EOS to LPASS as it will not be handled.

CRs-Fixed: 368519 366926
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
(cherry picked from commit 9865826edb7125b2f5ca16b41894d90928a87885)

Change-Id: I206a9eeacef84c63ac8a47514d8e6ca31023767d
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
USB: msm_otg: Don't allow TCXO shutdown in host bus suspend

Currently otg driver is voting to allow TCXO shutdown in host
bus suspend due to which devices connected in system suspend
are not getting detected. Hence don't allow TCXO shutdown in
host bus suspend.

As long term solution, need HW rework for detecting connecting
devices in host mode during system suspend. This is required to
route D+ and D- lines to MPM for monitoring interrupt during
system suspend.

CRs-Fixed: 366111
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>

Conflicts:

	include/linux/usb/msm_hsusb.h

Change-Id: Ia86cda8177a7c2bf748bbda5f720d5f71889419c
Signed-off-by: Sudhir Sharma <sudsha@codeaurora.org>
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
(cherry picked from commit 381e1cfe4ed015f05278809051098cd47f9c8de1)
(cherry picked from commit 818194be9a22b33e4daeef0e0f54b09b47ec907e)
Bluetooth: Wait for wcnss to be ready after SSR

After subsystem restart (SSR), it takes about 10 sec
for wcnss to get ready to accept commands from the
host. If the BT radio is accessed before that, wcnss
can go into bad state.

CRs-fixed: 360858
Signed-off-by: Sunny Kapdi <sunnyk@codeaurora.org>
(cherry picked from commit 2a39b80e9cf53fcef57304d88260abac4c03a851)

Change-Id: I9da0c40ee015c6951b6750b55a12e1df61e86cc3
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
msm:vidc: provide support to raise afab and ebi1 clks to turbo mode.

This change provides support to raise the clks to turbo mode for mpeg4
clips with high number of slices. The firmware performance degrades if
the number of slices is more than 10. Without this fix, we see lot of
frame drops happening, causing a freeze effect.

CRs-fixed: 358615
Signed-off-by: Arun Menon <menon@codeaurora.org>
(cherry picked from commit 152c3c7ba9bc0d47857534f3c7c16f6817297ae1)

Conflicts:

	arch/arm/mach-msm/devices-8064.c
	include/media/msm/vcd_property.h

Change-Id: I1671b899be3bc88bcbee12a721f18b94830160fe
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm:vidc: provide support to raise video clks to turbo mode.

This change provides support to raise video clks to turbo mode for mpeg4
clips with high number of slices. The firmware performance degrades if
the number of slices is more than 10. Without this fix, we see lot of
frame drops happening, causing a freeze effect.

CRs-fixed: 358615
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
(cherry picked from commit 5d2945dfd41de0e13a8429c921e3516540060c6e)

Change-Id: I44a0f6b2bc3f80242bd6120a4697bc387642c99c
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm: gpio-v2: Fix spurious interrupts when gpio-irq is unmasked

To unmask a gpio interrupt, the gpio driver sets the
INTR_RAW_STATUS_EN and INTR_ENABLE bits in the INTR_CFG register.
As soon as the INTR_RAW_STATUS_EN is set, the INTR_STATUS is updated
and this causes a spurious interrupt when the irq is enabled.
This is noticed frequently when the gpio is pulled high and requests
a rising edge interrupt or pulled low and is requesting a falling edge
interrupt.
Due the internal circuit design of the TLMM IRQ block, the above method
causes a spurious interrupt when the irq was initialized.
Hence, to avoid this behavior we set the INTR_RAW_STATUS_EN, clear the
INTR_STATUS only once during setup. Every mask and unmask only toggles
the INTR_ENABLE bit.

CRs-Fixed: 346861
Change-Id: Id8353286181fe38a419bd7421518b33f2f8b26aa
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
arm: free all .init memory when CONFIG_STRICT_MEMORY_RWX is set

When CONFIG_STRICT_MEMORY_RWX is set, the .init section is
padded to the next megabyte boundary. The part of the .init
section past __init_end (i.e. the pad) was not being freed
since the kernel uses the address of __init_end to determine
how much memory to free.

The fix is to set __init_end to the end of the pad.

CRs-fixed: 367748
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
(cherry picked from commit f759542791356b1678698551b198ba062bfa97bd)

Change-Id: I2adf714b6a89a21b336990fc2f9398b7344963fc
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm: board-8960: Increase LiQUID charge-current to 1900mA

The LiQUID tablet uses a high capacity battery.
The battery should be charged faster from DC-External-charger
via the isl9519q.

Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
(cherry picked from commit 95f49ff2852b7d1e63661d2ab0d86d6c1e584fc5)

Change-Id: I362f1216e40e3f7ef0e91598ea22ae17247826f1
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm_serial_hs_lite: Increase TX path timeout

Increase the HSL TX path timeout to account for the fact
that the TX buffer size is specified in words rather than
bytes, and that some implementations may have a larger TX
queue size than what was assumed in the original timeout
calculation.

CRs-fixed: 359256
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
(cherry picked from commit 71db70cbdef261a0b28061158d9e842270a49dac)

Change-Id: Ia7da77b44b27644a5cb964ad5447ea4860e3a414
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
msm: Overlap PIL heap and non secure heap

Moves fixed area start address down, so that non secure
playback heap and PIL heap overlap. Both use the region
in a mutually exclusive manner.
ALso introduce a hole, that can be used by MM heap
lock down for content protection.

CRs-fixed: 363527

Change-Id: I0536c1ce1c4782d5d4cd5ae9767a4c09e62f4b5c
Signed-off-by: Hanumant <hanumant@codeaurora.org>