msm: kgsl: don't use sscanf()

Friends do not let friends use sscanf().

CRs-Fixed: 563605
Change-Id: Ic0dedbad56af5bbee4fc833701d8bc93b118efa9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
power: qpnp-charger: request fastchg falling irq

When device is in charging mode, if enable the revert boost regulator
for flash led, smbb will tranfer from fast_chg state to bst_on state,
the charging will stop. But usbin_valid && coarse_det are still valid,
and the battery_status not change to discharging.

Register a fastchg falling irq to update charging status and make the
charging icon consistent with charging status in this situation.

Change-Id: I0ce903f221d7550759b2601864c6a13a6036c494
Signed-off-by: Wu Fenglin <fenglinw@codeaurora.org>
msm: pm: print active clocks before entering into pc

print out all active clocks during idle power collapse
and suspend power collapse using clock debug API

CRs-fixed: 596828
Change-Id: Ie653c02d490b80de001f61fe8320ee851bb139c7
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
msm: lpm_levels: return new idle level to cpuidle framework

Need to return the new idle level to cpuidle framework
but just returned input value argument 'index' which is
not used actually at lpm_cpu_power_select().

CRs-fixed: 601636
Change-Id: Iabd182eeb4fbdc67f4e07b40a1b593471cf8cbdf
Signed-off-by: Anil kumar mamidala <amami@codeaurora.org>
ASoC: wcd9xxx: Add INP2, INP3, INP4 for IIR paths

Add INP2, INP3, INP4 for IIR paths to provide client to use
any one of the four different paths for sidetone

CRs-Fixed: 612492
Change-Id: I6087487604edc249c1f2451cb0d9635399ec74ba
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
power: qpnp-bms: qpnp-charger: make logs easier to parse

There are usescases where the BMS and charger kernel logs are being
parsed for real time driver operation updates in performance testing.
There are a few suggested changes to the logging in order to make
getting the relevant information easier.

The precompensated battery current values are very useful for the VI
team to verify the battery current temperature compensation scheme.
Print it along with the final battery current.

Also, add a comma between the bat temperature logs in order to better
distinguish between the adc code value and the degC value.

Change-Id: Ie66eb7ed6e030cf15f0e6ebe3fd23c39deb9ec51
Signed-off-by: Xiaozhe Shi <xiaozhes@codeaurora.org>
power: qpnp-charger: add parallel ovp charge mode

This enables the parallel OVP charge mode for PM8941 devices.
This feature specific to PM8941 allows DC_IN and USB_IN to be
shorted on the device to allowing both input paths to be leveraged
and put more current into the battery.

Note that the feature is only enabled when fast charging
and disabled once fast charging is disabled.

Change-Id: Id76ef10c75eae267149437391f4e9fa6bfede18b
CRs-Fixed: 607941
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
power: qpnp-charger: avoid ARB during JEITA

To avoid a possible accidental reverse boost condition
imposed by setting VDDMAX < VBAT, introduce the following
new flow for JEITA.

Once warm or cool temperature zones are entered, only
adjust VBATDET:

  * If VBAT is less than VBATDET the fast charge interrupt
    will be triggered and subsequently the appropriate
    VDDMAX and IBATMAX adjustments will be made.
  * If VBAT is exceeding VBATDET, charging will be stopped
    and only resumed via the VBATDET_LO threshold. Once
    charging resumes the appropriate VDDMAX IBATMAX adjustments
    will be made.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
CRs-Fixed: 605333
Change-Id: I13f3bad10f8478efd0ed4ff4c9ae6988ca6baafe
ASoC: msm: change to enable audio for apq8074

Use the soc-compress platform driver APQ8074.

Change-Id: Iab9da993be0c0393df1314b0cfcd5328febf53b8
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
mmc: core: Issue with voltage switch sequence

When a broken UHS-I card is inserted, the voltage switch sequence
fails as expected but the controller is left in bad state due to
which software request timeouts are observed for further commands.
Add mmc_power_cycle() for any failure in voltage switch so it will
also help reset the controller in addition to card.

