mdss: display: add spin_lock to mdss_disable_irq_nosync()

Add spin_lock to mdss_lock inside mdss_disable_irq_nosync
to avoid race condition which can cause mdss_irq to be disabled
while irq_mask bits are still set.

CRs-Fixed: 624806
Change-Id: I44074a057dff49dfc7a4d2829f3c4e599dca4a69
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm: mdss: fix IOMMU page fault when fb splash logo enabled

This fixes the IOMMU page fault seen when fb splash logo is
enabled. If fb splash logo is enabled pan display gets called
with continuous splash enabled. During this time iommu attach
should not be called.

Change-Id: I59ac704c6fd77a7e731db0b544338cac3b8e8fe6
Signed-off-by: Vineet Bajaj <vbajaj@codeaurora.org>
msm: vidc: Increase max buffers to VB2_MAX_FRAME (i.e. 64)

It's an arbitrary limit anyway.  Increase it to satisfy some clients
that'd like more buffers.

Change-Id: Ia1e0afd09089b6303b6590de804ea509b01626f4
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
Signed-off-by: Balamurugan Alagarsamy <balaga@codeaurora.org>
ASoC: msm: set IIR1 gain after IIR clock is enable

Sidetone gain is not getting applied when provide gain
value from mixers_path.xml(IIR1 INP1 Volume). The problem
is the volume control is applied before IIR clock/power is
enabled reason is controls to enable the clock are
registered with soc-dapm framework and volume control is
registered with soc-core framework and gets applied before.
Fix is to register a post power up handler with IIR1 clock
power/control widget. This handler reads  register value of
volume gain and re-apply it.

Conflicts:
	sound/soc/codecs/wcd9306.c

CRs-Fixed: 675099
Change-Id: I32c6de0f20e5e98cab6cddeefac53b8d86d5b71a
Signed-off-by: Ramjee Singh <ramjee@codeaurora.org>
Merge "msm: vidc: Increase max buffers to VB2_MAX_FRAME (i.e. 64)"
power: qpnp-charger: reset unsettled flag upon insertion

There could be a potential race between USB removal and userspace
code setting the input current settled property. A state where
USB was removed but input current settled property is set was observed.

Fix this by resetting input current settled property while USB is
inserted as well as USB removed.

Moreover prevent setting of this flag when USB is not present.

CRs-Fixed: 708352
Change-Id: I45196ce5ab0f7ad2b0ccefd33ba9d707f10aea55
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Merge "Merge "msm: vidc: Increase max buffers to VB2_MAX_FRAME (i.e. 64)""
Merge "ASoC: msm: set IIR1 gain after IIR clock is enable"
Merge "Merge "ASoC: msm: set IIR1 gain after IIR clock is enable""
Merge "mdss: display: add spin_lock to mdss_disable_irq_nosync()"
Merge "msm: mdss: fix IOMMU page fault when fb splash logo enabled"
Merge "Merge "mdss: display: add spin_lock to mdss_disable_irq_nosync()""
Merge "power: qpnp-charger: reset unsettled flag upon insertion"
Merge "Merge "power: qpnp-charger: reset unsettled flag upon insertion""
power: qpnp-charger: Add a regulator device to control flash led WAs

Flash led relies on SMBB to supply the 5V drive voltage. Add a regulator
device in qpnp-charger driver to support flash related workarounds in
SMBB.

While at it, add a SMBB temperature threshold workaround in the
regulator device. On certain devices SMBB/SMBBP over temperature
happened at default settings before flash module start thermal derating.
Raise the SMBB over temperature threshold when regulator enabled, and
restore to default setting when regulator disabled.

CRs-Fixed: 697457
Change-Id: I7b6003caebf23ea8662a21bb16f9095d1db0e7bb
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
leds: leds-qpnp: Add flash_wa regulator support in flash led driver

Add flash_wa regulator support in flash led driver. The regulator raise
the SMBB over temperature threshold before flash enabled, and restore to
default setting after flash disable.

CRs-Fixed: 697457
Change-Id: I66f8189f62a875dd549377b552bf4a8f40798f31
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
ARM: dts: msm: Add flash_wa regulator support for msm8226 flash

Add the DT property flash-wa-supply to flash device node and assign
pm8226_chg_chgr regulator to it. This enables the flash_wa regulator
support for the flash driver.

CRs-Fixed: 697457
Signed-off-by: Chunmei Cai <ccai@codeaurora.org>
Change-Id: Icdf489f41898dc759c397625514f41188c612d6c
Merge "power: qpnp-charger: Add a regulator device to control flash led WAs"
Merge "leds: leds-qpnp: Add flash_wa regulator support in flash led driver"
Merge "ARM: dts: msm: Add flash_wa regulator support for msm8226 flash"