power: qpnp-bms: Improve logic for storing FCC learnt data

BMS module supports 16 (8-bit) battery backed-up registers.
Make sure that while backing-up the new data, always replace
the oldest stored data.

CRs-Fixed: 730047
Change-Id: I5fc406ec24ce242b722926cc1096f7dcaf561656
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
Merge "power: qpnp-bms: Improve logic for storing FCC learnt data"
Merge "Merge "power: qpnp-bms: Improve logic for storing FCC learnt data""
msm: mdss: Allow smp change during composition switch

The composition fallback mechanism might not ensure unsetting of
the pipe whose prepare call failed due to smp configuration change,
typically in the cases where change in composition requests same
pipe. This scenario is a deadlock where composition switch does
not happen, due to these pipe failures.

To handle such cases, for changed SMP request for a pipe doing
non backend composition, allow smp configuration to happen, so
that the composition could be successfully switched, thereby
preventing the deadlock.

Change-Id: I2d29ac6591671494abc7c4caf7c6c53f058d12f6
Signed-off-by: Justin Philip <jphili@codeaurora.org>
msm: mdss: ensure retire fences are signaled during panel off

When turning off command mode panel, if retire fences are still active
and suspend sequence goes through some fences may remain active.
If fences remain active command panel off sequence would stop signaling
vsyncs and would throw off the timeline. To fix this clear the retire
timeline when turning panel off.

Change-Id: I32a5fe0f81b16fa2ef959c7f05e484fb9f9f8598
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
Merge "msm: mdss: ensure retire fences are signaled during panel off"
Merge "Merge "msm: mdss: ensure retire fences are signaled during panel off""
Merge fb7dd7112d4b6429d86303f302738b6a640023c7 on remote branch

Change-Id: I505fd371843b15e15e4c8a29ef2c4c039467dd48
Merge "Merge fb7dd7112d4b6429d86303f302738b6a640023c7 on remote branch"
Merge "msm: mdss: Allow smp change during composition switch"
Merge "Merge "msm: mdss: Allow smp change during composition switch""
Merge 6ec071fa06b92f32d454b3b13fd0a007a38fa92d on remote branch

Change-Id: Idf95e267fe73fffaf8556e100e8dabad1657b460
Merge "Merge 6ec071fa06b92f32d454b3b13fd0a007a38fa92d on remote branch"
crypto: msm: check potential integer overflow

According to the specification of AEAD, AEAD request crypt length is
not a fixed maximum and associated length is also same. This could
lead to potential integer overflow, thus allocating less memory. So
we need to check potential integer overflow on AEAD request length.

CRs-Fixed: 726872
Change-Id: Ie7708000bfd8c57e2fba8e02230a7ce9cdc9634c
Signed-off-by: William Clark <wclark@codeaurora.org>
Merge "crypto: msm: check potential integer overflow"
Merge "Merge "crypto: msm: check potential integer overflow""
leds: leds-qpnp: add workaround for controlling GPLED output

There is a hardware limitation in the case of PM8941 where
enabling any of the GPLEDx requires enabling of GPLED1. Hence,
lpg channel 9 corresponding to GPLED1 should be enabled before
enabling any other lpg channels corresponding to other GPLEDs.

CRs-Fixed: 723698
Change-Id: If7fe6f26ed3d617e823e0a615ee2d6185d68c5bb
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Merge 996700f68704cc6c5a4999aafce67c5e15c31051 on remote branch

Change-Id: I6b742de0564c32bfef7f1838092216beb80a89ff
Merge "Merge 996700f68704cc6c5a4999aafce67c5e15c31051 on remote branch"
Revert "msm: mdss: Allow smp change during composition switch"

This reverts commit 6dc56c52c3e1c65d89202daada4bc547d5cf6e2f

Change-Id: I7a1d384510cf60765a334ca692aab60660106e9e