CRs-fixed: 608192
Change-Id: I332c0717b9310692799b9a4ba6570df67fcf3b6e
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
ASoC: msm: qdsp6v2: extra low latency mode change for audio capture

For low latency audio capture sessions adm should be
opened in low latency mode.This change checks for low latency
mode and passes the info to adm.

Change-Id: I8cc5efc44f7500d7abf6db54f8ab74d60f1bbf97
CRs-fixed: 622080
Signed-off-by: Mingming Yin <mingming@codeaurora.org>
msm: vidc: initialize venus hfi locks during hfi creation

Venus hfi locks were initialized during core init,
which is invoked when the first video instance is
created. If a debugfs command is executed before
starting the first video instance, then video driver
crashes trying to lock an uninitialized mutex.

Change-Id: I472e9de91dada94a2728dd02c747e7fde63e3e4f
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
msm: mdss: Move bus scale table implementation to device-tree

Bus scale table is chip-set dependent where number of paths per
bandwidth use-case can differ chip-set to chip-set. Current
implementation has a static table where it supports only one path per
use-case. Expand MDSS bus scaling implementation to accommodate
chip-sets where more than one path per use-case, i.e. apq8084, is
possible and move table initialization to device-tree so that every
chip-set configures its own table.

Conflicts:

	Documentation/devicetree/bindings/fb/mdss-mdp.txt
	arch/arm/boot/dts/apq8084-mdss.dtsi
	arch/arm/boot/dts/msm8226-mdss.dtsi
	arch/arm/boot/dts/msm8974-mdss.dtsi
	drivers/video/msm/mdss/mdss.h
	drivers/video/msm/mdss/mdss_mdp.c

Change-Id: Ia6f76654d129fe0ec1a7124aa87b16f96167fe84
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
Signed-off-by: Huaibin Yang <huaibiny@codeaurora.org>
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
t-base-202: Enable crytpo clocks for MSM8x26 platforms.

Change-Id: I8bb32144a44501f751d212f78fd790064b10e994
Signed-off-by: Oana Medvesan <medvesan.oana@gmail.com>
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
Acked-by: Tony Hamilton <tonyh@qti.qualcomm.com>
t-base-202: Check if kzalloc() returns a NULL pointer.

Change-Id: Ia510ce52875a2dab45b34b732a3008911d80100a
Signed-off-by: Oana Medvesan <medvesan.oana@gmail.com>
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
Acked-by: Tony Hamilton <tonyh@qti.qualcomm.com>
t-base-300: First release of t-base-300 Kernel Module.

Change-Id: I139758371c6a0a1298952d7ebf52f979d7aec965
Signed-off-by: Oana Medvesan <medvesan.oana@gmail.com>
[hnamgund@codeaurora.org: platform.h enable MC_CRYPTO_CLOCK_MANAGEMENT for
all targets and correct include path, Makefile resolve compile errors]
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
Acked-by: Tony Hamilton <tonyh@qti.qualcomm.com>
defconfig: Enable Mobicore feature on msm610

Enable Mobicore feature support on msm8610 target.

Change-Id: I35836edddd9e8d4d53508127d486c5304ebe61b7
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
msm: clock-8610: add clocks for mobicore driver

Add clocks for mobicore driver (mcd) for this target.

Change-Id: I8838847177f8dbd10e593f443220cfd76e1ffda3
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
msm: mdss: Make notify update waits interruptible

Wait for completion in notify update call are uninterruptible
causing excessive delay during suspend cases. Making them
interruptible.

Change-Id: I1a4ff6ce3e0add21d4e46a41372b076b277d10f5
Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
ARM: dts: msm8974: Update MPM mapping to bypass uart_2_irq

Include uar_2_irq in bypass list to allow XO shutdown as this
is not wakeup-capable. uart driver has wakeup gpio on CTS pin and
optional wakeup gpio on rx pin. This should take care of wakeup
from low power state if there is any activity on the pin.

Change-Id: I10d2347eb760146b69f5b13f4cababbfcadb17bf
Signed-off-by: Girish Ghongdemath <girishsg@codeaurora.org>