OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "soc: qcom: add support for fingerprint sensor driver"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:07 +0000 (15:49 -0700)]
Merge "soc: qcom: add support for fingerprint sensor driver"

7 years agoMerge "ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:06 +0000 (15:49 -0700)]
Merge "ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online"

7 years agoMerge "ASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:05 +0000 (15:49 -0700)]
Merge "ASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence"

7 years agoMerge "USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:04 +0000 (15:49 -0700)]
Merge "USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode"

7 years agoMerge "clk: qcom: Change clock index for mmssnoc_axi clock for MSMfalcon"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:03 +0000 (15:49 -0700)]
Merge "clk: qcom: Change clock index for mmssnoc_axi clock for MSMfalcon"

7 years agoMerge "msm: sde: Fix SDE rotator clock disable sequence"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:02 +0000 (15:49 -0700)]
Merge "msm: sde: Fix SDE rotator clock disable sequence"

7 years agoMerge "input: misc: hbtp_input: Add support for multiple AFE"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:02 +0000 (15:49 -0700)]
Merge "input: misc: hbtp_input: Add support for multiple AFE"

7 years agoMerge "msm: mdss: edid: fix dtd parsing"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:01 +0000 (15:49 -0700)]
Merge "msm: mdss: edid: fix dtd parsing"

7 years agoMerge "clk: msm: clock: Remove controlling some graphics clocks in Linux"
Linux Build Service Account [Thu, 27 Oct 2016 22:49:00 +0000 (15:49 -0700)]
Merge "clk: msm: clock: Remove controlling some graphics clocks in Linux"

7 years agoMerge "sched: Fix compilation issue with reset_hmp_stats"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:59 +0000 (15:48 -0700)]
Merge "sched: Fix compilation issue with reset_hmp_stats"

7 years agoMerge "ASoC: wcd934x: Trigger codec DSP subsystem restart"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:57 +0000 (15:48 -0700)]
Merge "ASoC: wcd934x: Trigger codec DSP subsystem restart"

7 years agoMerge "usb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:56 +0000 (15:48 -0700)]
Merge "usb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable"

7 years agoMerge "ARM: dts: msm: Add support for Modem PIL on msmfalcon"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:55 +0000 (15:48 -0700)]
Merge "ARM: dts: msm: Add support for Modem PIL on msmfalcon"

7 years agoMerge "ARM: dts: msm: Add support for Modem PIL on msmtriton"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:54 +0000 (15:48 -0700)]
Merge "ARM: dts: msm: Add support for Modem PIL on msmtriton"

7 years agoMerge "leds: qpnp-wled: Fix configuration of AVDD TRIM and OVP registers"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:52 +0000 (15:48 -0700)]
Merge "leds: qpnp-wled: Fix configuration of AVDD TRIM and OVP registers"

7 years agoMerge "cfg80211: Add support to configure a beacon data rate"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:51 +0000 (15:48 -0700)]
Merge "cfg80211: Add support to configure a beacon data rate"

7 years agoMerge "icnss: Do not parse VBATT DT entry if VBATT feature is disabled"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:50 +0000 (15:48 -0700)]
Merge "icnss: Do not parse VBATT DT entry if VBATT feature is disabled"

7 years agoMerge "ARM: dts: msm: add PCIe PHY sequence for msmcobalt v2"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:49 +0000 (15:48 -0700)]
Merge "ARM: dts: msm: add PCIe PHY sequence for msmcobalt v2"

7 years agoMerge "input: touchscreen: fix compilation errors for Goodix driver"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:48 +0000 (15:48 -0700)]
Merge "input: touchscreen: fix compilation errors for Goodix driver"

7 years agoMerge "ASoC: qdsp6v2: fix potential bug of infinite loop"
Linux Build Service Account [Thu, 27 Oct 2016 22:48:47 +0000 (15:48 -0700)]
Merge "ASoC: qdsp6v2: fix potential bug of infinite loop"

7 years agoMerge "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:25 +0000 (13:13 -0700)]
Merge "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4"

7 years agoMerge "clk: osm: msm: allow WDOG status register to be enabled via debugfs"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:24 +0000 (13:13 -0700)]
Merge "clk: osm: msm: allow WDOG status register to be enabled via debugfs"

