wcd9xxx: core: Fix crash while headset insert and remove

When insert and remove headset continuously observe crash.
In the interrupt table for wcd9306, there is a interrupt
number of WCD9XXX_IRQ_RESERVED_2 (value 32).
In IRQ driver, irqs will be dispatched  based on this
interrupt table. But for WCD9XXX_IRQ_RESERVED_2, this
value being 32 and BIT_BYTE will be 4 whereas number
of interrupt registers are 0 to 3 only.
Here status array used to check interrupt set, access each
entry of interrupt table and see if bit mask is set.
so, when checking for WCD9XXX_IRQ_RESERVED_2 it will
access out of bound array status[4] which will return
unexpected value.
In failed case, status[4] matches bitmask for 32nd bit
and dispatches irq for invalid entry causing crash.
Remove the entry as it is not a valid entry and causing
out of bound access for wcd9306 and wcd9320.

Change-Id: I82ed3b47a3bd7cee7a3c90a4fba4981a0528702f
CRs-Fixed: 729475
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
power: bq27541: Convert wakelocks to wakeup sources

Change-Id: I1a66a7494aebe87ee2ebc1fd72066a130c0e9caf
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
cpu-boost: if the user is underclocking choose the minimum clock from input_boost_freq and policy->max for extra power savings if the underclocked freq is < input_boost_freq

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
misc: Update from Oppo release svn9954

Change-Id: Idc1a30e63ee548197bddf6886856e9a02bdfee39
camera_oppo: Upstream update svn9954

 * Add sensor state procfs

Change-Id: I2c14e38002e50e495d5c30db86e767cdb6071066
(cherry picked from commit c28b96ecb0e58591bd9adb82e7d118e5bbff8824)

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
bacon: Use old naming for LG panel

 * Bootloader is still sending the old name, revert the DT change for
   now to fix display detection on this hardware.

Change-Id: I850de726de2b96615ecb2763ec80b085a9102352
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
input: touchscreen: Update TP firmware to 14001220

Change-Id: If3e5cc74cb019fd4d1123db9cabba4e2e011e0c2
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
msm: vidc: Send resolution along with output buffer

Send the resolution along with output buffer to the client
to avoid a race condition where resolution might be changed
multiple times in driver before client requests for updated
resolution.

Change-Id: I8ebb99e3baa04da09f153195a674babcebcfea78
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
Merge pull request #3 from AOSPA-legacy/kitkat

pulling aospal changes upstream