defconfig: Enable WCNSS register dump on WCNSS bite

When Apps recieves a WDOG bite from WCNSS, collecting a register
dump of WCNSS is helpful to root cause the failure.

Change-Id: I08987fe6dd0f660607bf6b1edcf32b590f1cccaf
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
msm: clock-8610: Allow measurement of clocks in the WCNSS

For debugging reasons, it is required that WLAN drivers
be able to measure clocks in the WCNSS subsystem. It is
assumed that the WCNSS debug mux is already programmed
by the WCNSS firmware.

Change-Id: If3ebbe680347aa62d6c706f1518dda4585b90a74
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-8226: Allow measurement of clocks in the WCNSS

For debugging reasons, it is required that WLAN drivers
be able to measure clocks in the WCNSS subsystem. It is
assumed that the WCNSS debug mux is already programmed
by the WCNSS firmware.

Change-Id: I3e7411021200a96454f37a1d40a17b109be4fc70
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-8974: Allow measurement of clocks in the WCNSS

For debugging reasons, it is required that WLAN drivers
be able to measure clocks in the WCNSS subsystem. It is
assumed that the WCNSS debug mux is already programmed
by the WCNSS firmware.

Change-Id: Ia1bc054f8dd8bd51e62046c9ea71624a22bc890e
Signed-off-by: Vikram Mulukutla <markivx@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>
mmc: card: quirk: disable cache for Hynix card.

This change prevents enabling cache during card init for Hynix cards.
This change is workaround the problem of Hynix cards behavior for
adb reboot flow, when as a result of power cycle with cache enabled,
ext4 journal get aborted, because of meta data corruption.


Change-Id: I175ec7188d60fd1106e8d96387226532debe464f
Signed-off-by: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Gopal G Goberu <ggober@codeaurora.org>
power: qpnp-charger: fix charger valid check issue

Currently we use USB_CHG_PTH_STS(0x1309) to check whether charger is
valid in usbin_valid interrupt handler. Unfortunately it has
no debounce time and if USB_IN has a spike over UVP threshold
and comes back quickly, reading will be '0x10' by mistake. Fix this
by reading USBIN_VALID_RT_STS(0x1310) instead, which based on properly
debounced time.

Change-Id: Ia67a4bb433b6978a4b05a7419817e722b629ab41
CRs-Fixed: 623946
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
msm: kgsl: Remove sscanf() from kgsl_pwrctrl.c

Replace sscanf() in kgsl_pwrctrl.c with a generic function to safely
convert 32 bit unsigned ints.

CRs-fixed: 563585
Change-Id: Ic0dedbad10e2264ec8fccab622d094d123b49b77
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Merge "mmc: core: Issue with voltage switch sequence"
Merge "msm: clock-8610: Allow measurement of clocks in the WCNSS"
Merge "msm: clock-8226: Allow measurement of clocks in the WCNSS"
Merge "msm: clock-8974: Allow measurement of clocks in the WCNSS"
Merge "defconfig: Enable WCNSS register dump on WCNSS bite"
Merge "Merge "mmc: core: Issue with voltage switch sequence""
Merge "Merge "Merge "mmc: core: Issue with voltage switch sequence"""
ARM: dts: msm: Modify bus vector for RNG client on msm8226

Modify the RNG (Random Number Generator) bus vector to use a different
originating master id,this change helps alleviate some slowdowns in boot
time noticed in targets where CPU is artificially bus throttled below a
threshold frequency.

CRs-Fixed: 606371
Change-Id: Ie7ed2bdf863fb4ccb4bc6d5ca7855eb40b959277
Signed-off-by: Sana Venkat Raju <c_vsana@codeaurora.org>
Merge "ARM: dts: msm: Modify bus vector for RNG client on msm8226"
Merge "power: qpnp-charger: fix charger valid check issue"
ASoC: msm: qdsp6v2: Fix ion_import failure

When ion_import_legacy api fails,we should not
destory the client instead just bail out.

CRs-Fixed: 620370
Change-Id: Icbcf4dadd5f00e1cf4d7a356ee1c0f5835dcb4c4
Signed-off-by: Anish Kumar <kanish@codeaurora.org>
rtc: alarm: Proper handling of spinlock

In alarm_shutdown hook, taking interruptible mutex
lock in interrupt disabled context. This patch fixes
alarm_shutdown function to call rtc_read_time and
rtc_set_alarm APIs in interrupt enabled context.

Change-Id: I9392d8908c19365993dccc22504f4b6f83ae8f72
CRs-Fixed: 619657
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>