7 years agoMerge "msm: mdss: fix crash when wrong params are passed on the esd config"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:22 +0000 (13:13 -0700)]
Merge "msm: mdss: fix crash when wrong params are passed on the esd config"

7 years agoMerge "icnss: Do top level reset when timeout to pull register state"
Linux Build Service Account [Wed, 26 Oct 2016 20:13:21 +0000 (13:13 -0700)]
Merge "icnss: Do top level reset when timeout to pull register state"

7 years agoMerge "mdss: display-port: add support for hdcp 2.2"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:43 +0000 (01:10 -0700)]
Merge "mdss: display-port: add support for hdcp 2.2"

7 years agoMerge "icnss: Stay awake during recovery"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:40 +0000 (01:10 -0700)]
Merge "icnss: Stay awake during recovery"

7 years agoMerge "ASoC: wcd934X: Update TX gain correctly after decimator enable"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:39 +0000 (01:10 -0700)]
Merge "ASoC: wcd934X: Update TX gain correctly after decimator enable"

7 years agoMerge "ASoC: wcd9335: Update TX gain correctly after decimator enable"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:39 +0000 (01:10 -0700)]
Merge "ASoC: wcd9335: Update TX gain correctly after decimator enable"

7 years agoMerge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:36 +0000 (01:10 -0700)]
Merge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms"

7 years agoMerge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:35 +0000 (01:10 -0700)]
Merge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag"

7 years agoMerge "lpm-levels: Change _WARN_printf to pr_err when residency < 0"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:34 +0000 (01:10 -0700)]
Merge "lpm-levels: Change _WARN_printf to pr_err when residency < 0"

7 years agoMerge "clk: Check for failure at clk_change_rate"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:33 +0000 (01:10 -0700)]
Merge "clk: Check for failure at clk_change_rate"

7 years agoMerge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:33 +0000 (01:10 -0700)]
Merge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2"

7 years agoMerge "msm: vidc: Update log level for power collpase"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:32 +0000 (01:10 -0700)]
Merge "msm: vidc: Update log level for power collpase"

7 years agoMerge "msm: vidc: Check ion_handle for errors"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:31 +0000 (01:10 -0700)]
Merge "msm: vidc: Check ion_handle for errors"

7 years agoMerge "iommu/arm-smmu: on domain destroy invlidate domain cfg"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:29 +0000 (01:10 -0700)]
Merge "iommu/arm-smmu: on domain destroy invlidate domain cfg"

7 years agoMerge "msm: camera: sensor: Update CSI PHY setting for msmcobalt"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:28 +0000 (01:10 -0700)]
Merge "msm: camera: sensor: Update CSI PHY setting for msmcobalt"

7 years agoMerge "msm: camera: Restructure data handling to be more robust"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:27 +0000 (01:10 -0700)]
Merge "msm: camera: Restructure data handling to be more robust"

7 years agoMerge "msm: camera: AV timer support for HAL3"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:26 +0000 (01:10 -0700)]
Merge "msm: camera: AV timer support for HAL3"

7 years agoMerge "msm: sensor: Adding mutex for actuator power down operations"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:25 +0000 (01:10 -0700)]
Merge "msm: sensor: Adding mutex for actuator power down operations"

7 years agoMerge "msm_serial_hs: Add defensive checks due to sudden port close"
Linux Build Service Account [Wed, 26 Oct 2016 08:10:24 +0000 (01:10 -0700)]
Merge "msm_serial_hs: Add defensive checks due to sudden port close"

7 years agosoc: qcom: add support for fingerprint sensor driver
Lior Barenboim [Sun, 9 Oct 2016 08:47:28 +0000 (11:47 +0300)]
soc: qcom: add support for fingerprint sensor driver

The QBT1000 driver provides an API for communicating
with trustzone applications and handles firmware event
interrupts.
The driver supports the following features:
 - loading and unloading trustzone applications
 - sending commands to trustzone applications
 - voting/un-voting for clocks before/after making
   a trustzone call
 - receiving firmware events, signalled by interrupts,
   and providing them to the driver client
 - sending a key event in response to firmware finger
   detect events

