OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoleds: qpnp-flash-v2: modify regulator control for switch devices
Subbaraman Narayanamurthy [Tue, 25 Oct 2016 03:22:19 +0000 (20:22 -0700)]
leds: qpnp-flash-v2: modify regulator control for switch devices

Currently multiple regulator devices can be specified for LED
switch device though a switch device may just require one supply.
Also, before the switch device is enabled, voltage request is
sent to set the maximum voltage. This is not needed with the
regulators like BoB being used as supply for the switch device.
Just enabling the regulator is enough during switch operation.
Modify the way the regulator is obtained and controlled for
switch operation.

Since BoB regulator is configured by the bootloader properly
for flash operation, remove them from the supply list of LED
switch devices on pmicobalt and pm2falcon.

While at it, fix the way device tree properties are read from
flash/torch, switch devices.

CRs-Fixed: 1083246
Change-Id: I8eb5f305f89bc18ad4b735bd89cbf259f0e1ea11
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoleds: qpnp-flash-v2: Add sysfs support to query max_current
Subbaraman Narayanamurthy [Wed, 17 Aug 2016 23:19:32 +0000 (16:19 -0700)]
leds: qpnp-flash-v2: Add sysfs support to query max_current

Add support to query max_current for each switch node through
sysfs. This will be useful to know the maximum current that
the flash switch device can draw at that time.

Change-Id: Ie83e71eafff5c49c81f56f92aa719662814997ed
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoMerge "debug-pagealloc: Panic on pagealloc corruption"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:45 +0000 (22:49 -0800)]
Merge "debug-pagealloc: Panic on pagealloc corruption"

7 years agoMerge "msm: kgsl: add egl_surface/egl_image usage count in debugfs"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:44 +0000 (22:49 -0800)]
Merge "msm: kgsl: add egl_surface/egl_image usage count in debugfs"

7 years agoMerge "regulator: qpnp-labibb: add support to configure PFM for LAB regulator"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:43 +0000 (22:49 -0800)]
Merge "regulator: qpnp-labibb: add support to configure PFM for LAB regulator"

7 years agoMerge "ARM: dts: msm: Add IMEM pil entry for msmtriton"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:42 +0000 (22:49 -0800)]
Merge "ARM: dts: msm: Add IMEM pil entry for msmtriton"

7 years agoMerge "PM / devfreq: Restart previous governor if new governor fails to start"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:41 +0000 (22:49 -0800)]
Merge "PM / devfreq: Restart previous governor if new governor fails to start"

7 years agoMerge "timer: Don't wait for running timers when migrating during isolation"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:41 +0000 (22:49 -0800)]
Merge "timer: Don't wait for running timers when migrating during isolation"

7 years agoMerge "sched/core: Fix migrate tasks bail-out condition"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:40 +0000 (22:49 -0800)]
Merge "sched/core: Fix migrate tasks bail-out condition"

7 years agoMerge "core_ctl: Synchronize access to cluster cpu list"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:39 +0000 (22:49 -0800)]
Merge "core_ctl: Synchronize access to cluster cpu list"

7 years agoMerge "ARM: dts: msm: Fix BT current leakage in msmcobalt MTP and CDP"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:38 +0000 (22:49 -0800)]
Merge "ARM: dts: msm: Fix BT current leakage in msmcobalt MTP and CDP"

7 years agoMerge "clk: qcom: Add support to initialize & handle dynamic update for alpha plls"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:38 +0000 (22:49 -0800)]
Merge "clk: qcom: Add support to initialize & handle dynamic update for alpha plls"

7 years agoMerge "ARM: dts: msm: Correct camera dtsi place for msmcobalt skuk device"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:36 +0000 (22:49 -0800)]
Merge "ARM: dts: msm: Correct camera dtsi place for msmcobalt skuk device"

7 years agoMerge "arm: dma-mapping: page align size before flush tlb"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:36 +0000 (22:49 -0800)]
Merge "arm: dma-mapping: page align size before flush tlb"

7 years agoMerge "ARM: dts: msm: Add GPU mempools properties for all msm"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:34 +0000 (22:49 -0800)]
Merge "ARM: dts: msm: Add GPU mempools properties for all msm"

