Commit graph

590705 commits

Author SHA1 Message Date
Linux Build Service Account
2d08b001ac Merge "battery: remove 20ms delay for running AICL" 2017-06-06 13:21:49 -07:00
Linux Build Service Account
6ed51e0bab Merge "sched: Don't active migrate tasks to CPUs in the same cluster" 2017-06-06 13:21:48 -07:00
Linux Build Service Account
e227c0d7c3 Merge "smb-lib: change debounce time to 20mS while in pr_swap" 2017-06-06 13:21:47 -07:00
Linux Build Service Account
dbc81522c3 Merge "power: qcom: smb-lib: check for USB removal after legacy WA" 2017-06-06 13:21:46 -07:00
Linux Build Service Account
56f84db22e Merge "mhi: core: Using usleep_range instead of msleep for sleep" 2017-06-06 13:21:45 -07:00
Linux Build Service Account
6ce38a9691 Merge "drm/msm: Separate locking of buffer resources from struct_mutex" 2017-06-06 13:21:43 -07:00
Linux Build Service Account
7ceaecca8a Merge "qseecom: fix listener unregistration issue" 2017-06-06 13:21:42 -07:00
Linux Build Service Account
3109a13038 Merge "ARM: dts: msm: Fix panel roi alignment on msm8998" 2017-06-06 13:21:41 -07:00
Linux Build Service Account
be68a3874e Merge "phy: qcom-ufs-qmp-v3: fix UFS NOP Timeout" 2017-06-06 13:21:40 -07:00
Linux Build Service Account
0d1b465cb8 Merge "sched: Fix load tracking bug to avoid adding phantom task demand" 2017-06-06 13:21:39 -07:00
Linux Build Service Account
1d0af2abf0 Merge "wil6210: support devices with different PCIe bar size" 2017-06-06 13:21:38 -07:00
Linux Build Service Account
3eb3dbc346 Merge "ARM: dts: msm: Enable DRD mode for 2nd USB controller on MSM8996 Auto" 2017-06-06 13:21:37 -07:00
Linux Build Service Account
37bca2d337 Merge "msm: camera: isp: Add bound check for an array" 2017-06-06 13:21:36 -07:00
Linux Build Service Account
f846530324 Merge "Revert "defconfig: msmcortex_mediabox: Disable MODULE_SIG"" 2017-06-06 13:21:35 -07:00
Bao D. Nguyen
04147f52cc scsi: ufs: Avoid dead lock during error recovery
The UFS error handler work may be entered from the clock scaling context
which may have acquired the lock used to synchronize between clock scaling
and shutdown. Part of the error handler work is to send management
requests during which the same synchronization lock is acquired again.
This condition leads to a dead lock. To avoid this dead lock,
skip acquiring the synchronization lock when sending management
requests as part of the error handler.

Change-Id: I38179528868aaeb4a788a83ca8f9c458afea862a
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
2017-06-06 12:19:21 -07:00
Neeraj Soni
c9762c3c1a dm: md: Replace scheduling of request with direct call
This is found to be improving the performance of Random
read and write with FDE enabled. The scheduling was
introduced as part of 4.4 kernel for mq support.

Change-Id: I300750b5f7f1cff4b81f028ae938e7d2b3652bd2
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
2017-06-06 18:57:07 +05:30
Srivatsa Vaddagiri
616d69980a soc: qcom: subsys-pil-tz: Initialize subsys_dev pointer
Without this pointer being correctly initialized, subsys_set_error()
would end up accessing invalid memory

Change-Id: Ic62224e830d17c25f2bf9eeeecc81422fc0d5906
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
2017-06-06 02:45:32 -07:00
Amir Samuelov
5b99a712e5 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>
2017-06-06 00:49:08 -07:00
Rajesh Kemisetti
7241f32c49 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>
2017-06-06 11:32:27 +05:30
Ray Zhang
806fdaa479 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>
2017-06-06 09:54:25 +08:00
Can Guo
20e817d30c 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>
2017-06-06 09:39:30 +08:00
Subbaraman Narayanamurthy
4dba5345e1 power: qpnp-fg-gen3: Fix possible integer overflow
Currently, DIV_ROUND_CLOSEST is used while finding the delta
between initial and final cc_soc_sw in terms of percentage. This
can go beyond 32 bits with the intermediate multiplication before
it is down-converted back to less than 32 bits. Fix this.

Also, when the cc_soc_sw delta is less than 50 %, discard the
data so that the last learned capacity won't be updated.

While at it, fix a similar use of DIV_ROUND_CLOSEST in another
place fg_encode_default() where an integer overflow can happen
if it is passed with large integer values.

Change-Id: Ia2b0f5456663a90bcd32a4fed52d1e579cff4e1f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-06-05 18:20:04 -07:00
Abhijeet Dharmapurikar
f59ca29be6 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>
2017-06-05 17:33:35 -07:00
Veerabhadrarao Badiganti
9c123aff46 mmc: core: Fix the issue with clock scaling in resume-scaling
In resume_scaling, the host current clock is compared with max clock
of the card to adjust the current-scaling clock.

If max clock supported by the card is more than the max clock that the
host can support, then the above-mentioned comparison is resulting in
setting the current-scaling clock to scale-down clock frequency even
though current host clock is at the maximum clock. This will lead to
skipping of scaling down to lower clock in low load use-cases. So clock
would remain at max clock till next time clock is scaled up and then
scaled down.