Change-Id: I1d9d7a6b6bd2d3420a28a8c09868143bb9bd3b27
Signed-off-by: Lior Barenboim <liorb@codeaurora.org>
7 years agoUSB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode
Vijayavardhan Vennapusa [Fri, 21 Oct 2016 09:32:09 +0000 (15:02 +0530)]
USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode

USB3 core expects pipe clock input for USB connection establishment
and functionality working. In case of maximum speed of USB3 core set
to HS/FS mode, it is required to disable pipe clock requirement and
instead use UTMI clock from HS PHY as clock input. Hence disable
this pipe clock requirement for the case, where maximum speed is set
to FS as well.

Change-Id: Ife9d6a16e1607b40c71eb1897947bf4645ac9561
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoMerge "coresight: tmc: skip tmc read if mem allocaiton failed"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:06 +0000 (18:31 -0700)]
Merge "coresight: tmc: skip tmc read if mem allocaiton failed"

7 years agoMerge "sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:05 +0000 (18:31 -0700)]
Merge "sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()"

7 years agoMerge "soc: qcom: use interruptible wait_for_completion API"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:04 +0000 (18:31 -0700)]
Merge "soc: qcom: use interruptible wait_for_completion API"

7 years agoMerge "ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:04 +0000 (18:31 -0700)]
Merge "ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2"

7 years agoMerge "ASoC: msmcobalt: Add independent clock support on codec"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:03 +0000 (18:31 -0700)]
Merge "ASoC: msmcobalt: Add independent clock support on codec"

7 years agoMerge "ASoC: wcd934x: Update CPR register defaults"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:02 +0000 (18:31 -0700)]
Merge "ASoC: wcd934x: Update CPR register defaults"

7 years agoMerge "drivers: soc: Initialize return var to default value"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:01 +0000 (18:31 -0700)]
Merge "drivers: soc: Initialize return var to default value"

7 years agoMerge "soc: qcom: Use a deferrable timer base for the msm watchdog"
Linux Build Service Account [Wed, 26 Oct 2016 01:31:00 +0000 (18:31 -0700)]
Merge "soc: qcom: Use a deferrable timer base for the msm watchdog"

7 years agoMerge "qpnp-fg-gen3: Fix storing nominal capacity to actual capacity"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:58 +0000 (18:30 -0700)]
Merge "qpnp-fg-gen3: Fix storing nominal capacity to actual capacity"

7 years agoMerge "USB: pd: Fix compilation issues for 32 bit support"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:57 +0000 (18:30 -0700)]
Merge "USB: pd: Fix compilation issues for 32 bit support"

7 years agoMerge "ASoC: wcd9335: Fix register sequence for CPE configuration"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:55 +0000 (18:30 -0700)]
Merge "ASoC: wcd9335: Fix register sequence for CPE configuration"

7 years agoMerge "ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:55 +0000 (18:30 -0700)]
Merge "ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path"

7 years agoMerge "ARM: msm: dts: add second CPE session for msmcobalt"
Linux Build Service Account [Wed, 26 Oct 2016 01:30:55 +0000 (18:30 -0700)]
Merge "ARM: msm: dts: add second CPE session for msmcobalt"

7 years agoASoC: wcd-dsp-mgr: fix restart logic when codec comes back online
Bhalchandra Gajare [Wed, 26 Oct 2016 00:50:29 +0000 (17:50 -0700)]
ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online

During subsystem restart, when restart of the codec DSP is attempted,
the status is already moved to codec up whereas driver is checking
for codec down. This causes the initialization of components to be
skipped and codec dsp does not come back online. Change fixes the
condition check to make sure the correct sequence is followed.

CRs-Fixed: 1080392
Change-Id: I05345b8f5d108e59863ee4e37ed75fd32a284ee5
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
7 years agoASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence
Bhalchandra Gajare [Tue, 18 Oct 2016 20:18:15 +0000 (13:18 -0700)]
ASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence

Enabling only the required memory for codec DSP helps reduce power
consumption with codec DSP is not used. Update the memory enable/
disable sequence such that the switchable memory domain is enabled
only when the codec DSP is being used.

CRs-Fixed: 1075303
Change-Id: I0552bf8a48c214b89e160fe4df145973f02c2788
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
7 years agosched: Fix compilation issue with reset_hmp_stats
Olav Haugan [Tue, 25 Oct 2016 18:05:13 +0000 (11:05 -0700)]
sched: Fix compilation issue with reset_hmp_stats