7 years agoMerge "msm: camera: Change CID array size to MAX_CID_CH_PARAM_ENTRY"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:33 +0000 (22:49 -0800)]
Merge "msm: camera: Change CID array size to MAX_CID_CH_PARAM_ENTRY"

7 years agoMerge "clk: qcom: gpucc: add and update clocks of GPUCC"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:26 +0000 (22:49 -0800)]
Merge "clk: qcom: gpucc: add and update clocks of GPUCC"

7 years agoMerge "ARM: dts: msm: Add camera node for msmcobalt QVR board"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:25 +0000 (22:49 -0800)]
Merge "ARM: dts: msm: Add camera node for msmcobalt QVR board"

7 years agoMerge "msm: camera: Change %p into %pK"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:25 +0000 (22:49 -0800)]
Merge "msm: camera: Change %p into %pK"

7 years agoMerge "msm: camera: sensor: Change initializer to 0 instead of -EINVAL"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:24 +0000 (22:49 -0800)]
Merge "msm: camera: sensor: Change initializer to 0 instead of -EINVAL"

7 years agoMerge "msm: kgsl: Change device-type memory mapping to Normal-NC"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:23 +0000 (22:49 -0800)]
Merge "msm: kgsl: Change device-type memory mapping to Normal-NC"

7 years agoMerge "msm: pcie: change the log type for PCIe Synopsys MSI interrupts"
Linux Build Service Account [Fri, 11 Nov 2016 06:49:22 +0000 (22:49 -0800)]
Merge "msm: pcie: change the log type for PCIe Synopsys MSI interrupts"

7 years agoMerge "ARM: dts: msm: Enable memory allocation for diag on cobalt"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:42 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Enable memory allocation for diag on cobalt"

7 years agoMerge "defconfig: Enabling config INET_DIAG_DESTROY"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:41 +0000 (15:14 -0800)]
Merge "defconfig: Enabling config INET_DIAG_DESTROY"

7 years agoMerge "memshare: Pass device structure to ramdump driver"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:41 +0000 (15:14 -0800)]
Merge "memshare: Pass device structure to ramdump driver"

7 years agoMerge "ARM: dts: msm: Update clock gcc node for MSMfalcon/Triton"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:40 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Update clock gcc node for MSMfalcon/Triton"

7 years agoMerge "msm: kgsl: use seq_file for mem_entry debugfs"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:39 +0000 (15:14 -0800)]
Merge "msm: kgsl: use seq_file for mem_entry debugfs"

7 years agoMerge "ASoC: msm: qdsp6v2: add support for tx app type config"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:38 +0000 (15:14 -0800)]
Merge "ASoC: msm: qdsp6v2: add support for tx app type config"

7 years agoMerge "ARM: dts: msm: Add IMEM pil entry for msmfalcon"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:37 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Add IMEM pil entry for msmfalcon"

7 years agoMerge "ARM: dts: msm: Enable memory allocation for diag on falcon"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:37 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Enable memory allocation for diag on falcon"

7 years agoMerge "ARM: dts: msm: Add storage node for QRD interposer msmcobalt"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:36 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Add storage node for QRD interposer msmcobalt"

7 years agoMerge "qcom-charger: smblib: lower delay in OTG soft-start check"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:35 +0000 (15:14 -0800)]
Merge "qcom-charger: smblib: lower delay in OTG soft-start check"

7 years agoMerge "NFC: Detection of NQ chip set and firmware version"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:34 +0000 (15:14 -0800)]
Merge "NFC: Detection of NQ chip set and firmware version"

7 years agoMerge "ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:33 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt"

7 years agoMerge "regulator: qpnp-labibb: Rename properties to reflect the vendor"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:32 +0000 (15:14 -0800)]
Merge "regulator: qpnp-labibb: Rename properties to reflect the vendor"

7 years agoMerge "Revert "input: touchscreen: Add synaptics v1 driver""
Linux Build Service Account [Thu, 10 Nov 2016 23:14:31 +0000 (15:14 -0800)]
Merge "Revert "input: touchscreen: Add synaptics v1 driver""

