OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "drivers: soc: increase glink tx buffer count"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:57 +0000 (21:53 -0800)]
Merge "drivers: soc: increase glink tx buffer count"

7 years agoMerge "msm: ipa: Address overlap fix"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:55 +0000 (21:53 -0800)]
Merge "msm: ipa: Address overlap fix"

7 years agoMerge "soc: qcom: glink: Fix incorrect call to deinit function"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:55 +0000 (21:53 -0800)]
Merge "soc: qcom: glink: Fix incorrect call to deinit function"

7 years agoMerge "ARM: dts: msm: Enable memory allocation for diag on triton"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:53 +0000 (21:53 -0800)]
Merge "ARM: dts: msm: Enable memory allocation for diag on triton"

7 years agoMerge "ASoC: wcd9335: Add 24bit record support"
Linux Build Service Account [Tue, 15 Nov 2016 05:53:52 +0000 (21:53 -0800)]
Merge "ASoC: wcd9335: Add 24bit record support"

7 years agoMerge "msm: mdss: dp: handle fast attention events"
Linux Build Service Account [Sun, 13 Nov 2016 21:51:10 +0000 (13:51 -0800)]
Merge "msm: mdss: dp: handle fast attention events"

7 years agoMerge "msm: sde: add buf_finish callback to clear last fd"
Linux Build Service Account [Sun, 13 Nov 2016 21:51:09 +0000 (13:51 -0800)]
Merge "msm: sde: add buf_finish callback to clear last fd"

7 years agoMerge "clk: msm: mdss: fix potential use of un-initialized variable"
Linux Build Service Account [Sun, 13 Nov 2016 21:51:08 +0000 (13:51 -0800)]
Merge "clk: msm: mdss: fix potential use of un-initialized variable"

7 years agoMerge "ARM: dts: msm: Add battery profile for FG in QRD interposer msmcobalt"
Linux Build Service Account [Sun, 13 Nov 2016 12:22:15 +0000 (04:22 -0800)]
Merge "ARM: dts: msm: Add battery profile for FG in QRD interposer msmcobalt"

7 years agoMerge "ARM: dts: msm: update VDD_GFX CPR settings for msmcobalt v2"
Linux Build Service Account [Sun, 13 Nov 2016 05:39:15 +0000 (21:39 -0800)]
Merge "ARM: dts: msm: update VDD_GFX CPR settings for msmcobalt v2"

7 years agoMerge "defconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon"
Linux Build Service Account [Sat, 12 Nov 2016 13:13:47 +0000 (05:13 -0800)]
Merge "defconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon"

7 years agoMerge "defconfig: Enable android-verity and FEC in msmcortex"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:52 +0000 (20:05 -0800)]
Merge "defconfig: Enable android-verity and FEC in msmcortex"

7 years agoMerge "msm_11ad: disbale L1 for 11ad device"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:51 +0000 (20:05 -0800)]
Merge "msm_11ad: disbale L1 for 11ad device"

7 years agoMerge "usb: gadget: Do not disconnect unregistered dev"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:50 +0000 (20:05 -0800)]
Merge "usb: gadget: Do not disconnect unregistered dev"

7 years agoMerge "usb: core: Add support to skip extended bus resume delay"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:48 +0000 (20:05 -0800)]
Merge "usb: core: Add support to skip extended bus resume delay"

7 years agoMerge "qpnp-fg-gen3: Fix empty SOC handling"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:47 +0000 (20:05 -0800)]
Merge "qpnp-fg-gen3: Fix empty SOC handling"

7 years agoMerge "soc: qcom: Replace ARRAY_SIZE macro with strlen"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:46 +0000 (20:05 -0800)]
Merge "soc: qcom: Replace ARRAY_SIZE macro with strlen"

7 years agoMerge "Documentation: sched: Update frequency guidance explanations"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:45 +0000 (20:05 -0800)]
Merge "Documentation: sched: Update frequency guidance explanations"

