power: core: add set_voltage_limit API

Add the power_supply_set_voltage_limit API which
allows the POWER_SUPPLY_PROP_VOLTAGE_MAX property
to be configured for a given power supply.

CRs-Fixed: 637169
Change-Id: Ib525366ff742ad31d81ffee75920c19a6f9e8de8
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
power: qpnp-charger: take into account charge path priority

On the SMBB peripheral there is a possibility of having
both the USB and DC input being connected at the same time.
In this situation there is a requirement to be able to communicate
to userspace services that the higher priority input was
inserted so appropriate action can be taken.

This is achieved as follows:

1. If DC has the higher priority, the USB input
current limit will be reduced to 100 mA to avoid
charging from the USB path.

2. If USB has priority the DC input current
limit will be reduced to 100 mA to avoid charging
from the DC path.

3. Upon the removal of the priority charge path
the secondary charge path input current limit
will be restored to allow charging.

CRs-Fixed: 637169
Change-Id: Id5b61103b9f1d8f32ffd707d2512972c1a310108
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
msm_serial_hs:Enable Error/Break Char off

Follow the hardware sequence of enabling
RX_ERROR_CHAR_OFF and RX_BREAK_ZERO_CHAR_OFF in
MR2 register, for not allowing the Break and
parity/frame Error characters into Rx FIFO.

CRs-Fixed: 538141
Change-Id: I24f73eea456c4cb2a68b1655bcd5426426ca7d97
Signed-off-by: Dilip Kota <c_dkota@codeaurora.org>
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Merge "Merge "ARM: dts: msm: set cpu_dma_latency to 701 usec""
Merge "Merge "Merge "ARM: dts: msm: set cpu_dma_latency to 701 usec"""
Merge "Merge "cfg80211: unblock user hint when cfg80211_regdom is intersected""
Merge "Merge "Merge "cfg80211: unblock user hint when cfg80211_regdom is intersected"""
Merge "Merge "ASoC: wcd9xxx: Avoid enabling button polling from event notify handler""
Merge "Merge "Merge "ASoC: wcd9xxx: Avoid enabling button polling from event notify handler"""
Merge "Merge "ASoC: wcd9xxx: Avoid enabling button polling from event notify handler""
Merge "Merge "Merge "ASoC: wcd9xxx: Avoid enabling button polling from event notify handler"""
Merge "Merge "soc: qcom: smd: Validate read and write addresses""
Merge "Merge "Merge "soc: qcom: smd: Validate read and write addresses"""
Merge "Merge "soc: qcom: smd: Validate read and write addresses""
leds: leds-qpnp: use a single global mutex for flash led

Add a single global mutex for all instances of flash leds -
flash_0,flash_1 and flash_torch to avoid concurrency issues.

CRs-Fixed: 640712
Change-Id: I38a30432a86e47e11f975358c71557da1f58667e
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
  ASoC: msm: qdsp6v2: Add SEC_I2S_RX port as EC reference

  SECONDARY_I2S_RX as EC reference port is needed for msm8x10.
  Add support to enable SEC_I2S_RX as EC reference port.

  CRs-Fixed: 646310

Change-Id: Ie114dd29afc16ff324388743377fb5c755f4ad7b
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
leds: leds-qpnp: remove the usage of mutex_destroy for static mutex

Remove the call to mutex_destroy for the statically defined
mutex flash_lock.

CRs-Fixed: 640712
Change-Id: I664b0b94ff8e2f74d49d3f759d955bee513e5daf
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Merge "Merge "Merge "soc: qcom: smd: Validate read and write addresses"""
Merge "Merge "soc: qcom: smd: Validate read and write addresses""
Merge "Merge "Merge "soc: qcom: smd: Validate read and write addresses"""