7 years agoMerge "Revert "input: touchscreen: synaptics v1.1""
Linux Build Service Account [Thu, 10 Nov 2016 23:14:31 +0000 (15:14 -0800)]
Merge "Revert "input: touchscreen: synaptics v1.1""

7 years agoMerge "usb: host: xhci: Replace msleep with usleep_range"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:30 +0000 (15:14 -0800)]
Merge "usb: host: xhci: Replace msleep with usleep_range"

7 years agoMerge "smb138x-charger: expose CHARGE_TYPE in parallel psy"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:29 +0000 (15:14 -0800)]
Merge "smb138x-charger: expose CHARGE_TYPE in parallel psy"

7 years agoMerge "ASoC: Change info logs to debug"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:28 +0000 (15:14 -0800)]
Merge "ASoC: Change info logs to debug"

7 years agoMerge "ASoC: msmcobalt: clean up bootup errors"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:27 +0000 (15:14 -0800)]
Merge "ASoC: msmcobalt: clean up bootup errors"

7 years agoMerge "ASoC: wcd9xxx: clean up bootup errors"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:26 +0000 (15:14 -0800)]
Merge "ASoC: wcd9xxx: clean up bootup errors"

7 years agoMerge "ASoC: msm: refactor machine driver for msmfalcon"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:24 +0000 (15:14 -0800)]
Merge "ASoC: msm: refactor machine driver for msmfalcon"

7 years agoMerge "qseecom: remove entry from qseecom_registered_app_list"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:23 +0000 (15:14 -0800)]
Merge "qseecom: remove entry from qseecom_registered_app_list"

7 years agoMerge "ARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:22 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt"

7 years agoMerge "msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:21 +0000 (15:14 -0800)]
Merge "msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill"

7 years agoMerge "USB: gadget: mtp: Make mtp_tx_req_len as Tx transfer length"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:20 +0000 (15:14 -0800)]
Merge "USB: gadget: mtp: Make mtp_tx_req_len as Tx transfer length"

7 years agoMerge "msm: ipa: Add support to configure WAN RX desc size"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:20 +0000 (15:14 -0800)]
Merge "msm: ipa: Add support to configure WAN RX desc size"

7 years agoMerge "ARM: dts: msm: Disable lpm sleep modes for msmfalcon"
Linux Build Service Account [Thu, 10 Nov 2016 23:14:16 +0000 (15:14 -0800)]
Merge "ARM: dts: msm: Disable lpm sleep modes for msmfalcon"

7 years agosched/core: Fix migrate tasks bail-out condition
Olav Haugan [Wed, 9 Nov 2016 01:06:21 +0000 (17:06 -0800)]
sched/core: Fix migrate tasks bail-out condition

Migrate tasks function is used by both hotplug and cpu isolation. During
hotplug all the cpus are stalled (in stop machine) while tasks are being
migrated. However, this is not the case during cpu isolation. A task
that was counted as a pinned thread might have been migrated off the
cpu. Take this into account when checking whether we have completed
moving all tasks off the runqueue.

Also ignore warning about tasks moving off the run-queue for isolation
use case.

Change-Id: I5c5f25eb9b1eaf0605b606a65e0ac86996fa5f27
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agocore_ctl: Synchronize access to cluster cpu list
Olav Haugan [Tue, 8 Nov 2016 21:45:01 +0000 (13:45 -0800)]
core_ctl: Synchronize access to cluster cpu list

Cluster cpu list traversal is not properly protected against removal of
element by a separate thread. Add proper locking to ensure an element
cannot be removed while accessing the list.

In addition ensure we don't end up in a livelock never exiting the loop
due to hotplug continuously moving elements to the end of the list.

Change-Id: Ie98fe48c2f4fdd0244573229b77ee9823df9e214
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agoARM: dts: msm: Fix BT current leakage in msmcobalt MTP and CDP
Sungjun Park [Thu, 20 Oct 2016 17:41:19 +0000 (10:41 -0700)]
ARM: dts: msm: Fix BT current leakage in msmcobalt MTP and CDP

