Commit graph

580561 commits

Author SHA1 Message Date
Linux Build Service Account
246e930ecb Merge "ARM: dts: msm: Add initial device tree for SDA630" 2017-01-04 03:25:36 -08:00
Linux Build Service Account
db25c7c878 Merge "ARM: dts: msm: Add device tree for SDM630 CDP, MTP and RCM" 2017-01-04 03:25:35 -08:00
Linux Build Service Account
94e93c87d5 Merge "ARM: dts: msm: Add initial device tree for SDM658" 2017-01-04 03:25:35 -08:00
Linux Build Service Account
9a18201fc8 Merge "sched: Fix deadlock between cpu hotplug and upmigrate change" 2017-01-04 03:25:34 -08:00
Linux Build Service Account
f478111a15 Merge "ARM: dts: msm: modify cpu nodes for sdm660" 2017-01-04 03:25:33 -08:00
Linux Build Service Account
553ba64570 Merge "ARM: dts: msm: Update SDM660+PM660A QRD board hardware version" 2017-01-04 03:25:32 -08:00
Linux Build Service Account
b4e982d4ee Merge "ARM: dts: msm: Update Venus QOS settings for SDM660" 2017-01-04 03:25:31 -08:00
Linux Build Service Account
5c124705e3 Merge "ARM: dts: msm: Add camera dtsi for sdm660 qrd" 2017-01-04 03:25:30 -08:00
Rama Krishna Phani A
398690d97b thermal: tsens: Remove calibration functions
Remove calibration functions for older targets from driver file.

Change-Id: Ic7c298e5d586a970301132708380d58d12c8c558
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-01-04 16:09:43 +05:30
Dhoat Harpal
7e81f05cb8 ARM: dts: msm: Add G-Link SPI transport device for sdm660
G-Link SPI transport is used to communicate with external audio codec.
Add G-Link SPI transport device to support that configuration.

CRs-Fixed: 1106989
Change-Id: Id447b5e89e653065df6f368a4e5e59b22e0dc159
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-01-04 15:43:02 +05:30
Dhoat Harpal
0a38bf2a3c ARM: dts: msm: Add G-Link SPI transport device for sdm630
G-Link SPI transport is used to communicate with external audio codec.
Add G-Link SPI transport device to support that configuration.

CRs-Fixed: 1106989
Change-Id: Iac48fe87152379244e2c813f767b4e497553b8d1
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-01-04 15:38:06 +05:30
Ray Zhang
0fd7e22cbb ARM: dts: msm: add a new panel driver for sdm660 QRD
nt36850 wqhd command panel will be used for sdm660 QRD,
so add a new panel driver for it.

Change-Id: I94a76aa3972978f8fb6ebca96bd452fec827b355
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
2017-01-04 15:45:55 +08:00
Odelu Kukatla
de9aa2c4aa ARM: dts: msm: Introduce bus topology for sdm630
Bus topology is the representation of bus connections in SOC
and is required for the bus driver to serve the bandwidth
requests from clients.

Change-Id: I474f390e86f291e78d6126ed769837b123e2a409
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-01-04 13:15:55 +05:30
Sharad Sangle
2671cffce6 ASoC: msm: qdsp6v2: DAP: Add check to validate param length
To avoid buffer overflow, validate input length used to
fetch visualizer data.

CRs-fixed: 1096672
Change-Id: I224bc2f20d94182713c565972fb0bd52cad6f3fd
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
2017-01-03 21:46:49 -08:00
ansharma
c59063c0b8 ARM: dts: msm: Enable red LED blinking for pm660
Add LPG and PWM parameters to blink the red LED. This is controlled by
userspace during charging.
Disable the battery-charging LED triggers to avoid conflicting LED control
by userspace and kernel battery-charging events.

CRs-Fixed: 1106738
Change-Id: Ic1c0f7ef7f8144fade05cc06db3cf87bce55c236
Signed-off-by: ansharma <ansharma@codeaurora.org>
2017-01-04 09:30:07 +05:30
Tirupathi Reddy
a8af09abd1 regulator: cprh-kbss: add support for sdm660 kbss cpr instances
sdm660 CPU CPR controllers support full hardware closed-loop CPR
operation also known as CPR hardening. Extend the cprh-kbss-regulator
driver to handle CPU subsystem specific power requirements of
the sdm660 chip.

CRs-Fixed: 1105923
Change-Id: I2e24a061a5ad4ee959dd578da9e811ac7700702c
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-01-04 09:19:00 +05:30
Subbaraman Narayanamurthy
15c1d49794 qpnp-fg-gen3: add support for configuring ESR filter coefficients
As per the hardware documentation, add support for configuring
ESR tight and broad filters for normal and low temperature. This
is needed as the low temperature ESR filter coefficients are not
functional in the hardware.