reset_hmp_stats was moved to another file and when CONFIG_CFS_BANDWIDTH
is enabled there is code still referencing this in the original file
causing compilation error.

Change-Id: Iab7fc8551b628c443ce751026b06c5ff4ebba39a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agosched/fair: Fix compilation issue
Olav Haugan [Tue, 25 Oct 2016 17:38:45 +0000 (10:38 -0700)]
sched/fair: Fix compilation issue

Code does not compile with CONFIG_CFS_BANDWIDTH.

Change-Id: Idb74e9df4fcb55085ac869f5ba273cef4a3eb9eb
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
7 years agoleds: qpnp-wled: Fix configuration of AVDD TRIM and OVP registers
Subbaraman Narayanamurthy [Tue, 3 May 2016 00:59:40 +0000 (17:59 -0700)]
leds: qpnp-wled: Fix configuration of AVDD TRIM and OVP registers

Currently the AVDD TRIM registers are being configured incorrectly.
Update the sequence to configure the TRIM register and the OVP
register based on predetermined values mapped to the target voltage
specified in the device tree. Also add support for performing
masked writes to the wled registers.

CRs-Fixed: 1082047
Change-Id: I4c99b598d5f484368712eab239f7de70b727c2aa
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoleds: qpnp-wled: add a secure write API
Subbaraman Narayanamurthy [Fri, 21 Oct 2016 02:23:24 +0000 (19:23 -0700)]
leds: qpnp-wled: add a secure write API

Currently, for doing a secure write to the peripheral register,
secure access is acquired at the call site before writing to the
register. Optimize this by adding an API to do secure writes.
When a secure write is attempted, it should be atomic and not
raced with normal write. Add a mutex lock to synchronize the
normal and secure writes. While at it, fix the data parameter
passed to qpnp_wled_write_reg() as that doesn't really need a
pointer.

CRs-Fixed: 1082047
Change-Id: I6a678d9133b06dda2de1c6cfe4bbafacc594f299
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoleds: qpnp-wled: add support to read pmic revid
Subbaraman Narayanamurthy [Thu, 20 Oct 2016 02:13:28 +0000 (19:13 -0700)]
leds: qpnp-wled: add support to read pmic revid

There are some features which needs to be enabled based on the
PMIC. PMIC information such as subtype, revision can be obtained
from revid peripheral. Hence add support to read pmic revid.

CRs-Fixed: 1082047
Change-Id: If0646f5ae111f75ababc405cbd2f7bcea899360e
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoinput: misc: hbtp_input: Add support for multiple AFE
Alex Sarraf [Fri, 16 Sep 2016 17:26:47 +0000 (10:26 -0700)]
input: misc: hbtp_input: Add support for multiple AFE

Add support for both HI04 and JDI/Rohm with DDIC
synchronization.

Change-Id: Ib6bddd5f43b41660304d240db39f4e273ede3af0
Signed-off-by: Alex Sarraf <asarraf@codeaurora.org>
7 years agoplatform: qpnp-revid: Add REVID details for PM/PM2FALCON
Anirudh Ghayal [Tue, 25 Oct 2016 13:43:31 +0000 (19:13 +0530)]
platform: qpnp-revid: Add REVID details for PM/PM2FALCON

Add PMIC subtype details for PMFALCON and PM2FALCON.

CRs-Fixed: 1082022
Change-Id: Iad90353f66cf5ad7f83e3fc252d82cec45abce60
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agoclk: qcom: Change clock index for mmssnoc_axi clock for MSMfalcon
Amit Nischal [Tue, 25 Oct 2016 09:31:01 +0000 (15:01 +0530)]
clk: qcom: Change clock index for mmssnoc_axi clock for MSMfalcon

The clock index used for registering the clock and
the index used by clients for clk_get does not match.
Fix the same by updating to the clock index used by clients.

Change-Id: I1b614cb70aa43087c122ce6c42305491e5f5b34b
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
7 years agoinput: touchscreen: fix compilation errors for Goodix driver
Shantanu Jain [Wed, 19 Oct 2016 13:34:29 +0000 (19:04 +0530)]
input: touchscreen: fix compilation errors for Goodix driver