There is a current leakage on S5 and LDO XO RF rail during
BT sleep. To prevent the current leakage, L7A/L17A/L25A
should be on during BT sleep. So, change L7A/L17A/L25A LDOs
from pin control version to SW control not to follow HW_EN2.
RFCLK2 has not been turned off during sleep and caused
extra current penalty. For RFCLK2 to follow HW_EN2 pin control,
clk_rf_clk2_pin should be used.

Change-Id: Ie316941535f62afd75eac21280061b489e9196c1
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
7 years agoASoC: msm: qdsp6v2: add support for tx app type config
Derek Chen [Fri, 15 Apr 2016 21:56:55 +0000 (17:56 -0400)]
ASoC: msm: qdsp6v2: add support for tx app type config

Add support for TX path COPP calibration according to
app type configuration

CRs-fixed: 1015476
Change-Id: I0bcbfadb0c1a22529863a5c4b8cc5c53a1028915
Signed-off-by: Derek Chen <chenche@codeaurora.org>
7 years agoarm: dma-mapping: page align size before flush tlb
Shiraz Hashim [Thu, 3 Nov 2016 15:14:14 +0000 (20:44 +0530)]
arm: dma-mapping: page align size before flush tlb

start and end must be page aligned while calling
flush_tlb_kernel_range else the last page may get
missed while invalidation.

Change-Id: Ibaab202c47a475623e197a13191b2fed638ce20b
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
7 years agoARM: dts: msm: Correct camera dtsi place for msmcobalt skuk device
Wei Ding [Thu, 10 Nov 2016 02:42:42 +0000 (10:42 +0800)]
ARM: dts: msm: Correct camera dtsi place for msmcobalt skuk device

Correct the camera dtis place to support multiple chipset
version for msmcobalt skuk device.

Change-Id: I20e12bc1597ad15cb3dc9c3ef18d81d039931e07
Signed-off-by: Wei Ding <weiding@codeaurora.org>
7 years agomemshare: Pass device structure to ramdump driver
Manoj Prabhu B [Mon, 7 Nov 2016 14:38:41 +0000 (20:08 +0530)]
memshare: Pass device structure to ramdump driver

The ramdump driver uses the device pointer during ramdump read.
This change passes in the device pointer for memshare during
ramdump create and moves the call to the probe function.

CRs-Fixed: 1079523
Change-Id: I687696dbedfa0ce7e6053d70291a7beb6f81f82e
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
7 years agoARM: dts: msm: Update clock gcc node for MSMfalcon/Triton
Taniya Das [Wed, 9 Nov 2016 10:23:30 +0000 (15:53 +0530)]
ARM: dts: msm: Update clock gcc node for MSMfalcon/Triton

Modify the clock_gcc dummy clock to use the real clock controller for all
global clock controller clients.

Change-Id: Iac989d3c9312654b599d8299206e5478ca454861
Signed-off-by: Taniya Das <tdas@codeaurora.org>
7 years agoRevert "input: touchscreen: Add synaptics v1 driver"
Abinaya P [Thu, 25 Aug 2016 07:38:08 +0000 (13:08 +0530)]
Revert "input: touchscreen: Add synaptics v1 driver"

This reverts  'commit d13776d16aca ("input: touchscreen: Add synaptics
v1 driver")'

Change-Id: I1c0c57de3319c59c094b9e8d9192995312192354
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
7 years agoARM: dts: msm: Add IMEM pil entry for msmtriton
Gaurav Kohli [Mon, 7 Nov 2016 09:45:50 +0000 (15:15 +0530)]
ARM: dts: msm: Add IMEM pil entry for msmtriton

Add IMEM PIL entry to save relocatable address of images
loaded by PIL.

Change-Id: Ie09c8ae431cc7da4c8cd745d9c6d018e6a256158
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoARM: dts: msm: Add IMEM pil entry for msmfalcon
Gaurav Kohli [Mon, 7 Nov 2016 09:04:34 +0000 (14:34 +0530)]
ARM: dts: msm: Add IMEM pil entry for msmfalcon