7 years agoMerge "qcom-charger: smblib: add support for pd current setting"
Linux Build Service Account [Sat, 12 Nov 2016 04:05:45 +0000 (20:05 -0800)]
Merge "qcom-charger: smblib: add support for pd current setting"

7 years agomsm_11ad: disbale L1 for 11ad device
Maya Erez [Fri, 11 Nov 2016 21:38:22 +0000 (23:38 +0200)]
msm_11ad: disbale L1 for 11ad device

Enabling L1 / L1SS for 11ad device causes PCIe
link down or PCIe NOC read/write timeouts.
To prevent that, disable L1 for 11ad devices after
PCIe enumeration and resume.

Change-Id: I5061c95855d462879c2f5237ded80131de4d215d
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agodrivers: soc: increase glink tx buffer count
Shiv Maliyappanahalli [Thu, 10 Nov 2016 22:54:50 +0000 (14:54 -0800)]
drivers: soc: increase glink tx buffer count

The number of total glink tx buffers are running out
while exercising audio concurrency usecases. Increase
the max tx count to accommodate additional buffer needs.

Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Change-Id: Iab64336f8efde2778c16156c6bfcf566c4c892d3

7 years agoDocumentation: sched: Update frequency guidance explanations
Syed Rameez Mustafa [Sat, 5 Nov 2016 01:10:29 +0000 (18:10 -0700)]
Documentation: sched: Update frequency guidance explanations

Following the introduction of the top-tasks approach towards frequency
guidance, the documentation on frequency guidance needs to be updated.
Update the same with new and accurate information.

Change-Id: If7deee97c09666b7d9513f79c0e278c430acfdfd
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agoARM: dts: msm: Enable memory allocation for diag on triton
Manoj Prabhu B [Thu, 10 Nov 2016 08:19:23 +0000 (13:49 +0530)]
ARM: dts: msm: Enable memory allocation for diag on triton

The new diag client requires additional memory from hlos.
This patch caters to diag memory requirement.

CRs-Fixed: 1079523
Change-Id: Ief14bb96bfdc1998b7b9423755daae8d93964672
Signed-off-by: Manoj Prabhu B <bmanoj@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 agoqcom-charger: smblib: add support for pd current setting
Harry Yang [Mon, 7 Nov 2016 21:32:52 +0000 (13:32 -0800)]
qcom-charger: smblib: add support for pd current setting

Forcing a certain current limit is not supported in the current
driver, but well needed in when pd is active.

In this change, ICL_OVERRIDE/APSD and USB mode are updated, so
that PD can alter current limit by simply voting the ICL
setting.

Change-Id: I8d3ec938d433fe9bdbb8c091873c07e75c49d632
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agomsm: mdss: dp: handle fast attention events
Ajay Singh Parmar [Tue, 1 Nov 2016 22:01:36 +0000 (15:01 -0700)]
msm: mdss: dp: handle fast attention events

Sink may issue attention event faster then it can be processed by
source. Create a list of attention events and process them one by
one in the order on workqueue to avoid missing any attention event
from sink.

Change-Id: I36fd45efe1aa9437d5551002fc75a5f37d9cef79
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agomsm: mdss: hdcp2p2: check for valid keys before authentication
Ajay Singh Parmar [Sat, 5 Nov 2016 02:22:39 +0000 (19:22 -0700)]
msm: mdss: hdcp2p2: check for valid keys before authentication

HDCP authentication requires valid keys on the source device.
If keys are not present, authentication can never be successful.
Check if the device is provisioned with hdcp keys, if so, proceed
with the hdcp authentication on HDMI/DisplayPort cable connection
otherwise avoid authentication as it may result in unnecessary
re-authentication loop.

Change-Id: I391ee35fa20cfade89773ecb565b220cc6249b8d
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agosoc: qcom: Replace ARRAY_SIZE macro with strlen
Avaneesh Kumar Dwivedi [Wed, 26 Oct 2016 08:36:34 +0000 (14:06 +0530)]
soc: qcom: Replace ARRAY_SIZE macro with strlen