To prevent this scenario, compare the host current clock with max clock
that host can be scaled-up instead of max clock of the card.

Change-Id: Ibbed4bb374f1cbb5aee21cfca4e7e97d8f999d51
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-06-05 20:08:37 +05:30
Vijayavardhan Vennapusa
77386df356 policy_engine: Add module parameter to start USB stack
USB 3.1 super speed compliance equipment may be detected as floating
charger by PMI as it may leave D+/D- lines floating (High speed data
lines). PD Policy engine does not start USB stack which results into
compliance failure as compliance expects USB stack to be started. Add
module parameter usb_compliance_mode to start USB stack on cable
connect (w/o depending on charger type).

Change-Id: Ieb33057a85b4bcff9c1e7c32c256663dd23f17ef
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-06-05 18:42:57 +05:30
Ray Zhang
dd943e28df 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>
2017-06-05 05:46:30 -07:00
Hans Verkuil
6baa8d9364 [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>
2017-06-05 05:46:11 -07:00
Hans Verkuil
e1dd2d127f [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>
2017-06-05 05:45:08 -07:00
Ray Zhang
4c217da22e 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>
2017-06-05 20:39:31 +08:00
Linux Build Service Account
2bfc0eda7e Merge "iommu/arm-smmu: Add support for regulator deferred disable" 2017-06-05 04:34:46 -07:00
Linux Build Service Account
cf5733cad6 Merge "msm: vidc: Copy user buffers to kernel memory before access" 2017-06-05 04:34:45 -07:00
Linux Build Service Account
5b46d743ad Merge "msm: vidc: Add state checks for start streaming" 2017-06-05 04:34:44 -07:00
Linux Build Service Account
b22aa20214 Merge "msm: vidc: Update matrix coefficient values" 2017-06-05 04:34:43 -07:00
Linux Build Service Account
059fd2cf8c Merge "msm: vidc: Update VB2 buffer state during stream_on failure" 2017-06-05 04:34:41 -07:00
Linux Build Service Account
fdc3087c00 Merge "msm: vidc: Call vb2_queue_release before destroying reg_buf lock" 2017-06-05 04:34:40 -07:00
Linux Build Service Account
03e51c169a Merge "msm: vidc: Check presence of property before calling cx register" 2017-06-05 04:34:39 -07:00
Linux Build Service Account
53a8c2aba3 Merge "msm: cec: Add CEC adapter driver for SDE hardware" 2017-06-05 04:34:38 -07:00
Linux Build Service Account
21852febc3 Merge "mhi: mhi_uci: Create char dev only after PCIe device ID is known" 2017-06-05 04:34:36 -07:00
Linux Build Service Account
1ef397af3d Merge "mhi: core: Bind devices with variable PCIe device IDs with same device node" 2017-06-05 04:34:35 -07:00
Linux Build Service Account
3ae760a4bb Merge "ARM: dts: msm: Disable neutrino reset GPIO at bootup on msm8996" 2017-06-05 04:34:35 -07:00
Linux Build Service Account
c403d314f9 Merge "msm: ipa3: Fix to add check for dma_map_single return values" 2017-06-05 04:34:33 -07:00
Linux Build Service Account
bf0ca14023 Merge "regulator: qpnp: check min/max voltages against HW configuration" 2017-06-05 04:34:32 -07:00
Animesh Kishore
f46a723774 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>
2017-06-05 16:50:47 +05:30
Rajeev Kumar Sirasanagandla
92072eb888 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>
2017-06-05 04:16:04 -07:00
Mohammed Khajapasha
5b570ccf6d Revert "defconfig: msmcortex_mediabox: Disable MODULE_SIG"
This reverts commit 3fa7574984 ("defconfig: msmcortex_mediabox:
Disable MODULE_SIG").

Change-Id: I08d9ef6913a8e19f16ac5729315f3577490ed25c
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2017-06-05 16:35:54 +05:30
Asutosh Das
e61a2dc6ef 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>
2017-06-05 14:43:56 +05:30
Tirupathi Reddy
26efcc23eb regulator: spm: check min/max voltages against HW configuration
Regulator HW has the programmable voltage upper and lower limit
registers and doesn't allow voltage set points outside the pre-
configured voltage limits. Add a check in driver that throws an
error if the SW specified voltage range is not within the pre-
configured limits in HW.

CRs-Fixed: 2044789
Change-Id: I3593ebf8e88824a0cfcb068686673a00051a11f0
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-06-05 13:54:32 +05:30
Tirupathi Reddy
94296ec070 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>
2017-06-05 13:43:18 +05:30
Meng Wang
b1b77c6c11 ASoc: msm: add support for mixing data from different COPPs
Different COPPs can be mixed into one POPP when recording
data. Use ADM_CMD_SET_PSPD_MTMX_STRTR_PARAMS_V5 cmd to support
this requirement.

Change-Id: If079b586fafe84f7dec7732c7037af2f59f063c7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-06-05 00:35:49 -07:00
David Collins
0f8bbc8725 ARM: dts: msm: specify a PWM mode threshold for PMI8998 BoB on MSM8998
Specify a 2 A PWM vs AUTO mode load current threshold for the
PMI8998 BoB regulator.  Also specify the initial mode as AUTO.
Consumer that require the BoB to be in PWM mode should request
2000000 uA or more.

CRs-Fixed: 2054771
Change-Id: Icb6ff634359c8ae12c36dcda127bffa247c6eb71
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-06-05 11:38:47 +05:30