Add IMEM PIL entry to save relocatable address of images
loaded by PIL.

Change-Id: I79acd047c7e414ed19a2f992f8ff801b63c8a2ad
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoRevert "input: touchscreen: synaptics v1.1"
Abinaya P [Mon, 22 Aug 2016 10:48:47 +0000 (16:18 +0530)]
Revert "input: touchscreen: synaptics v1.1"

This reverts 'commit 7112993181e3 ("input: touchscreen: synaptics v1.1")'
This change is not needed in 4.4 kernel.

Change-Id: I89ab8f353bc04bc0a04d5f5a6993e8e8e5ebbd2e
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
7 years agoqcom-charger: smblib: lower delay in OTG soft-start check
Harry Yang [Tue, 1 Nov 2016 19:56:36 +0000 (12:56 -0700)]
qcom-charger: smblib: lower delay in OTG soft-start check

Currently, there is a delay of 20msec before raising OTG
current limit, which may be too long for some OTG devices and
cause unexpected issues.

Change it to 1ms or 2ms per HW timing.

Change-Id: Ie09a65e7974e2412af4add3b6f1e0aa20ee4a34b
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agoclk: qcom: Add support to initialize & handle dynamic update for alpha plls
Amit Nischal [Mon, 27 Jun 2016 12:12:10 +0000 (17:42 +0530)]
clk: qcom: Add support to initialize & handle dynamic update for alpha plls

Add support to do initial configuration for alpha plls and votable
alpha PLLs need to have the fsm mode enabled as part of the
initialization using flag 'SUPPORTS_FSM_MODE'.

Alpha PLLs can support two kinds of input signals, normal and latched.
The normal input is directly passed to the core, while the latched input
requires a latch and acknowledge sequence to be performed for the
changed input to propagate.

Alpha PLLs can support dynamic update with both kind of input signals.
The ones which support this using a latched interface however need to
follow the latch/wait-for-ack sequence to be performed when the rate
changes. Mark these with a new flag 'SUPPORTS_DYNAMIC_UPDATE' to handle
this as part of clk_alpha_pll_set_rate().

PLLs could require post div to be set at runtime, add a vco_data which
could be used for these settings.

Change-Id: Ia0b9a2a52a3b33b7b68409c19c460d717eb5c1e2
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agoregulator: qpnp-labibb: add support to configure PFM for LAB regulator
Subbaraman Narayanamurthy [Tue, 1 Nov 2016 03:51:08 +0000 (20:51 -0700)]
regulator: qpnp-labibb: add support to configure PFM for LAB regulator

As per the hardware documentation, PFM needs to be disabled for
LAB regulator during slow start. When the display is turned off,
PFM needs to be disabled with the default current limit. When the
display is turned on, after VREG_OK interrupt fires, PFM needs to
be enabled after overriding the current limit. Add support for
it. Currently this is required only for pmicobalt.

While at it, fix the current limit configuration for LAB
regulator.

CRs-Fixed: 1024407
Change-Id: Icb3781ca31dd8474cfca077c52593dc69d011127
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: Change LAB precharge time to 500us in pmicobalt
Subbaraman Narayanamurthy [Tue, 1 Nov 2016 01:29:24 +0000 (18:29 -0700)]
ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt

Set LAB's precharge time to max 500us to optimize the precharge
behavior as suggested in the hardware documentation.

CRs-Fixed: 1084297
Change-Id: I118f4254686caf498087847916b7710662ab31e7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoregulator: qpnp-labibb: Rename properties to reflect the vendor
Subbaraman Narayanamurthy [Tue, 1 Nov 2016 00:00:18 +0000 (17:00 -0700)]
regulator: qpnp-labibb: Rename properties to reflect the vendor

Currently, some properties in LABIBB regulator driver are having
prefix "qpnp" which is not reflecting the vendor. Change it to
"qcom" to reflect the vendor name correctly and also match with
other DT properties.