Fix compilation errors for Goodix touch driver for msm-4.4
kernel after porting the driver. This includes replacing the
deprecated api(s) with proper ones and changing code for
proper compilation.

Change-Id: I2abd67a8ff647165ddedb385e80f8705d73d3100
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
7 years agocfg80211: Add support to configure a beacon data rate
Purushottam Kushwaha [Mon, 17 Oct 2016 14:20:36 +0000 (19:50 +0530)]
cfg80211: Add support to configure a beacon data rate

This allows an option to configure a single beacon tx rate for an AP.

Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git
Git-commit: a7c7fbff6a408d00431c705bbe3dfc5f51e3f1c4
CRs-fixed: 1025311
Change-Id: I5f9627964d86c51cb8fb0c5c5f7c9f5f2e19b3e7
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
7 years agoARM: dts: msm: Add support for Modem PIL on msmtriton
Gaurav Kohli [Sat, 22 Oct 2016 12:15:50 +0000 (17:45 +0530)]
ARM: dts: msm: Add support for Modem PIL on msmtriton

Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.

Change-Id: I42a47e4386ca7a1bbbec428c8d2cbe307634cd1e
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agoARM: dts: msm: Add support for Modem PIL on msmfalcon
Gaurav Kohli [Wed, 12 Oct 2016 07:29:33 +0000 (12:59 +0530)]
ARM: dts: msm: Add support for Modem PIL on msmfalcon

Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.

Change-Id: I3e700bdae21b6e18b28cf5982e42e73d7ae953a5
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agosoc: qcom: pil-q6v5: Add support for qdspv62.1.5 reset
Gaurav Kohli [Sat, 22 Oct 2016 09:23:24 +0000 (14:53 +0530)]
soc: qcom: pil-q6v5: Add support for qdspv62.1.5 reset

Update the reset sequence to support qdspv62-1-5 for MSMFALCON.
Also Enable one more memory bank during reset sequence for MSMFALCON.

Change-Id: Ib0d27c13c0ebdfac629c1469c9a91a0b84d03640
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
7 years agosched: Set curr/prev_window_cpu pointers to NULL in sched_exit()
Syed Rameez Mustafa [Tue, 25 Oct 2016 01:37:14 +0000 (18:37 -0700)]
sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()

trace_sched_update_task_ravg relies on NULL pointers to ensure that
it doesn't access them. Make sure that when a task exits, these
pointers are set to NULL. Otherwise any call to update_task_ravg()
between sched_exit() and releasing the task structure will access
bogus pointers. In some cases those memory locations are unmapped
and cause a kernel panic.

Change-Id: I9eebb4fb35aca2c8424bfb29ae9d833650dc5ad4
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
7 years agoclk: osm: msm: allow WDOG status register to be enabled via debugfs
Osvaldo Banuelos [Thu, 20 Oct 2016 22:00:16 +0000 (15:00 -0700)]
clk: osm: msm: allow WDOG status register to be enabled via debugfs

Enabling WDOG status register by default has power penalty.
Add support to allow the register to be configured via debugfs
instead.

CRs-Fixed: 1081757
Change-Id: I13156d82f544cd28a1579c23b18182c879c85767
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
7 years agosoc: qcom: use interruptible wait_for_completion API
Vidyakumar Athota [Thu, 20 Oct 2016 00:55:26 +0000 (17:55 -0700)]
soc: qcom: use interruptible wait_for_completion API

Device suspend fails because of un-interruptible blocking read
function. Use wait_for_completion_interruptible API instead of
wait_for_completion to allow device suspend.

Change-Id: Ia537e776d0b322d56cd6003f95cdded5e695ceeb
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
7 years agoicnss: Do top level reset when timeout to pull register state
Yuanyuan Liu [Mon, 24 Oct 2016 17:13:48 +0000 (10:13 -0700)]
icnss: Do top level reset when timeout to pull register state

When system timeouts to pull register state, we do wsi error
recovery, which causes an AHB bus hang. Fix this by doing top
level reset instead of wsi error recovery.