All the filter values (in terms of percentage) can be configured
through the device tree. When the battery temperature goes below
10 C or user configured temperature threshold, ESR filter values
of room temperature will be applied to ESR low temperature
filters. Once the battery temperature goes above 10 C, original
values will be applied back to ESR low temperature filters.

Change-Id: I347f194f96ace3036a3c49efe0306d9f909cef36
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-03 19:30:25 -08:00
Subbaraman Narayanamurthy
1a53645674 qpnp-fg-gen3: Handle false positives in battery missing detection
Battery missing detection interrupt fires prematurely for higher
battery ID values than the desired range. Fix this by disabling
BMD when battery is re-inserted and enable it after obtaining the
battery ID.

While at it, update the battery type shown in particular when a
battery profile is not available.

Change-Id: Ia5458a85289e47bda0a9f4bc59683af695974bc5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-03 19:30:24 -08:00
Subbaraman Narayanamurthy
3d493610e3 qpnp-fg-gen3: clear profile integrity bit upon battery removal
In certain cases like battery hotswap where a strong charger is
connected and battery is re-inserted, the expectation from the
user is to reload the battery profile. This cannot happen unless
a dVdd reset happens and wipes out FG SRAM. To help with the
aforementioned scenario, clear the profile integrity bit every
time when the battery is re-inserted. This way, FG driver will
reload the profile everytime upon battery insertion.

When the battery is missing, cycle counters cannot be cleared as
the access to FG SRAM might not succeed. Hence remove it from the
battery removal path. It will be cleared anyways when the profile
is loaded after the battery is inserted.

While at it, show the cached value of battery_id instead of
reading it every time from RR_ADC peripheral. When the battery is
re-inserted, battery id is obtained from RR_ADC driver anyways
which is sufficient.

Change-Id: I0b9566f7a9fcc81e26e68280382e2d960c49eeb5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-03 19:30:23 -08:00
Subbaraman Narayanamurthy
1897bd682b qpnp-fg-gen3: add support for dumping FG SRAM
Add support to dump FG SRAM periodically based on the module
parameters. This will be useful for debugging purpose.

To enable FG SRAM dump,
echo 1 > /sys/module/qpnp_fg_gen3/parameters/sram_dump_en

To disable FG SRAM dump,
echo 0 > /sys/module/qpnp_fg_gen3/parameters/sram_dump_en

To set FG SRAM dump period,
echo 15000 > /sys/module/qpnp_fg_gen3/parameters/sram_dump_period_ms

Change-Id: Ib4bae7f67100a4bda1e4b996f2fbaeb86da979d2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-03 19:30:17 -08:00
Syed Rameez Mustafa
3997e768ac sched: Fix new task accounting bug in transfer_busy_time()
In transfer_busy_time(), the new_task flag is set based on the active
window count prior to the call to update_task_ravg(). update_task_ravg()
however, can then increment the active window count and consequently
the new_task flag above becomes stale. This is turn leads to inaccurate
accounting whereby update_task_ravg() does accounting based on the fact
that the task is not new whereas transfer_busy_time() then continues to
do further accounting assuming that the task is new. The accounting
discrepancies are sometimes caught by some of the scheduler BUGs.

Fix the described problem by moving the check is_new_task() after the
call to update_task_ravg(). Also add two missing BUGs that would catch
the problem sooner rather than later.

Change-Id: I8dc4822e97cc03ebf2ca1ee2de95eb4e5851f459
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2017-01-03 19:22:23 -08:00
Jiangen Jiao
583385ee1c ARM: dts: msm: Update SDM660+PM660A QRD board hardware version
Change QRD board(SDM660+PM660A) major hardware version to 0x12.