CRs-Fixed: 1071971
Change-Id: I182dddc29f3d7c7b449b56ac7fb84e74061cf3a4
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoregulator: labibb: configure LCD/AMOLED mode and SWIRE control selectively
Subbaraman Narayanamurthy [Wed, 12 Oct 2016 23:47:47 +0000 (16:47 -0700)]
regulator: labibb: configure LCD/AMOLED mode and SWIRE control selectively

For LABIBB peripherals in pmicobalt, bootloader configures
LCD/AMOLED mode and SWIRE control based on a GPIO selector.
Hence, add support to configure them selectively.

While at it, fix the variable name used in read/write APIs to
reflect the address rather than base. Also use the pmic subtype
macros from qpnp-revid.h directly.

CRs-Fixed: 1071971
Change-Id: Ibbf3d432709eadf0808e062726804be6b2a065ee
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoARM: dts: msm: Add GPU mempools properties for all msm
Hareesh Gundu [Mon, 7 Nov 2016 10:23:55 +0000 (15:53 +0530)]
ARM: dts: msm: Add GPU mempools properties for all msm

Add initial set of configuration for GPU mempools
to reserve page pools at init time of kgsl driver.

CRs-Fixed: 1064046
Change-Id: Ie6789e13be7316a0de43538b9e477920fa64c6bb
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agoMerge "crypto: msm: qce50: Prevent deadlock during timeout"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:11 +0000 (16:25 -0800)]
Merge "crypto: msm: qce50: Prevent deadlock during timeout"

7 years agoMerge "dma-mapping: use iommu_unmap for unmapping address"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:10 +0000 (16:25 -0800)]
Merge "dma-mapping: use iommu_unmap for unmapping address"

7 years agoMerge "ARM: dts: msm: switch to RPM control for regulators on MSMFALCON"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:09 +0000 (16:25 -0800)]
Merge "ARM: dts: msm: switch to RPM control for regulators on MSMFALCON"

7 years agoMerge "fg-memif: update IMA error handling and clear sequence"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:07 +0000 (16:25 -0800)]
Merge "fg-memif: update IMA error handling and clear sequence"

7 years agoMerge "spmi: pmic-arb: support show_resume_irq"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:04 +0000 (16:25 -0800)]
Merge "spmi: pmic-arb: support show_resume_irq"

7 years agoMerge "ASoC: wcd934x: Change SIDO reference to internal"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:04 +0000 (16:25 -0800)]
Merge "ASoC: wcd934x: Change SIDO reference to internal"

7 years agoMerge "msm: kgsl: Enable retention for gpu core clock"
Linux Build Service Account [Thu, 10 Nov 2016 00:25:02 +0000 (16:25 -0800)]
Merge "msm: kgsl: Enable retention for gpu core clock"

7 years agoMerge "msm: kgsl: Ignore EAGAIN when programming perfcounter"
Linux Build Service Account [Thu, 10 Nov 2016 00:24:58 +0000 (16:24 -0800)]
Merge "msm: kgsl: Ignore EAGAIN when programming perfcounter"

7 years agoMerge "msm: kgsl: Increase fault detection threshold value"
Linux Build Service Account [Thu, 10 Nov 2016 00:24:57 +0000 (16:24 -0800)]
Merge "msm: kgsl: Increase fault detection threshold value"

7 years agoMerge "wil6210: validate wil_pmc_alloc parameters"
Linux Build Service Account [Thu, 10 Nov 2016 00:24:56 +0000 (16:24 -0800)]
Merge "wil6210: validate wil_pmc_alloc parameters"

7 years agoMerge "mdss: sde: Add register read/write debugfs for SDE rotator"
Linux Build Service Account [Thu, 10 Nov 2016 00:24:55 +0000 (16:24 -0800)]
Merge "mdss: sde: Add register read/write debugfs for SDE rotator"

7 years agoMerge "msm: kgsl: Declare iomem addresses as void"
Linux Build Service Account [Thu, 10 Nov 2016 00:24:55 +0000 (16:24 -0800)]
Merge "msm: kgsl: Declare iomem addresses as void"

7 years agoMerge "msm: kgsl: Correct the merciu size for a540"
Linux Build Service Account [Thu, 10 Nov 2016 00:24:54 +0000 (16:24 -0800)]
Merge "msm: kgsl: Correct the merciu size for a540"