ARRAY_SIZE returns size of array. While sending command string
we need to only pass size of actual command string, hence use
strlen in place of ARRAY_SIZE.

Change-Id: If0afc6b1209b03ae17472a17b34d9d403757bfd0
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
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 agoqpnp-fg-gen3: Fix empty SOC handling
Subbaraman Narayanamurthy [Thu, 10 Nov 2016 00:40:27 +0000 (16:40 -0800)]
qpnp-fg-gen3: Fix empty SOC handling

Currently, a flag is set when the empty SOC interrupt fires to
indicate SOC 0 to the users. This is not cleared when the battery
voltage goes up. This needs to be fixed. Remove the flag and use
the realtime status of BATT_SOC peripheral to decide it. To make
that even more robust, validate the battery voltage with the
cutoff voltage. While at it, add a print in the driver's probe to
print the battery SOC and voltage. This will be helpful to debug
different battery charging scenarios.

CRs-Fixed: 1086715
Change-Id: Icbbe0d4ab74c6f9bf6f2278a11020a9bc6c41930
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agousb: core: Add support to skip extended bus resume delay
Hemant Kumar [Tue, 8 Nov 2016 23:25:25 +0000 (15:25 -0800)]
usb: core: Add support to skip extended bus resume delay

By default skip_extended_resume_delay module parameter
allows to skip extra 40ms delay upon usb bus resume.
This delay was added on top of host bus resume which
is driven for 20ms. Skipping extra delay reduces over
all bus resume latency.

Change-Id: I31a83abc057c345f29d204a63e7571b880678e69
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agousb: core: Replace msleep with usleep_range
Hemant Kumar [Tue, 8 Nov 2016 23:42:13 +0000 (15:42 -0800)]
usb: core: 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: Ie8d5231327fcc27ab2a28542e0d96687abb9aace
Signed-off-by: Hemant Kumar <hemantk@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 agodefconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon
Sarada Prasanna Garnayak [Thu, 10 Nov 2016 15:01:53 +0000 (20:31 +0530)]
defconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon

Fix the wlan host driver compilation error for the msmcobalt and msmfalcon
32 bit target. Enable QCOM_IRQ_HELPER config flag to expose IRQ balancer
APIs for msmcobalt and msmfalcon 32bit target.

CRs-Fixed: 1088388
Change-Id: Ieb72bd3779c3b9a372b469f3f7f571fc22294099
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
7 years agosoc: qcom: glink: Fix incorrect call to deinit function
Dhoat Harpal [Thu, 10 Nov 2016 13:57:58 +0000 (19:27 +0530)]
soc: qcom: glink: Fix incorrect call to deinit function

In function glink_core_register_transport, deinit function for qos
configuration is called before initializing qos configuration.

Call to glink_core_deinit_xprt_qos_cfg function is removed.

CRs-Fixed: 1088375
Change-Id: Ifffab071efed56541e763e4f6f51aa45d7a6678b
Signed-off-by: Dhoat Harpal <hdhoat@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: Add battery profile for FG in QRD interposer msmcobalt
cyizhao [Tue, 8 Nov 2016 05:43:28 +0000 (13:43 +0800)]
ARM: dts: msm: Add battery profile for FG in QRD interposer msmcobalt

Add battery profile for QRD interposer msmcobalt to
make sure FG could load it and work as expected.

CRs-Fixed: 1086571
Change-Id: I6ca20cbd29b9a7bd45a78321ea0f65b74450e8c1
Signed-off-by: cyizhao <cyizhao@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 agomsm: ipa: Address overlap fix
Utkarsh Saxena [Thu, 10 Nov 2016 11:03:13 +0000 (16:33 +0530)]
msm: ipa: Address overlap fix

No need to assert and return fault on
address overlap with respect to SMMU
enabled case.

Address overlap does not cause any
functional failure.

Change-Id: I5b0faa6e021f2463635e13625072e159ba558907
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@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>