Commit graph

576320 commits

Author SHA1 Message Date
Sudheer Papothi
d6a2581efd ASoC: wcd934x: Trigger codec DSP subsystem restart
When there is a fatal error on ADSP, audio subsystem restart(SSR)
gets triggered. As a part of audio SSR, trigger codec DSP
SSR to reset the codec DSP state.

Change-Id: Id9cbda04a4c36070e52919d3a34ebc871ac22a8e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 15:22:02 -07:00
Sudheer Papothi
8bfdc09623 ASoC: wcd934x: Add support for audio subsystem restart
When there is a fatal error on ADSP, audio subsystem becomes
unresponsive. Add support for audio subsystem restart that
helps to recover ADSP and codec from the crash without
rebooting the entire system.

CRs-Fixed: 1069188
Change-Id: I2939e9fd37e96f37101b93dabd86cfdaaf06907f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-25 02:17:26 +05:30
Sudheer Papothi
8e77be66f9 drivers: mfd: wcd934x: Set MBHC registers to volatile
MBHC mechanical detection, electrical detection and micbias
registers are not getting updated in hardware after subsystem
restart results in no IRQ during headset plug insertion.
Set these MBHC registers to volatile for headset plug
detection to work properly.

Change-Id: Iaec3a17e5eed952ba0abdcffbf321ad942486769
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 12:15:48 -07:00
Linux Build Service Account
46aa49c118 Merge "icnss: Unregister the driver operations when probe fails" 2016-10-22 11:26:59 -07:00
Linux Build Service Account
915edd9d97 Merge "smb1351-charger: Fix possible Null pointer dereference" 2016-10-22 11:26:58 -07:00
Linux Build Service Account
078e8404c1 Merge "ARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2" 2016-10-22 11:26:57 -07:00
Linux Build Service Account
18f128849c Merge "qpnp-fg-gen3: Backup the learned capacity during capacity learning" 2016-10-22 11:26:56 -07:00
Linux Build Service Account
59fb1afb36 Merge "soc: qcom: glink_spi_xprt: Add support for WDSP SSR" 2016-10-22 11:26:56 -07:00
Linux Build Service Account
c33b570e39 Merge "input: touchscreen: Add force fw_update support via sysfs entry" 2016-10-22 11:26:54 -07:00
Linux Build Service Account
f17b68ab3d Merge "input: touchscreen: Add debugfs entries for GTP controller" 2016-10-22 11:26:54 -07:00
Linux Build Service Account
dac0f016e7 Merge "msm: kgsl: Remove use of uninitialized variable" 2016-10-22 11:26:53 -07:00
Linux Build Service Account
3320f03611 Merge "iommu: arm-smmu: Fix a possible null pointer dereference" 2016-10-22 00:02:23 -07:00
Linux Build Service Account
a07e2a0fb6 Merge "qpnp-fg-gen3: update the FCC unit while notifying charger" 2016-10-22 00:02:22 -07:00
Linux Build Service Account
876d57315f Merge "ARM: dts: msm: Change pinctrl settings for BLSP1 UART3 for msmcobalt" 2016-10-21 17:16:06 -07:00
Linux Build Service Account
90a7cf7d80 Merge "msm: gsi: add command stats" 2016-10-21 17:16:05 -07:00
Linux Build Service Account
40a42d8b32 Merge "defconfig: Enable generic cpu cooling device for msmcobalt" 2016-10-21 17:16:04 -07:00
Linux Build Service Account
a444daf52f Merge "driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP" 2016-10-21 17:16:03 -07:00
Linux Build Service Account
bab8b37633 Merge "driver: thermal: msm_lmh_dcvs: Register LMH DCVS cooling device" 2016-10-21 17:16:02 -07:00
Girish Mahadevan
38c509c566 ARM: dts: msm: Change pinctrl settings for BLSP1 UART3 for msmcobalt
Modify the sleep state settings for BLSP1 UART3 pins to optimize power
when the usecase isn't in play.

Change-Id: I1405a8561b1ecb2e3da87ed8b26fb087433a1c11
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2016-10-21 11:25:20 -06:00
Skylar Chang
73367c5312 msm: gsi: add command stats
Add debug statistics for GSI commands in order to
improve debug capabilities

Change-Id: Iee80fd2bf4b549665a12791009f0cf5ecc7653b9
CRs-Fixed: 1079245
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-21 10:15:04 -07:00
Ram Chandrasekar
cb92017ebd defconfig: Enable generic cpu cooling device for msmcobalt
Enable generic cpu cooling device for msmcobalt.

Change-Id: If042fdae3102390dca6d5b1e257b38504b14320f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-21 10:54:13 -06:00
Ram Chandrasekar
d14331f95b driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP
The hardware frequency that LMH DCVSh hardware has requested may not
match an actual frequency of CPU. The OSM hardware will aggregate and
match this request to a nearest frequency mentioned in the clock plan.
The current lmh dcvs driver exposes this request without matching to
a frequency value in the OPP table.