7 years agotimer: Don't wait for running timers when migrating during isolation
Vikram Mulukutla [Tue, 8 Nov 2016 23:21:41 +0000 (15:21 -0800)]
timer: Don't wait for running timers when migrating during isolation

A CPU that is isolated needs to have its timers migrated off to
another CPU. If while migrating timers, there is a running
timer, acquiring the timer base lock after marking a CPU as
isolated will ensure that:

1) No more timers can be queued on to the isolated CPU, and
2) A running timer will finish execution on the to-be-isolated
   CPU, and so will any just expired timers since they're all
   taken off of the CPU's tvec1 in one go while the base lock
   is held.

Therefore there is no apparent reason to wait for the expired
timers to finish execution, and isolation can proceed to migrate
non-expired timers even when the expired ones are running
concurrently.

While we're here, also add a delay to the wait-loop inside
migrate_hrtimer_list to allow for store-exclusive fairness
when run_hrtimer is attempting to grab the hrtimer base
lock.

Change-Id: Ib697476c93c60e3d213aaa8fff0a2bcc2985bfce
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
7 years agoPM / devfreq: Restart previous governor if new governor fails to start
Saravana Kannan [Mon, 24 Oct 2016 23:35:05 +0000 (16:35 -0700)]
PM / devfreq: Restart previous governor if new governor fails to start

If the new governor fails to start, switch back to old governor so that the
devfreq state is not left in some weird limbo.

Change-Id: I7cf1e6ceb63d27ce08b2d17b97a9844d257464ce
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
7 years agocrypto: msm: qce50: Prevent deadlock during timeout
Yasir Malik [Thu, 3 Nov 2016 21:49:19 +0000 (17:49 -0400)]
crypto: msm: qce50: Prevent deadlock during timeout

Lock out interrupts during issuing dummy request in timeout to prevent from
a potential deadlock happening.

Change-Id: I986d8c36c839a1dee23761465ad331ffc31dd6ac
CRs-Fixed: 1008319
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Yasir Malik <ymalik@codeaurora.org>
7 years agomsm: kgsl: add egl_surface/egl_image usage count in debugfs
Santhosh Punugu [Thu, 27 Oct 2016 09:49:57 +0000 (15:19 +0530)]
msm: kgsl: add egl_surface/egl_image usage count in debugfs

Add more information to the debugfs kgsl/proc/<pid>/mem which
will allow memtrack to correctly assign allocated ion buffer
memory to a process. The additional columns show the number of
kgsl_mem_entries which have a usage of egl_image (or) egl_surface.

When attaching a dma_buf to kgsl, use the dma_buf_attachment's
(void*)priv to point back to the kgsl_mem_entry. This makes it
possible to iterate through all attachments on a dma_buf and
gather statistics from each kgsl_mem_entry associated with the
dma_buf.

CRs-Fixed: 1073673
Change-Id: I1ef3bd0da3f74fa41074021699b2226c48bde9c3
Signed-off-by: Santhosh Punugu <spunug@codeaurora.org>
7 years agoARM: dts: msm: switch to RPM control for regulators on MSMFALCON
Ashay Jaiswal [Thu, 13 Oct 2016 13:39:28 +0000 (19:09 +0530)]
ARM: dts: msm: switch to RPM control for regulators on MSMFALCON

Convert most of the pmfalcon stub-regulator devices to a
rpm-smd-regulator devices. This ensures that requests made for
these regulators are aggregated by the RPM processor along with
the requests from other processors.
Also, add a dummy gfx_vreg_corner regulator until the CPR node
is added.

While at it, rename all regulators names and add pm/pm2 prefix
to differentiate between regulators on multiple supported PMICs.
Also update all clients with new regulator phandles.

CRs-Fixed: 1077493
Change-Id: I95b17de5bf17b62096d2c9d60633b6b30768752a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agousb: host: xhci: Replace msleep with usleep_range
Hemant Kumar [Tue, 8 Nov 2016 23:46:44 +0000 (15:46 -0800)]
usb: host: xhci: Replace msleep with usleep_range

