msm: watchdog: always manage interrupt on core 0

Previously the interrupt could end up being enabled or disabled on
either core. Since we switched to the percpu irq framework, it is a
problem if we enable the irq on one core and disable it on the other.
So, guarantee that the irq is always setup and removed on core 0.

CRs-fixed: 367280
Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
(cherry picked from commit b1e211ed27c6e09963513cc702f8682fa5fbbe4d)

Change-Id: Ib69c5808bca89453f3a222bed8eb66e4db4111fb
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
RNDIS: Add Data aggregation (multi packet) support

Add data aggregation support using RNDIS Multi Packet feature
to achieve better UDP Downlink throughput. Max 3 RNDIS Packets
aggregated into one RNDIS Packet with this implementation.

With this change, seeing UDP Downlink throughput increase
from 90 Mbps to above 100 Mbps when using Iperf and sending
data more than 100 Mbps.

CRs-Fixed: 352010
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Signed-off-by: Rajkumar Raghupathy <raghup@codeaurora.org>
(cherry picked from commit 5b165cb7da498d1489a66affd4309215aae65554)

Change-Id: I4f4d3c43020b0a04ee86bf8a55423b9094673ac8
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
vidc: Adjust core timeout based on input frame size

Video core is dropping certain IDR frames due to timeout.
This is resulting in video corruption. Computing the core
timeout based on input frame size and programming it for
each input frame fixes the issue.

CRs-fixed: 370570
Signed-off-by: Rajeshwar Kurapaty <rkurapat@codeaurora.org>
(cherry picked from commit 6084636fbf190de0add7a0fb192a26f695fbe402)

Change-Id: I72f81d642860ed28b4b5caf2e3a119245f9abb65
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
mtd: msm_nand: Fix wrong uncorrectable error bit check

For the Nand controller on 7x30 and 7x27a, the
uncorrectable error bit in the NANDC_BUFFER_STATUS
register is changed to BIT(8) from BIT(3) (in legacy
targets) due to change in the ECC requirements. Currently,
this is handled only in dual nandc mode (default for 7x30
and 7x27a). In case, if only single nandc is used, the
uncorrectable bit check is broken and the driver wouldn't
detect any ECC errors.

Add software version info in platform data to differentiate
between the targets that have different register interface.

CRs-fixed: 365433
Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
(cherry picked from commit ec9b3250fe233e4ff96b4ad23372df5f8299fc67)

Change-Id: Ibfdc4e5cc5c91426b0eca45a400b8549d42eabcc
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
Revert "msm: vidc: Avoid reconfig if EoS is received after SPS/PPS"

This reverts commit fcd8763cbf25679c999e363ac63e65a234e4192d.
The above commit will break the trick mode playback functionality.

CRs-fixed: 370048
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
(cherry picked from commit 5fd16f4c3d7c0a8a0a2147405e91bbfb9be6720e)

Change-Id: I5a9c27dc174941bb5bc22fefe6f4cc037e71b8cf
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
vidc:720p: Fix first buffer with EOS flag in video decoder

The video driver is throwing error for erronious header
input buffer with EOS flag enabled. This commit will
fix the error case by amending the EOS handling for the
first buffer.

CRs-fixed: 370048
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
(cherry picked from commit ed4b2afe41aa4dec5bf06823da35e33645d558a1)

Change-Id: Ibbd7079347917b7ac84c69789df66dca96a3bdd6
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
power: pm8921-charger: force 19.2Mhz clock before accessing registers

The charger was observed to be in locked up state upon booting up. The
initialization time configurations were being ignored causing charging
to not happen.

Fix this by forcing the charger to run from 19.2Mhz clock prior to
accessing any charger registers. This made the charger come out of the
locked up state and accept writes to it.

CRs-Fixed: 372383
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit c3695def3ba4d1b65bd8deb0beaded230463c873)

Change-Id: I5234ed71242880e87a37af161b1c62a19a6025fd
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>
Bluetooth: Update the scan state with Inquiry commands in non-LE case

Update the hdev scan state with Inquiry start/cancel commands in
non-LE case accordingly. And also there was no check to see the
SCAN_BR mode before sending inquiry cancel.Added a check to see
if the scan state is SCAN_BR,then send inquiry cancel

Signed-off-by: Bhasker Neti <bneti@codeaurora.org>
CRs-fixed: 359771
(cherry picked from commit 0976074df4de122b042c82a6b9c4df1ea05f0eb6)

Change-Id: Iffbe7286fdf59c43820f8fa0a346267e708c7080
Signed-off-by: Srivalli Oguri <oguri@codeaurora.org>