In order to reflect the final mitigated frequency, match the mitigation
frequency request from LMH DCVSh to a nearest CPU frequency floor
in OPP table.

Change-Id: Iffc380898eac33f6c30c3808eb38d7bb499f5769
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-21 10:54:12 -06:00
Ram Chandrasekar
b8af6bb420 driver: thermal: msm_lmh_dcvs: Register LMH DCVS cooling device
The LMH DCVS hardware along with different monitoring algorithms, also
provides support for HLOS to vote for a CPU mitigation request. The
hardware will aggregate this request and will place the aggregated
mitigation request to OSM. The generic CPU cooling device doesn't take
advantage of this platform CPU mitigation feature.

Register the LMH DCVSh device as a platform cpu cooling device. When
registered, thermal CPU cooling device will place the mitigation request
with the LMH DCVSh hardware bypassing the cpufreq software. This will
allow faster mitigation action.

Also, thermal core framework exposes standard sysfs interfaces for
querying the cooling device state. Using this sysfs interface, users
can query the instantaneous CPU frequency mitigation request from
LMH DCVSh hardware.

Change-Id: I23762895d04dd6f1da8bb496f2a4cf22c1b34216
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-21 10:54:12 -06:00
Lina Iyer
64892ef328 drivers: thermal: cpu_cooling: allow platform freq mitigation
cpu device can be controlled by a hardware platform device and in those
cases the cpu cooling device interface should communicate with the
platform device instead of the cpufreq module.

Allow platform drivers to register with CPU cooling with their frequency
mitigation functions. This allows the cpu cooling interface to
communicate the frequency mitigations to the platform driver directly.

Change-Id: I47960b002bf1bce1cd588de2892de46793a95562
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-10-21 10:53:56 -06:00
Linux Build Service Account
448d10ae99 Merge "input: misc: pat9125: add sysfs for suspend-resume test" 2016-10-21 07:20:45 -07:00
Linux Build Service Account
fd45ca9c59 Merge "fg-util: fix a possible buffer overflow" 2016-10-20 18:37:46 -07:00
Linux Build Service Account
cc0c20f3fa Merge "sched/core_ctl: Move header file to global location" 2016-10-20 18:37:44 -07:00
Abhijeet Dharmapurikar
bc2dcbfae6 smb1351-charger: Fix possible Null pointer dereference
The adc notification callback assumes that it will end up selecting
the correct state. However, if the parameters are outside the
expected values, the code could end up dereferencing a null pointer.

Fix this by returning before that pointer is dereferenced.

Change-Id: I42642b475a1032c3a7395336381f3bd6c1396dde
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-10-20 17:26:45 -07:00
Sameer Thalappil
f868b8ff64 icnss: Unregister the driver operations when probe fails
When WLAN driver initialization fails unregister the driver operations.

CRs-Fixed: 1077763
Change-Id: I7c7c3f98f9685711268e221fc83f2c831b02a294
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
2016-10-20 16:38:31 -07:00
Patrick Daly
98de7b7b66 iommu: arm-smmu: Fix a possible null pointer dereference
Reported by static analysis tools. generic_device_group() may return
NULL on an error case.

Change-Id: I33e8e859e99d4f7c4616aeee1da8214497e30625
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-10-20 13:21:18 -07:00
Osvaldo Banuelos
1376100dd3 ARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2
Update the VDD_APC0 and VDD_APC1 CPR RO scaling factors
for msmcobalt v2 to match the latest hardware characterization
guidelines.

CRs-Fixed: 1080409
Change-Id: I8250304e918f55d233e9b3f01c57f297f73e74ba
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-10-20 12:26:58 -07:00
Linux Build Service Account
8456550a58 Merge "defconfig: msm: avoid compilation of MDSS DP driver for 32-bit msmfalcon" 2016-10-20 12:04:31 -07:00
Linux Build Service Account
bef88789db Merge "msm: kgsl: Add sysfs control for pwrscale" 2016-10-20 12:04:30 -07:00
Linux Build Service Account
0b45c6b4a8 Merge "ASoC: wcd934x: fix click and pop in Tx path" 2016-10-20 12:04:29 -07:00
Linux Build Service Account
9584adf8b5 Merge "sched: don't bias towards waker cluster when sched_boost is set" 2016-10-20 12:04:28 -07:00
Subbaraman Narayanamurthy
a53c420c5d qpnp-fg-gen3: update the FCC unit while notifying charger
Charger driver expects the constant_charge_current_max property
in microunits. Update it.