Since usleep_range provides better accuracy in
comparison to msleep. This helps in reducing the
latency of host bus resume.

Change-Id: Id22104b9e5b63153731df9eb55759de9a86128c6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agoARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt
Harshdeep Dhatt [Wed, 2 Nov 2016 22:43:21 +0000 (16:43 -0600)]
ARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt

A540v1 and v2 both need to enable the LMLOADKILL quirk for the
GPU.

CRs-Fixed: 1036444
Change-Id: I84243578a1ef2f9948f0c9a8c1c00dc6a31eb579
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill
Harshdeep Dhatt [Mon, 26 Sep 2016 22:06:46 +0000 (16:06 -0600)]
msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill

Add a quirk to set LMLOADKILLDIS bit in A5XX_VPC_DBG_ECO_CNTL
and clear LMLOADKILLDIS bit in A5XX_HLSQ_DBG_ECO_CNTL registers.
This is done to avoid a VPC corner case with local memory(LM)
which leads to corrupt internal state on A540 and its derivatives.

CRs-Fixed: 1036444
Change-Id: I31008433f19924bb35560d3e35fe0665e73751d5
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agomsm: ipa: Add support to configure WAN RX desc size
Sunil Paidimarri [Fri, 14 Oct 2016 20:33:08 +0000 (13:33 -0700)]
msm: ipa: Add support to configure WAN RX desc size

Embedded tputs depend on WAN RX desc size, but, every target
has its own limitations of memory and embedded tputs goals.
So, add parameter to configure WAN RX desc size through device tree.

Change-Id: I28c550058dd990c9c8cd368a2677097c7f057ccd
CRs-Fixed: 1081543
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
7 years agofg-memif: update IMA error handling and clear sequence
Subbaraman Narayanamurthy [Sat, 15 Oct 2016 02:38:05 +0000 (19:38 -0700)]
fg-memif: update IMA error handling and clear sequence

Based on the hardware documentation, update the IMA error
handling and clear sequence. In addition, check for DMA errors
and clear it before SRAM transactions begin. Also, check for IMA
hardware status to run the IMA clear sequence during ima_init and
not just based on IMA exception status alone. This is to help
with FG SRAM access to resume again properly in case of an error
encountered.

Change-Id: I583fa51599a1cbbd029cb45c075429730d2e071b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add stub regulator devices for msmtriton"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:17 +0000 (11:19 -0800)]
Merge "ARM: dts: msm: Add stub regulator devices for msmtriton"

7 years agoMerge "ARM64: config: Add VPN support"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:15 +0000 (11:19 -0800)]
Merge "ARM64: config: Add VPN support"

7 years agoMerge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:14 +0000 (11:19 -0800)]
Merge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt"

7 years agoMerge "qpnp-fg-gen3: support configuring ESR FCC based on charging status"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:11 +0000 (11:19 -0800)]
Merge "qpnp-fg-gen3: support configuring ESR FCC based on charging status"

7 years agoMerge "ASoC: wcd934x: Fix fake button press for headset insertion"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:10 +0000 (11:19 -0800)]
Merge "ASoC: wcd934x: Fix fake button press for headset insertion"

7 years agoMerge "ASoC: wcd9335: Fix AANC click and pop in voice call"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:09 +0000 (11:19 -0800)]
Merge "ASoC: wcd9335: Fix AANC click and pop in voice call"

7 years agoMerge "ASoC: wcd934x: Fix AANC click and pop in voice call"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:08 +0000 (11:19 -0800)]
Merge "ASoC: wcd934x: Fix AANC click and pop in voice call"

7 years agoMerge "sched: Ensure watchdog is enabled before disabling"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:07 +0000 (11:19 -0800)]
Merge "sched: Ensure watchdog is enabled before disabling"

7 years agoMerge "sched/core: Keep rq online after cpu isolation"
Linux Build Service Account [Tue, 8 Nov 2016 19:19:06 +0000 (11:19 -0800)]
Merge "sched/core: Keep rq online after cpu isolation"