CRs-Fixed: 1080014
Change-Id: Ic5dbac9c2cd31f3193ede7cdc64249f7514e3e98
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agoASoC: wcd934x: Trigger codec DSP subsystem restart
Sudheer Papothi [Tue, 18 Oct 2016 01:48:05 +0000 (07:18 +0530)]
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>
7 years agoARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2
David Collins [Fri, 21 Oct 2016 22:21:07 +0000 (15:21 -0700)]
ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2

Enable VDD_GFX CPR aging adjustments for MSMCOBALTv2 parts with
CPR fusing revision greater than or equal to 2.  At most 15 mV
can be added onto the open-loop and closed-loop voltage as a
result of an aging measurement at runtime.  This maximum 15 mV
adjustment was previously accounted for in the fixed open-loop
and closed-loop voltage adjustments.  Therefore, remove 15 mV
from both the open-loop and closed-loop voltage adjustments for
all corners.

Change-Id: I44487bfcb4e21d76948cd836ad2dae18bc3d22f4
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
7 years agoASoC: msmcobalt: Add independent clock support on codec
Sudheer Papothi [Fri, 21 Oct 2016 22:15:35 +0000 (03:45 +0530)]
ASoC: msmcobalt: Add independent clock support on codec

WCD9335 codec has single master clock supply widget for both
playback and recording paths. Adding separate clock supply
for playback and recording paths will help handle low power
audio recording usecases without affecting playback usecases.
Change is to enable separate clock supply widgets for playback
and recording paths.

CRs-Fixed: 1022917
Change-Id: Ia02a1ffed911498dd6eb5df246e6da68a7802a92
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
7 years agoASoC: wcd934x: Update CPR register defaults
Phani Kumar Uppalapati [Thu, 6 Oct 2016 23:25:36 +0000 (16:25 -0700)]
ASoC: wcd934x: Update CPR register defaults

Update wcd934x codec register defaults to enable
CPR hardware block for reducing the power consumption
in rock bottom sleep mode.

CRs-Fixed: 1081673
Change-Id: Ib75655d52e5d85d649ebfcb971caf3f5b0b6dc80
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
7 years agodrivers: mfd: Mark CPR bank registers as volatile
Phani Kumar Uppalapati [Mon, 24 Oct 2016 21:46:54 +0000 (14:46 -0700)]
drivers: mfd: Mark CPR bank registers as volatile

Mark CPR bank registers as volatile so that
writes to these registers get updated correctly
in hardware.

CRs-Fixed: 1081673
Change-Id: I92d0511b4e9912dfa346378784d811f6606df205
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
7 years agoqpnp-fg-gen3: Fix storing nominal capacity to actual capacity
Subbaraman Narayanamurthy [Mon, 24 Oct 2016 21:05:44 +0000 (14:05 -0700)]
qpnp-fg-gen3: Fix storing nominal capacity to actual capacity

Currently, nominal capacity is stored back to the actual capacity
only when the actual capacity is non-zero. However, that can be
true when the battery is inserted for the first time. This makes
the actual capacity to be stored only when a capacity learning
cycle completes. Other algorithms like to use actual capacity
before that. Fix it.

Change-Id: I346085ec722f491f96181ef1beb383710b441f4b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agoASoC: wcd934x: Add support for audio subsystem restart
Sudheer Papothi [Tue, 27 Sep 2016 23:54:38 +0000 (05:24 +0530)]
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>
7 years agosoc: qcom: Use a deferrable timer base for the msm watchdog
Vikram Mulukutla [Fri, 14 Oct 2016 23:13:24 +0000 (16:13 -0700)]
soc: qcom: Use a deferrable timer base for the msm watchdog

It is possible that normal CFS latencies in the presence of
very heavy task load causes timer migration to be delayed
in hotplug paths. This may in turn prevent the watchdog kthread
from waking up, resulting in a bark.

Technically the watchdog is supposed to be a last-resort
failure recovery; even in this stressful hotplug scenario
the device is *usable*, just incredibly slow. It is arguable
that the watchdog should not have fired in this case, and
the petting mechanism should handle this scenario.

Move the timer to a deferrable timer base. We are really not
using the "deferrable" aspect of the timer, but the fact that
we (msm) also changed deferrable timers to run on any CPU.
This underlying change will allow the watchdog timer to be
handled on any CPU.

This completely depends on the fact that we don't have to
pet the watchdog when *all* CPUs go idle, which would
make sense from a power perspective anyway.