Change-Id: I1b9117edb6c2206c09deb083529479a3ccc4618d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-20 12:04:02 -07:00
Karthikeyan Ramasubramanian
4c65e88972 soc: qcom: glink_spi_xprt: Add support for WDSP SSR
Handle WDSP_EVENT_PRE_SHUTDOWN event to indicate link down event to G-Link
core and the clients of G-Link. Handle WDSP_EVENT_POST_BOOTUP event to
indicate link up event.

CRs-Fixed: 1080354
Change-Id: I12c04ceb7af51cc5d2f0c79b524ef783dc5f749e
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-10-20 12:37:41 -06:00
Shantanu Jain
c92d56ce7c input: touchscreen: Add force fw_update support via sysfs entry
Add sysfs entry for force fw_update support in Goodix
driver.
Change the usage of kstrtoul to sscanf in driver to avoid
portability issues.

Change-Id: I147a3e465170dda7af415ade29c04257d9b11a6b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-20 04:46:36 -07:00
Shantanu Jain
52bf9de85b input: touchscreen: Add firmware upgrade via sysfs entry
Add sysfs entry for firmware upgrade support in Goodix
driver.

Change-Id: If71d4020223547e0db425c9fd37819c6166efcab
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-20 04:46:27 -07:00
Shantanu Jain
0647a86f8f input: touchscreen: Add debugfs entries for GTP controller
Add debugfs entries for address and data to read the registers
of Goodix controller.

Change-Id: I6543d523e39771615d0e1b684780141e108a2aa4
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-20 17:11:18 +05:30
Linux Build Service Account
1ff56658f3 Merge "ARM: dts: msm: Add sound card entry for msmcobalt QVR" 2016-10-20 03:33:15 -07:00
Linux Build Service Account
e9a744d743 Merge "ARM: dts: msm: Add support for Venus PIL on msmtriton" 2016-10-20 03:33:15 -07:00
Linux Build Service Account
6128ed042e Merge "clk: qcom: Update the GPU PLL configuration to 800MHz" 2016-10-20 03:33:14 -07:00
Linux Build Service Account
d3ac4bf6d2 Merge "qpnp-fg-gen3: notify charger with float voltage and FCC" 2016-10-20 03:33:11 -07:00
Linux Build Service Account
058ab0e221 Merge "qpnp-smb2: support setting FCC and float voltage in battery power supply" 2016-10-20 03:33:07 -07:00
Linux Build Service Account
cfe0e092bc Merge "ARM: 8618/1: decompressor: reset ttbcr fields to use TTBR0 on ARMv7" 2016-10-20 03:33:07 -07:00
Padmanabhan Komanduru
d3c76b29e6 defconfig: msm: avoid compilation of MDSS DP driver for 32-bit msmfalcon
The MDSS DP driver has compilation issues on msmfalcon 32-bit builds.
Remove config for the driver to skip compilation till the relevant
issues are resolved.

Change-Id: I8b4d464c793fd943abca2b9041f5751abc9ed22b
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2016-10-20 15:53:29 +05:30
Meng Wang
814a661b46 ARM: dts: msm: Add sound card entry for msmcobalt QVR
msmcobalt QVR has different hardware design with MTP.
Add sound card entry for msmcobalt QVR to enable wsa,
earpiece and microphones.

CRs-Fixed: 1078551
Change-Id: Ic55c44de74e537463a218619861f28c1e6eb66c1
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-10-20 15:26:55 +08:00
Srinivas Ramana
a0a267ebc1 ARM: 8618/1: decompressor: reset ttbcr fields to use TTBR0 on ARMv7
If the bootloader uses the long descriptor format and jumps to
kernel decompressor code, TTBCR may not be in a right state.
Before enabling the MMU, it is required to clear the TTBCR.PD0
field to use TTBR0 for translation table walks.

The commit dbece45894 ("ARM: 7501/1: decompressor:
reset ttbcr for VMSA ARMv7 cores") does the reset of TTBCR.N, but
doesn't consider all the bits for the size of TTBCR.N.

Clear TTBCR.PD0 field and reset all the three bits of TTBCR.N to
indicate the use of TTBR0 and the correct base address width.

Change-Id: Ib497ef7ecdee6c517205ec76724283d4cbd89bdc
Fixes: dbece45894 ("ARM: 7501/1: decompressor: reset ttbcr for VMSA ARMv7 cores")
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Git-commit: 117e5e9c4cfcb7628f08de074fbfefec1bb678b7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
2016-10-20 12:13:01 +05:30
Taniya Das
aa66bb7cf8 clk: qcom: Update the GPU PLL configuration to 800MHz
The GPU PLL initial configuration is modified to 800MHz and also update the
RCG to be able to support force enable/disable for gfx3d_clk_src.

Change-Id: I8e6d7dba762b678070d66e291347af2cdf804ae5
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-20 10:33:59 +05:30