CRs-Fixed: 1106360
Change-Id: I647e406199ee1daf3b7d489ccad07c5b8f448e8f
Signed-off-by: Jiangen Jiao <jiangenj@codeaurora.org>
2017-01-04 10:27:03 +08:00
Linux Build Service Account
054b950dfd Merge "msm: pcie: add mutex for PCIe enumeration" 2017-01-03 17:56:57 -08:00
Linux Build Service Account
a5f4f523f8 Merge "cpufreq: Register for hotplug notifier before locking hotplug" 2017-01-03 17:56:56 -08:00
Linux Build Service Account
3ed5f01b00 Merge "soc: qcom: Add support to enable gladiator main error logger only" 2017-01-03 17:56:55 -08:00
Linux Build Service Account
0debfc3ec9 Merge "clk: qcom: Remove mmssnoc_a_clk_cpu_vote clock instance for msm8996" 2017-01-03 17:56:55 -08:00
Linux Build Service Account
e60e904d4e Merge "msm: mdss: Fix invalid dma attachment during fb shutdown" 2017-01-03 17:56:54 -08:00
Linux Build Service Account
786f20f250 Merge "soc: qcom: smem: Fix uninitialized usage of a stack variable" 2017-01-03 17:56:53 -08:00
Linux Build Service Account
7ad652c59c Merge "ARM: dts: msm: add ufs support to sdm660 QRD" 2017-01-03 17:56:52 -08:00
Linux Build Service Account
3071230b5d Merge "ARM: dts: msm: Enable sdhc2 for sdm660 QRD" 2017-01-03 17:56:52 -08:00
Linux Build Service Account
56c4888317 Merge "ARM: dts: msm: Add CPU efficiency values for sdm630" 2017-01-03 17:56:51 -08:00
Linux Build Service Account
1965689393 Merge "msm: ipa: add ipc logging for ipa driver" 2017-01-03 17:56:50 -08:00
Linux Build Service Account
3150bfec5c Merge "mmc: block: Add check to mmc_blk_part_switch" 2017-01-03 17:56:49 -08:00
Linux Build Service Account
c07da5b602 Merge "msm: kgsl: Enable Content Protection for A512 GPU" 2017-01-03 17:56:49 -08:00
Linux Build Service Account
40c4e57f2a Merge "soc: qcom: glink: Fix queue intent after glink close" 2017-01-03 17:56:48 -08:00
Linux Build Service Account
5b848556c1 Merge "ARM: dts: msm: add cpufreq node for SDM660" 2017-01-03 17:56:47 -08:00
Linux Build Service Account
d048144b8d Merge "ARM: dts: msm: Add hw trigger for CPP GDSC on SDM/8998/8996" 2017-01-03 17:56:46 -08:00
Linux Build Service Account
7d0908d31b Merge "defconfig: msm: Enable MMCC/GPUCC and OSM clocks for sdm660" 2017-01-03 17:56:46 -08:00
Linux Build Service Account
f20f3e51d4 Merge "msm: ipa3: Fix to release IPA clock during ap suspend" 2017-01-03 17:56:45 -08:00
Linux Build Service Account
4909325ae5 Merge "ARM: dts: msm: add property to identify DSB TPDM for msm8998" 2017-01-03 17:56:44 -08:00
Naseer Ahmed
cc8af6ef9b msm: mdss: Reset compression config after dynamic DSC off
When dynamically switching modes from DSC on to off, the
compression mode control register should be set to 0 to
avoid corruption on the output.

Change-Id: Id4387063b767bf0f307c13831b9c6ecc31c20650
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2017-01-03 18:13:25 -05:00
Nicholas Troast
fe9b8816f0 qpnp-fg-gen3: show 0 time to full at 100% SOC
Currently the time to full is clamped to 0 when the charge status
reports full, but the full status is reported minutes after the SOC
reaches 100%. Furthermore, the CC estimates use SOC as a scaling
mechanism so using full status is inconsistent. Clamp the time to full
estimate to 0 when the SOC reaches 100% instead.

Change-Id: I71e3e0f0cddf3b75ae5e711c86df26fc6a79957d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-01-03 11:14:34 -08:00
Linux Build Service Account
580c141355 Merge "ARM: dts: msm: Add sdhc1 for sdm660 QRD" 2017-01-03 08:43:40 -08:00
Linux Build Service Account
31e7f8393a Merge "msm: rndis_ipa: Remove rndis_ipa loopback functionality" 2017-01-03 08:43:39 -08:00
Linux Build Service Account
236b45193e Merge "ARM: dts: msm: Enable wil6210 device for 8998 qrd-skuk" 2017-01-03 08:43:39 -08:00
Linux Build Service Account
de42cace6c Merge "msm: ipa3: send QMI to Q6 to disable flow control" 2017-01-03 08:43:38 -08:00
Linux Build Service Account
7269596081 Merge "icnss: Provide API to check the firmware ready status" 2017-01-03 08:43:37 -08:00
Linux Build Service Account
f30bbe04d2 Merge "clk: qcom: Add handoff support for smd-rpm and voter rpm clocks" 2017-01-03 08:43:37 -08:00
Linux Build Service Account
c27d8f3edb Merge "ARM: dts: msm: Camera clock changes for sdm660" 2017-01-03 08:43:36 -08:00
Linux Build Service Account
bbfa187279 Merge "ASoC: msm: Register common sound controls" 2017-01-03 08:43:35 -08:00