Change-Id: Ie389e28ff890a805854f921e4cd491a296a32925
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
7 years agodrivers: mfd: wcd934x: Set MBHC registers to volatile
Sudheer Papothi [Wed, 19 Oct 2016 21:21:39 +0000 (02:51 +0530)]
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>
7 years agousb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable
Hemant Kumar [Thu, 30 Oct 2014 23:21:03 +0000 (16:21 -0700)]
usb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable

In case of usb bus suspend at the time of disconnect, rmnet function
suspend disables the endpoint. Same endpoint gets disabled again as
result of handling gadget driver disconnect. This generates warning
message and dumps the call stack. This may cause message flooding
as a result of multiple usb plug in/plug out. Hence replace
dev_WARN_ONCE with dev_dbg and log this event in debug buffer.

CRs-Fixed: 1081547
Change-Id: I64f0f5b15cc5d9185e415f0b26e276e111c885ec
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agocoresight: tmc: skip tmc read if mem allocaiton failed
Satyajit Desai [Sat, 22 Oct 2016 00:24:48 +0000 (17:24 -0700)]
coresight: tmc: skip tmc read if mem allocaiton failed

Add NULL pointer check to ensure that we do copy to user only
when we were able to allocate memory for ETR.

Change-Id: I09b4bc37617811fd4acd86a7e4f5ef91630675df
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
7 years agosmb-lib: update displaying battery overvoltage in health property
Subbaraman Narayanamurthy [Sat, 22 Oct 2016 00:30:46 +0000 (17:30 -0700)]
smb-lib: update displaying battery overvoltage in health property

Currently, smb2 charger is configured to not end the charging
cycle when battery overvoltage occurs. However, when the battery
overvoltage status is read, it will be displayed through health
property. Improve this by reading the battery voltage and check
whether it is within 40mV headroom above float voltage. If it is
above that threshold then continue with displaying overvoltage
status.

CRs-Fixed: 1079363
Change-Id: I45847f446c91c80a5110d80b59a0ae4b8e2c40e5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
7 years agomsm: sde: Fix SDE rotator clock disable sequence
Benjamin Chan [Mon, 17 Oct 2016 21:49:41 +0000 (17:49 -0400)]
msm: sde: Fix SDE rotator clock disable sequence

It is necessary to follow a certain order when disabling the rotator
clock. Not doing so might lead to clock actually not turning off and
cause power leakage.

CRs-Fixed: 1081010
Change-Id: I16e500aa87813cd3a1e18f134ea1ed145b9e1ef8
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
7 years agoUSB: pd: Fix compilation issues for 32 bit support
Vijayavardhan Vennapusa [Fri, 21 Oct 2016 09:47:12 +0000 (15:17 +0530)]
USB: pd: Fix compilation issues for 32 bit support

Compilation errors are seen from qpnp-pdphy.c and policy_engine.c
drivers, when try to compile for 32 bit support. Hence fix those
errors for 32 bit support getting compiled successfully.

Change-Id: I0c496a73feb83c640f9a135f98ec393d1096b205
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoinput: touchscreen: replace macros used inside the functions
Shantanu Jain [Thu, 6 Feb 2014 12:13:04 +0000 (17:43 +0530)]
input: touchscreen: replace macros used inside the functions

Define new device tree properties to replace the macros used
in the driver functions.
Remove hrtimer calls which is not being used in the current
driver code.

Change-Id: I29b9ea41df467d0092be8005733016843dc26f60
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
7 years agomsm: vidc: Update log level for power collpase
Praneeth Paladugu [Tue, 11 Oct 2016 23:49:13 +0000 (16:49 -0700)]
msm: vidc: Update log level for power collpase

Update Power collapse log messages to VIDC_PROF to be in
sync with other clock related logs. Today these logs are
at VIDC_DBG and VIDC_INFO which also has lot of other logs.

Change-Id: Id69802df24c4eaf4d8e9bc0c438d250090f9a38f
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
7 years agolpm-levels: Change _WARN_printf to pr_err when residency < 0
Raju P.L.S.S.S.N [Wed, 12 Oct 2016 05:53:55 +0000 (11:23 +0530)]
lpm-levels: Change _WARN_printf to pr_err when residency < 0

