OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoscsi: ufs: fix unclocked register access
Subhash Jadavani [Tue, 16 May 2017 01:17:57 +0000 (18:17 -0700)]
scsi: ufs: fix unclocked register access

When we try to update UFS driver's sysfs attribute hibern8_on_idle_delay_ms
(echo <val> > /sys/bus/platform/devices/*.ufshc/hibern8_on_idle_delay_ms)
and if auto-hibern8 is enabled, we try to update the new timeout value into
auto-hibern8 timer register without making sure the controller clocks are
enabled, this may cause the unclocked register access. So we are now
making sure that clocks are enabled and we are also making sure that
there are no transfers active on controller when we modify the auto
hibern8 timeout.

Change-Id: I603b3f405d3a69c594edd45037a2ca4535ebd1ca
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
7 years agoMerge "regulator: spm-regulator: Add support for FTS426 type regulators"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:17 +0000 (21:33 -0700)]
Merge "regulator: spm-regulator: Add support for FTS426 type regulators"

7 years agoMerge "ath10k: Update world regulatory rules"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:15 +0000 (21:33 -0700)]
Merge "ath10k: Update world regulatory rules"

7 years agoMerge "wil6210: stop TX queues when suspending"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:14 +0000 (21:33 -0700)]
Merge "wil6210: stop TX queues when suspending"

7 years agoMerge "ARM: dts: msm: Defer regulator disable for SDM660 GPU SMMU"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:13 +0000 (21:33 -0700)]
Merge "ARM: dts: msm: Defer regulator disable for SDM660 GPU SMMU"

7 years agoMerge "msm: cec: Use CEC notifier framework in adapter driver"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:09 +0000 (21:33 -0700)]
Merge "msm: cec: Use CEC notifier framework in adapter driver"

7 years agoMerge "fbdev: core: Initialise structure to prevent kernel information leak"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:08 +0000 (21:33 -0700)]
Merge "fbdev: core: Initialise structure to prevent kernel information leak"

7 years agoMerge "hrtimer: Don't drop the base lock when migration during isolation"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:07 +0000 (21:33 -0700)]
Merge "hrtimer: Don't drop the base lock when migration during isolation"

7 years agoMerge "msm: camera: isp: Disable SMMU stall upon VFE page fault"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:06 +0000 (21:33 -0700)]
Merge "msm: camera: isp: Disable SMMU stall upon VFE page fault"

7 years agoMerge "msm: camera: Prevent info leak in kernel driver."
Linux Build Service Account [Wed, 7 Jun 2017 04:33:05 +0000 (21:33 -0700)]
Merge "msm: camera: Prevent info leak in kernel driver."

7 years agoMerge "msm: camera: isp: Avoid information leak in ISPIF"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:04 +0000 (21:33 -0700)]
Merge "msm: camera: isp: Avoid information leak in ISPIF"

7 years agoMerge "ARM: dts: msm: Add cpp micro reset flag for SDM630"
Linux Build Service Account [Wed, 7 Jun 2017 04:33:03 +0000 (21:33 -0700)]
Merge "ARM: dts: msm: Add cpp micro reset flag for SDM630"

7 years agoMerge "spcom: move SPCOM_MAX_CHANNELS define to uapi/linux/spcom.h"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:58 +0000 (13:21 -0700)]
Merge "spcom: move SPCOM_MAX_CHANNELS define to uapi/linux/spcom.h"

7 years agoMerge "mmc: debugfs: fix unclocked register access by force_error"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:57 +0000 (13:21 -0700)]
Merge "mmc: debugfs: fix unclocked register access by force_error"

7 years agoMerge "ASoC: msm8998: fix clock refcount for MI2S/AUXPCM shutdown"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:54 +0000 (13:21 -0700)]
Merge "ASoC: msm8998: fix clock refcount for MI2S/AUXPCM shutdown"

7 years agoMerge "ASoC: msm: return the latest app type cfg data set when get is called"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:53 +0000 (13:21 -0700)]
Merge "ASoC: msm: return the latest app type cfg data set when get is called"

7 years agoMerge "Revert "ASoC: wcd9335: enable APC in Tx path""
Linux Build Service Account [Tue, 6 Jun 2017 20:21:52 +0000 (13:21 -0700)]
Merge "Revert "ASoC: wcd9335: enable APC in Tx path""

7 years agoMerge "smb-lib: clear EXIT_SNK_BASED_ON_CC BIT after cable removal"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:51 +0000 (13:21 -0700)]
Merge "smb-lib: clear EXIT_SNK_BASED_ON_CC BIT after cable removal"

7 years agoMerge "sched: hmp: Optimize cycle counter reads"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:50 +0000 (13:21 -0700)]
Merge "sched: hmp: Optimize cycle counter reads"

7 years agoMerge "battery: remove 20ms delay for running AICL"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:49 +0000 (13:21 -0700)]
Merge "battery: remove 20ms delay for running AICL"

7 years agoMerge "sched: Don't active migrate tasks to CPUs in the same cluster"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:48 +0000 (13:21 -0700)]
Merge "sched: Don't active migrate tasks to CPUs in the same cluster"

7 years agoMerge "smb-lib: change debounce time to 20mS while in pr_swap"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:47 +0000 (13:21 -0700)]
Merge "smb-lib: change debounce time to 20mS while in pr_swap"

7 years agoMerge "power: qcom: smb-lib: check for USB removal after legacy WA"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:46 +0000 (13:21 -0700)]
Merge "power: qcom: smb-lib: check for USB removal after legacy WA"

7 years agoMerge "mhi: core: Using usleep_range instead of msleep for sleep"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:46 +0000 (13:21 -0700)]
Merge "mhi: core: Using usleep_range instead of msleep for sleep"

7 years agoMerge "drm/msm: Separate locking of buffer resources from struct_mutex"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:43 +0000 (13:21 -0700)]
Merge "drm/msm: Separate locking of buffer resources from struct_mutex"

7 years agoMerge "qseecom: fix listener unregistration issue"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:42 +0000 (13:21 -0700)]
Merge "qseecom: fix listener unregistration issue"

7 years agoMerge "ARM: dts: msm: Fix panel roi alignment on msm8998"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:41 +0000 (13:21 -0700)]
Merge "ARM: dts: msm: Fix panel roi alignment on msm8998"

7 years agoMerge "phy: qcom-ufs-qmp-v3: fix UFS NOP Timeout"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:41 +0000 (13:21 -0700)]
Merge "phy: qcom-ufs-qmp-v3: fix UFS NOP Timeout"

7 years agoMerge "sched: Fix load tracking bug to avoid adding phantom task demand"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:40 +0000 (13:21 -0700)]
Merge "sched: Fix load tracking bug to avoid adding phantom task demand"

7 years agoMerge "wil6210: support devices with different PCIe bar size"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:38 +0000 (13:21 -0700)]
Merge "wil6210: support devices with different PCIe bar size"

7 years agoMerge "ARM: dts: msm: Enable DRD mode for 2nd USB controller on MSM8996 Auto"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:37 +0000 (13:21 -0700)]
Merge "ARM: dts: msm: Enable DRD mode for 2nd USB controller on MSM8996 Auto"

7 years agoMerge "msm: camera: isp: Add bound check for an array"
Linux Build Service Account [Tue, 6 Jun 2017 20:21:36 +0000 (13:21 -0700)]
Merge "msm: camera: isp: Add bound check for an array"

7 years agoMerge "Revert "defconfig: msmcortex_mediabox: Disable MODULE_SIG""
Linux Build Service Account [Tue, 6 Jun 2017 20:21:35 +0000 (13:21 -0700)]
Merge "Revert "defconfig: msmcortex_mediabox: Disable MODULE_SIG""

7 years agospcom: move SPCOM_MAX_CHANNELS define to uapi/linux/spcom.h
Amir Samuelov [Mon, 5 Jun 2017 11:35:44 +0000 (14:35 +0300)]
spcom: move SPCOM_MAX_CHANNELS define to uapi/linux/spcom.h

Move SPCOM_MAX_CHANNELS to common H file to make sure that kernel spcom
driver and user space spcomlib library are synced.

Change-Id: I5e19f8def7de755fa89b6a5c67e9d3372f8433f1
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
7 years agoARM: dts: msm: Defer regulator disable for SDM660 GPU SMMU
Rajesh Kemisetti [Wed, 17 May 2017 10:13:43 +0000 (15:43 +0530)]
ARM: dts: msm: Defer regulator disable for SDM660 GPU SMMU

IOMMU driver takes vote on regulator for every unmap, attach or
detach call and removes it once done.

This is an overhead if GPU is in power collapse mode and huge
number of unmap calls are pending from a given context. It would
end up in turning ON/OFF the regulator those many times.

To optimize this, do a deferred regulator disable about 80ms so that
all subsequent requests to regulator enable will be just refcounted.

Change-Id: I816156f1bdf34a2c0cb8171c2ca1df6b3ae8fe72
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
7 years agomsm: cec: Use CEC notifier framework in adapter driver
Ray Zhang [Thu, 27 Apr 2017 08:45:35 +0000 (16:45 +0800)]
msm: cec: Use CEC notifier framework in adapter driver

Enable CEC notifier support in CEC adapter driver, so the
adapter could get notification whenever physical address
is available. This removes the requirement for userspace
to manually set physical address.

CRs-Fixed: 2041335
Change-Id: I337c189d625922391374d3cdeb1f2840ad829cd7
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agommc: debugfs: fix unclocked register access by force_error
Can Guo [Mon, 5 Jun 2017 04:00:03 +0000 (12:00 +0800)]
mmc: debugfs: fix unclocked register access by force_error

When echo values to debugfs entry force_error, unclocked
register access error would be detected. This change fixes
it by making sure the host is powered up and host clock is
ticking before access force event register for error
interrupt status.

Change-Id: I995523d64de36cd4872209db4a558aa83103fbb3
Signed-off-by: Can Guo <cang@codeaurora.org>
7 years agosmb-lib: clear EXIT_SNK_BASED_ON_CC BIT after cable removal
Abhijeet Dharmapurikar [Tue, 6 Jun 2017 00:14:17 +0000 (17:14 -0700)]
smb-lib: clear EXIT_SNK_BASED_ON_CC BIT after cable removal

EXIT_SNK_BASED_ON_CC bit is only to be used while we are in hard
reset. There is a possibility for that bit to remain set if
cable were removed while a hard reset was in progress.

Clear that bit in removal path

Change-Id: I5e0776de9322a8015f851312df51a202e35c7a78
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agodrm/msm: add CEC notifier support for HDMI driver
Ray Zhang [Thu, 11 May 2017 10:23:40 +0000 (18:23 +0800)]
drm/msm: add CEC notifier support for HDMI driver

Add CEC notifier support which allows HDMI driver to
inform CEC driver with the new physical address. With
this information the CEC adapter driver does not need
to manually set the physical address from userspace.

CRs-Fixed: 2041335
Change-Id: I5b5707ad40ee381b5cd67f1e89f0d2397a9a7bb2
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years ago[media] cec: integrate CEC notifier support
Hans Verkuil [Tue, 13 Dec 2016 14:15:57 +0000 (12:15 -0200)]
[media] cec: integrate CEC notifier support

Support the CEC notifier framework, simplifying drivers that
depend on this.

Change-Id: I911181db4dc082befa625ce0acc3993ff6f3a1a3
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Git-commit: e3a93adcc4f6c3b538f3d617fc48a87979d4548b
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years ago[media] media: add CEC notifier support
Hans Verkuil [Mon, 14 Nov 2016 13:55:20 +0000 (11:55 -0200)]
[media] media: add CEC notifier support

Add support for CEC notifiers, which is used to convey CEC physical address
information from video drivers to their CEC counterpart driver(s).

Based on an earlier version from Russell King:

https://patchwork.kernel.org/patch/9277043/

The cec_notifier is a reference counted object containing the CEC physical address
state of a video device.

When a new notifier is registered the current state will be reported to
that notifier at registration time.

Change-Id: I00697db780b127a52512a6e55cabac745d8ebfa3
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Git-commit: 6917a7b774133d60e0cfd8f9ac8bb62ae6ba10aa
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
[rayz@codeaurora.org: resolve merge conflicts by discarding the MAINTAINERS
 change.]
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agodefconfig: enable cec adapter driver in mediabox
Ray Zhang [Thu, 11 May 2017 08:20:12 +0000 (16:20 +0800)]
defconfig: enable cec adapter driver in mediabox

Enable CEC adapter driver in mediabox config. This is required
to support HDMI CEC functionality.

CRs-Fixed: 2041335
Change-Id: I006ccd85a6467841c32343372d83771482d0efcd
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agoMerge "iommu/arm-smmu: Add support for regulator deferred disable"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:47 +0000 (04:34 -0700)]
Merge "iommu/arm-smmu:  Add support for regulator deferred disable"

7 years agoMerge "msm: vidc: Copy user buffers to kernel memory before access"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:46 +0000 (04:34 -0700)]
Merge "msm: vidc: Copy user buffers to kernel memory before access"

7 years agoMerge "msm: vidc: Add state checks for start streaming"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:44 +0000 (04:34 -0700)]
Merge "msm: vidc: Add state checks for start streaming"

7 years agoMerge "msm: vidc: Update matrix coefficient values"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:43 +0000 (04:34 -0700)]
Merge "msm: vidc: Update matrix coefficient values"

7 years agoMerge "msm: vidc: Update VB2 buffer state during stream_on failure"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:42 +0000 (04:34 -0700)]
Merge "msm: vidc: Update VB2 buffer state during stream_on failure"

7 years agoMerge "msm: vidc: Call vb2_queue_release before destroying reg_buf lock"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:41 +0000 (04:34 -0700)]
Merge "msm: vidc: Call vb2_queue_release before destroying reg_buf lock"

7 years agoMerge "msm: vidc: Check presence of property before calling cx register"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:39 +0000 (04:34 -0700)]
Merge "msm: vidc: Check presence of property before calling cx register"

7 years agoMerge "msm: cec: Add CEC adapter driver for SDE hardware"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:38 +0000 (04:34 -0700)]
Merge "msm: cec: Add CEC adapter driver for SDE hardware"

7 years agoMerge "mhi: mhi_uci: Create char dev only after PCIe device ID is known"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:37 +0000 (04:34 -0700)]
Merge "mhi: mhi_uci: Create char dev only after PCIe device ID is known"

7 years agoMerge "mhi: core: Bind devices with variable PCIe device IDs with same device node"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:36 +0000 (04:34 -0700)]
Merge "mhi: core: Bind devices with variable PCIe device IDs with same device node"

7 years agoMerge "ARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:35 +0000 (04:34 -0700)]
Merge "ARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996"

7 years agoMerge "msm: ipa3: Fix to add check for dma_map_single return values"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:34 +0000 (04:34 -0700)]
Merge "msm: ipa3: Fix to add check for dma_map_single return values"

7 years agoMerge "regulator: qpnp: check min/max voltages against HW configuration"
Linux Build Service Account [Mon, 5 Jun 2017 11:34:33 +0000 (04:34 -0700)]
Merge "regulator: qpnp: check min/max voltages against HW configuration"

7 years agoARM: dts: msm: Fix panel roi alignment on msm8998
Animesh Kishore [Sun, 4 Jun 2017 19:14:18 +0000 (00:44 +0530)]
ARM: dts: msm: Fix panel roi alignment on msm8998

Align partial update roi start and height to 256 pixels
for nt35597 panel.

Change-Id: I56e78d1adab769c4d226d88cfb5badcfe7eb6dc2
Signed-off-by: Animesh Kishore <animeshk@codeaurora.org>
7 years agoath10k: Update world regulatory rules
Rajeev Kumar Sirasanagandla [Thu, 25 May 2017 15:08:33 +0000 (20:38 +0530)]
ath10k: Update world regulatory rules

In the current implementation, 5Ghz channel frequencies and txpower of
world regulatory rules are not in par with the Micahel Green's
master sheet.

To address this, modify the frequency ranges and associate tx powers.

CRs-Fixed: 2052854
Change-Id: I119ceda704bea4681d373e72ccedddd3619e6e2f
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
7 years agoRevert "defconfig: msmcortex_mediabox: Disable MODULE_SIG"
Mohammed Khajapasha [Mon, 5 Jun 2017 10:59:16 +0000 (16:29 +0530)]
Revert "defconfig: msmcortex_mediabox: Disable MODULE_SIG"

This reverts commit 3fa757498480 ("defconfig: msmcortex_mediabox:
Disable MODULE_SIG").

Change-Id: I08d9ef6913a8e19f16ac5729315f3577490ed25c
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
7 years agophy: qcom-ufs-qmp-v3: fix UFS NOP Timeout
Asutosh Das [Thu, 1 Jun 2017 09:20:41 +0000 (14:50 +0530)]
phy: qcom-ufs-qmp-v3: fix UFS NOP Timeout

With the current SIGDET value of 0x6E there
seems to be NOP timeouts seen frequently.

Hence, change the SIGDET value to 0x6C as per
updated Hardware Programming Guide.

Change-Id: I46426382033603c4727de6b0a485015eed690f34
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
7 years agoregulator: spm-regulator: Add support for FTS426 type regulators
Tirupathi Reddy [Fri, 28 Apr 2017 03:14:11 +0000 (08:44 +0530)]
regulator: spm-regulator: Add support for FTS426 type regulators

Add support for PMIC FTSMPS 426 type regulators.  These have a
4 mV step size and a voltage control scheme consisting of two
8-bit registers defining a 16-bit voltage set point in units of
millivolts.

Also address the mode register configuration differences between
FTSMPS 426 type regulators and other regulators supported in
spm-regulator driver file.

CRs-Fixed: 2037603
Change-Id: Ide54c8c9dd8113ab4588979ec97915403b3ecab1
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
7 years agoARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996
Jaiju Yesudasan [Wed, 28 Sep 2016 14:14:31 +0000 (19:44 +0530)]
ARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996

Neutrino reset GPIO need to be be disabled at bootup.
It will be enabled by driver in its probe.

CRs-Fixed: 1072096
Change-Id: Ie4a0428523b0764e0234f0ae51a90c250166cca9
Signed-off-by: Jaiju Yesudasan <cjaijuy@codeaurora.org>
7 years agoiommu/arm-smmu: Add support for regulator deferred disable
Prakash Gupta [Tue, 16 May 2017 06:43:02 +0000 (12:13 +0530)]
iommu/arm-smmu:  Add support for regulator deferred disable

In case of unmap call, regulator is enabled/disabled. This may introduce
additional delay. For clients who do not detach, it's not possible to keep
regulator vote while smmu is attached.
Add support for regulator deferred disable. The time delay for deferred
disable can be set using dt property qcom,deferred-regulator-disable-delay
in ms.

Change-Id: I462e1999bd81f6332169b24749632d7b247c75c5
Signed-off-by: Prakash Gupta <guptap@codeaurora.org>
7 years agoMerge "defconfig: msm8996: Use RCU_NOCB for RCU subsystem"
Linux Build Service Account [Mon, 5 Jun 2017 04:32:07 +0000 (21:32 -0700)]
Merge "defconfig: msm8996: Use RCU_NOCB for RCU subsystem"

7 years agomsm: camera: isp: Disable SMMU stall upon VFE page fault
Venu Yeshala [Wed, 17 May 2017 17:33:59 +0000 (23:03 +0530)]
msm: camera: isp: Disable SMMU stall upon VFE page fault

Terminate fault transaction and don't stall SMMU for VFE.

CRs-Fixed: 2048270
Change-Id: I357d7b92c7c066bf2ba157bb35b4e350bcbebdda
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
7 years agodefconfig: msm8996: Use RCU_NOCB for RCU subsystem
Wei Li [Thu, 18 May 2017 03:33:43 +0000 (11:33 +0800)]
defconfig: msm8996: Use RCU_NOCB for RCU subsystem

Use per CPU NOCB threads to process RCU callbacks, rather than processing
the callbacks in softirq context. Processing large number of callbacks
in softirq context may result in delayed execution of other softirqs, so
remove processing of callbacks from softirq context.

Change-Id: I90d070ad824d2df0f3e1ee29da1b48ae2887b64b
Signed-off-by: Wei Li <weili@codeaurora.org>
7 years agobattery: remove 20ms delay for running AICL
Abhijeet Dharmapurikar [Sun, 4 Jun 2017 20:04:39 +0000 (13:04 -0700)]
battery: remove 20ms delay for running AICL

The driver waits 20mS after setting ICL to a step lower
than settled value before increasing it back to the effective
value. That 20mS delay is not required and causes PR_SWAP compliance
tests to fail. Remove it.

Change-Id: I8bd43a885c554df3590499ddf2a219e816e28734
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agoMerge "qcom: smb1351: add support for reporting INPUT_SUSPEND property"
Linux Build Service Account [Sun, 4 Jun 2017 19:55:41 +0000 (12:55 -0700)]
Merge "qcom: smb1351: add support for reporting INPUT_SUSPEND property"

7 years agoMerge "ARM: dts: msm: Early mount of vendor partition for msm8998"
Linux Build Service Account [Sun, 4 Jun 2017 12:59:08 +0000 (05:59 -0700)]
Merge "ARM: dts: msm: Early mount of vendor partition for msm8998"

7 years agowil6210: support devices with different PCIe bar size
Maya Erez [Thu, 25 May 2017 15:43:36 +0000 (18:43 +0300)]
wil6210: support devices with different PCIe bar size

wil6210 devices can have different PCIe bar size, hence get the
bar size from PCIe device instead of using a constant bar size.

Change-Id: I02fe3f05e184b141c9a5519dd97c3f2d2eb99baf
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: d86d47164b227f01c3ec34c3f5a1613977d563eb
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agowil6210: low level RF sector API
Lior David [Sun, 4 Jun 2017 06:57:27 +0000 (09:57 +0300)]
wil6210: low level RF sector API

Added vendor commands for low level control over
RF sectors. It allows user space a fine-grained control
over RF characteristics for TX and RX, such as direction
and gain of TX/RX. Main usages are debugging and diagnostics,
but also operational use cases.
API includes getting/setting a specific RF sector
configuration, as well as getting/setting the selected
sector which is used to communicate with a station.

Change-Id: I2b1f2bab4f0fdc3d0177b19b7072c19f9ffa78bd
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 0216a895946fa683ea51b842501e66106c0f1017
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
[merez@codeaurora.org: fixed merge conflicts]
Signed-off-by: Maya Erez <merez@codeaurora.org>
7 years agoMerge "soc: qcom: pil: Add trace events for PIL driver"
Linux Build Service Account [Sun, 4 Jun 2017 05:36:47 +0000 (22:36 -0700)]
Merge "soc: qcom: pil: Add trace events for PIL driver"

7 years agoMerge "drm/msm: fix leak in failed get_pages"
Linux Build Service Account [Sun, 4 Jun 2017 05:36:46 +0000 (22:36 -0700)]
Merge "drm/msm: fix leak in failed get_pages"

7 years agoMerge "input: synaptics_dsx: remove unused synaptics touch screen driver files"
Linux Build Service Account [Sun, 4 Jun 2017 05:36:45 +0000 (22:36 -0700)]
Merge "input: synaptics_dsx: remove unused synaptics touch screen driver files"

7 years agomhi: core: Using usleep_range instead of msleep for sleep
Sujeev Dias [Thu, 1 Jun 2017 22:29:24 +0000 (15:29 -0700)]
mhi: core: Using usleep_range instead of msleep for sleep

msleep is not accurate for small delays.  Use usleep_range
for accuracy.

CRs-Fixed: 1117121
Change-Id: I9a076f843875bd83a21c96d4e4ea0510e82ce352
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agodefconfig: msmcortex_mediabox: Disable MODULE_SIG
Runmin Wang [Wed, 17 May 2017 21:48:34 +0000 (14:48 -0700)]
defconfig: msmcortex_mediabox: Disable MODULE_SIG

Disable the module_sig for apq8098 target.

Change-Id: Ifd5927321bd2a5e8a55f6bae887ee86645889b6c
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
7 years agoARM: dts: msm: add CEC device for msm8998
Ray Zhang [Mon, 17 Apr 2017 08:14:54 +0000 (16:14 +0800)]
ARM: dts: msm: add CEC device for msm8998

Add CEC device which provides HDMI CEC support for msm8998.
CEC is a protocol that provides high-level control functions
for the communication between various audiovisual devices.

CRs-Fixed: 2041335
Change-Id: If65798efa28e4b1eaeff5b6fa9b6f92318e7c91f
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agomsm: cec: Add CEC adapter driver for SDE hardware
Ray Zhang [Tue, 18 Apr 2017 07:29:02 +0000 (15:29 +0800)]
msm: cec: Add CEC adapter driver for SDE hardware

This CEC adapter driver using CEC framework provides CEC
support for SDE hardware. CEC is a protocol that provides
high-level control functions between various audiovisual
products. This adapter is the hardware implementation of
CEC protocol, and its major functionality is to send and
to receive CEC messages.

CRs-Fixed: 2041335
Change-Id: I73bc9c63b78d61f5449a37cadcfeda976d5456b0
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
7 years agoMerge "ARM: dts: msm: assign virtual planes on msm8996 auto platform"
Linux Build Service Account [Sat, 3 Jun 2017 05:27:57 +0000 (22:27 -0700)]
Merge "ARM: dts: msm: assign virtual planes on msm8996 auto platform"

7 years agopower: qcom: smb-lib: check for USB removal after legacy WA
Nicholas Troast [Fri, 2 Jun 2017 21:45:39 +0000 (14:45 -0700)]
power: qcom: smb-lib: check for USB removal after legacy WA

If the USB Type-C cable is removed while the legacy workaround is
running the IRQ will be ignored and the removal will not be detected.

Check for USB Type-C removal by manually triggering the IRQ when the
legacy workaround finishes.

Change-Id: Ie2e399915da88a9d7fc480767e4fad8abf23024d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Modify coresight replicator device for msm8996"
Linux Build Service Account [Fri, 2 Jun 2017 21:30:18 +0000 (14:30 -0700)]
Merge "ARM: dts: msm: Modify coresight replicator device for msm8996"

7 years agoMerge "ARM: dts: msm: enable HDMI & DSI displays on 8996 auto CDP platform"
Linux Build Service Account [Fri, 2 Jun 2017 21:30:17 +0000 (14:30 -0700)]
Merge "ARM: dts: msm: enable HDMI & DSI displays on 8996 auto CDP platform"

7 years agoMerge "msm: smmu: add re-route calling for specified iova."
Linux Build Service Account [Fri, 2 Jun 2017 06:49:14 +0000 (23:49 -0700)]
Merge "msm: smmu: add re-route calling for specified iova."

7 years agoMerge "power: qcom: smb138x-charger: do not enable parallel thermal regulation"
Linux Build Service Account [Fri, 2 Jun 2017 06:49:13 +0000 (23:49 -0700)]
Merge "power: qcom: smb138x-charger: do not enable parallel thermal regulation"

7 years agoMerge "qpnp-fg-gen3: configure ESR timers dynamically based on charge termination"
Linux Build Service Account [Fri, 2 Jun 2017 06:49:12 +0000 (23:49 -0700)]
Merge "qpnp-fg-gen3: configure ESR timers dynamically based on charge termination"

7 years agoMerge "ARM: dts: msm: update PCIe PHY sigdet settings"
Linux Build Service Account [Fri, 2 Jun 2017 06:49:11 +0000 (23:49 -0700)]
Merge "ARM: dts: msm: update PCIe PHY sigdet settings"

7 years agoMerge "usb: pd: policy_engine: Handle spec revision properly"
Linux Build Service Account [Fri, 2 Jun 2017 06:49:10 +0000 (23:49 -0700)]
Merge "usb: pd: policy_engine: Handle spec revision properly"

7 years agoMerge "core_ctl: Add sysfs node to disable core_ctl"
Linux Build Service Account [Fri, 2 Jun 2017 06:49:10 +0000 (23:49 -0700)]
Merge "core_ctl: Add sysfs node to disable core_ctl"

7 years agoARM: dts: msm: assign virtual planes on msm8996 auto platform
Thomas (Wonyoung) Yun [Tue, 16 May 2017 15:13:21 +0000 (11:13 -0400)]
ARM: dts: msm: assign virtual planes on msm8996 auto platform

The virtual planes are used to support wider HDMI display. Enable
them on msm8996 auto platforms in order to support 4K HDMI display.

Change-Id: I61bf00975ffac73c37f66dbc47dcc11b31df45df
Signed-off-by: Thomas (Wonyoung) Yun <wyun@codeaurora.org>
7 years agomsm: smmu: add re-route calling for specified iova.
Guchun Chen [Sat, 27 May 2017 09:38:27 +0000 (17:38 +0800)]
msm: smmu: add re-route calling for specified iova.

When calling smmu mapping, if iova is specified directly by user, not
allocated dynamically in dma-mapping.c, smmu driver needs to provide
support for this. This is needed in early display case. In this scenario,
LK has set physical memory to display hardware for fetching, so if iova
is not explicitly specified in kernel, but instead dynamically produced
by "alloc_iova" in dma-mapping.c, display hardware has no chance to know
this new iova, then smmu fault will happen if enabling the iommu stage-1
translation.
To fix this smmu fault problem, add re-routing to the right path when
iova specified by user is not 0 in smmu map/unmap function.

Change-Id: I062b04d7eec65af1c106a5caa09ec787b5d26d0d
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
7 years agomhi: mhi_uci: Create char dev only after PCIe device ID is known
Sujeev Dias [Thu, 1 Jun 2017 18:57:12 +0000 (11:57 -0700)]
mhi: mhi_uci: Create char dev only after PCIe device ID is known

MHI host may not have PCIe device info during channel
registration. Defer creation of char device until
PCIe bus enumeration is completed.

CRs-Fixed: 2040899
Change-Id: I6372523bd6a758f29dad09d207b86c3f87e2f2cc
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agoMerge "clk: msm: clock-local2: Remove checks for display RCG re-configuration"
Linux Build Service Account [Thu, 1 Jun 2017 23:56:03 +0000 (16:56 -0700)]
Merge "clk: msm: clock-local2: Remove checks for display RCG re-configuration"

7 years agoMerge "msm: kgsl: Use per page cache operation instead of bulk cache operation"
Linux Build Service Account [Thu, 1 Jun 2017 23:56:02 +0000 (16:56 -0700)]
Merge "msm: kgsl: Use per page cache operation instead of bulk cache operation"

7 years agoMerge "ARM: dts: msm: Enable support for audio on guest virtual platform"
Linux Build Service Account [Thu, 1 Jun 2017 23:56:01 +0000 (16:56 -0700)]
Merge "ARM: dts: msm: Enable support for audio on guest virtual platform"

7 years agoMerge "iommu: iommu-debug: limit memory address exposure"
Linux Build Service Account [Thu, 1 Jun 2017 23:56:00 +0000 (16:56 -0700)]
Merge "iommu: iommu-debug: limit memory address exposure"

7 years agoMerge "diag: Add support for mhi shutdown notification"
Linux Build Service Account [Thu, 1 Jun 2017 23:56:00 +0000 (16:56 -0700)]
Merge "diag: Add support for mhi shutdown notification"

7 years agoqseecom: fix listener unregistration issue
Zhen Kong [Thu, 1 Jun 2017 22:06:00 +0000 (15:06 -0700)]
qseecom: fix listener unregistration issue

When listener unregister thread wakes up due to some system signals,
but not because ioctl_cnt <=1, it should return directly, instead of
continuing to remove listener list entry, which will lead kernel panic
when another listener receive thread accesses this freed entry.

Change-Id: I6ff97c56867d008232d7c50b22b372b0856c8dff
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agopower: qcom: smb138x-charger: do not enable parallel thermal regulation
Nicholas Troast [Thu, 1 Jun 2017 22:07:24 +0000 (15:07 -0700)]
power: qcom: smb138x-charger: do not enable parallel thermal regulation

USB connector HW based thermal regulation is active which will throttle
the input current on USBIN-USBIN configurations. This was enabled for
MID-MID configurations to enable the comparator output for USB connector
temperature mitigation, but since the input is bypassed it does not
throttle the input current. The comparator output is no longer used
since the ADC values are used directly, so neither configuration needs
this HW feature to be enabled.

Remove the write to enable this HW feature.

Change-Id: Ia7f6b3812ae222fbd8233d07dd6daa67e65ce08b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
7 years agousb: pd: policy_engine: Handle spec revision properly
Hemant Kumar [Tue, 30 May 2017 22:54:55 +0000 (15:54 -0700)]
usb: pd: policy_engine: Handle spec revision properly

As per USB PD 3.0 specification the 2-bit Specification Revision field
of a GoodCRC Message does not carry any meaning and Shall be considered
as don't care by the recipient of the Message. Hence set spec revision
to USBPD_REV_20 for GoodCRC message. PD protocol message header defaults
to USBPD_REV_20 which gets updated USBPD_REV_30 if PD 3.0 source capabale
of programmable power supply.

Change-Id: I5209bb00c437f3c959d093a972f1ac75233cbcf9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agoARM: dts: msm: update PCIe PHY sigdet settings
Tony Truong [Thu, 4 May 2017 18:12:52 +0000 (11:12 -0700)]
ARM: dts: msm: update PCIe PHY sigdet settings

Sigdet under low power (LP) mode will use a less accurate local reference
generation, which is expected to have a little more variation than a
precise reference (normal mode). Update PCIe PHY sigdet to use normal
mode instead of LP to increase accuracy and make sigdet more robust.

Change-Id: If9cad9ac9b5a6a736e3af653ac3b3b5e30cfefb4
Signed-off-by: Tony Truong <truong@codeaurora.org>
7 years agoARM: dts: msm: Enable support for audio on guest virtual platform
King Tam [Fri, 12 May 2017 20:03:43 +0000 (16:03 -0400)]
ARM: dts: msm: Enable support for audio on guest virtual platform

Update device tree nodes to support audio on guest virtual machine.

Change-Id: Id2e12b466cff43d8ddcb5c01ecd7bb1a7f0ba04c
CRs-fixed: 2047317
Signed-off-by: King Tam <kingt@codeaurora.org>