Change _WARN_printf to pr_err as former prints stack and
register dump in logs which is not necessary.

Change-Id: Ib0323014017818668a4a634e463f751fd5e9d24a
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
7 years agomdss: display-port: add support for hdcp 2.2
Ajay Singh Parmar [Wed, 17 Aug 2016 19:19:04 +0000 (12:19 -0700)]
mdss: display-port: add support for hdcp 2.2

Add support for HDCP (High-Bandwidth Digital Content Protect)
version 2.2 for DisplayPort. Define interfaces to interact with
Trust Zone and DisplayPort drivers. Hookup with TZ's kernel
module and send-receive HDCP 2.2 messages to-from sink using
DP's aux channel.

Change-Id: Id77e77ee628667dacc7a714c553b5ce5beafa9bb
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agomsm: mdss: dp: parse all sink/link status fields on HPD IRQ
Tatenda Chipeperekwa [Tue, 18 Oct 2016 18:46:13 +0000 (11:46 -0700)]
msm: mdss: dp: parse all sink/link status fields on HPD IRQ

Parse all the sink/link status fields on HPD IRQ. These
fields contain update sink/link status and are needed in
order to determine whether link re-training will be
required. Furthermore, this action is mandatory as per
CTS compliance specification 1.2a.

CRs-Fixed: 1076516
Change-Id: I8c8fef768fa22c1a52f42596e3707e9b0e2c8e4d
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agoARM: dts: msm: add display device to framebuffer on msmcobalt
Tatenda Chipeperekwa [Fri, 14 Oct 2016 20:10:58 +0000 (13:10 -0700)]
ARM: dts: msm: add display device to framebuffer on msmcobalt

Add the display interface device to the framebuffer device to
enable clients that use the sysfs mechanism access to APIs
exposed by the display interface.

CRs-Fixed: 1077559
Change-Id: Ia14939b035a2fb3d964f6f78899dfa2e21b275e8
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agomsm: mdss: fix parsing of external display platform device
Tatenda Chipeperekwa [Fri, 14 Oct 2016 18:22:20 +0000 (11:22 -0700)]
msm: mdss: fix parsing of external display platform device

Fix the parsing of the external display platform device by making
use of the framebuffer and display interface platform devices to
find the correct handle.

CRs-Fixed: 1077559
Change-Id: Ifde6d8e042eb651893a1760bdc942a349bf190b7
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agomsm: mdss: dp: restrict Vx and Px to within allowable range
Tatenda Chipeperekwa [Mon, 3 Oct 2016 22:25:01 +0000 (15:25 -0700)]
msm: mdss: dp: restrict Vx and Px to within allowable range

Restrict the combinations of voltage swing levels and
pre-emaphasis levels to within the allowable range as per
DP v1.3 specification. Furthermore, set the bits to indicate
the sink when the maximum voltage or pre-emaphasis level
supported has been reached.

CRs-Fixed: 1076516
Change-Id: Ibd5ccc5e24248780df70b5ac7ec7a82511abf688
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agomsm: mdss: dp: add support for link re-training
Tatenda Chipeperekwa [Tue, 11 Oct 2016 22:25:22 +0000 (15:25 -0700)]
msm: mdss: dp: add support for link re-training

Add support for link re-training after the main link is already
trained and active. Parse the requested lane count and link
bandwidth from the DPCD when hpd_irq is high, and re-train
the main link once the display, and therefore timing generator,
has been turned off.

CRs-Fixed: 1076516
Change-Id: Ifa1b609c532aa601f30e334e87a768bdda78958d
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
7 years agoicnss: Stay awake during recovery
Prashanth Bhatta [Fri, 21 Oct 2016 16:25:02 +0000 (09:25 -0700)]
icnss: Stay awake during recovery

During recovery, there is a chance of suspending if WLAN FW takes a
while to come-up. Stay awake during recovery.

CRs-fixed: 1081218
Change-Id: I57c54da77500e38fcace367f70befed741e0e70d
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
7 years agoMerge "icnss: Unregister the driver operations when probe fails"
Linux Build Service Account [Sat, 22 Oct 2016 18:26:59 +0000 (11:26 -0700)]
Merge "icnss: Unregister the driver operations when probe fails"