Commit graph

590726 commits

Author SHA1 Message Date
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
Krishna Manikandan
8983eadbc9 fbdev: msm: Allocate fd with O_CLOEXEC flag
When fd is requested during get_metadata call, create fd
using O_CLOEXEC flag.

CRs-Fixed:2030638
Change-Id: I1c874f713a3ebada63ba2c85f021aa78b04af44b
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2017-06-05 12:21:29 +05:30
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
David Collins
4544adae4c regulator: rpm-smd-regulator: add support for load based mode control
Add support to request PWM or AUTO mode for BoB and SMPS type
regulators based upon the aggregated consumer load current.  This can
be used in cases where a consumer needs to force PWM mode operation.

CRs-Fixed: 2054771
Change-Id: Iaf4353fb60468c91f958a968d844b3c1c012e54c
Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-06-05 11:38:34 +05:30
Jaiju Yesudasan
24e54bcbce 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>
2017-06-04 22:35:16 -07:00
Prakash Gupta
65f095ea8f 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>
2017-06-05 10:42:56 +05:30
Linux Build Service Account
6666999e8a Merge "defconfig: msm8996: Use RCU_NOCB for RCU subsystem" 2017-06-04 21:32:07 -07:00
Venu Yeshala
a4491e8271 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>
2017-06-04 20:10:22 -07:00
Wei Li
43b5712520 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>
2017-06-04 18:54:38 -07:00
Abhijeet Dharmapurikar
e4bb6b0e53 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>
2017-06-04 13:04:39 -07:00
Linux Build Service Account
a62f42964d Merge "qcom: smb1351: add support for reporting INPUT_SUSPEND property" 2017-06-04 12:55:40 -07:00
Linux Build Service Account
e3ca3ef7a1 Merge "ARM: dts: msm: Early mount of vendor partition for msm8998" 2017-06-04 05:59:07 -07:00
Maya Erez
02e1658224 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>
2017-06-04 09:57:39 +03:00
Lior David
3f08f268ce 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>
2017-06-04 09:57:33 +03:00
Linux Build Service Account
c5eb66bf52 Merge "soc: qcom: pil: Add trace events for PIL driver" 2017-06-03 22:36:47 -07:00
Linux Build Service Account
be36af2b20 Merge "drm/msm: fix leak in failed get_pages" 2017-06-03 22:36:46 -07:00
Linux Build Service Account
0a3cd753f4 Merge "input: synaptics_dsx: remove unused synaptics touch screen driver files" 2017-06-03 22:36:45 -07:00
Sujeev Dias
22cd52fbe8 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>
2017-06-03 18:08:44 -07:00
Runmin Wang
3fa7574984 defconfig: msmcortex_mediabox: Disable MODULE_SIG
Disable the module_sig for apq8098 target.

Change-Id: Ifd5927321bd2a5e8a55f6bae887ee86645889b6c
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-06-03 11:35:54 -07:00
Ray Zhang
4de0a80827 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>
2017-06-03 16:42:06 +08:00
Ray Zhang
1188a3afd2 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>
2017-06-03 16:42:05 +08:00
Linux Build Service Account
d9f7e741f3 Merge "ARM: dts: msm: assign virtual planes on msm8996 auto platform" 2017-06-02 22:27:57 -07:00
Sushmita Susheelendra
d9b394c7c2 drm/msm: Fix drm_mm bottom_up search
The bottom up search of drm_mm hole nodes is
currently broken. It does not correctly look
for the first hole (smallest address) that fits
the allocation from the bottom up. Use an RB tree
to record hole nodes with their address as key,
so that the hole with the smallest address that
satisfies the request can be looked up.

Change-Id: Ie3020cb4e8b6db13a35d0fe5caaa8781cb6ced9f
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-06-02 15:48:46 -06:00
Sushmita Susheelendra
1f1dbe35f7 drm/msm: Use mmu notifiers to track SVM range invalidations
SVM buffer objects share the same virtual address on
both the CPU and GPU. Register for notifications when
SVM address ranges are unmapped on the CPU. When such
a notification is received, unmap the corresponding
SVM objects from the SMMU, after waiting on the most
recent fence that uses them. The notifier struct is
reference counted starting with the creation of the
first SVM bo in the process and is released when the
last SVM bo is freed.

Change-Id: I01f590d21fd1d146f5324539e5041f03653f858a
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-06-02 15:48:45 -06:00
Sushmita Susheelendra
0a367f63c1 drm/msm: Fix error path clean-up for buffer object creation
The reference count on a buffer object was being
decremented before it was initialized. Fix the
error path clean-up to put the reference only
after the kref has been initialized. Also, avoid
passing the object by reference when possible.

Change-Id: Ifbb1874deb5db9ae3fb2fbd40a58162998284e96
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-06-02 15:48:44 -06:00
Sushmita Susheelendra
f677e9604d drm/msm: Implement shared virtual memory ioctl
Shared virtual memory allows the CPU and GPU to use
the same virtual address for a buffer. This change
implements an ioctl to allow creation of SVM buffer
objects.

Change-Id: I0d929a2e37a9eeef948dc2a37250c1eb9adf6fc7
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-06-02 15:48:43 -06:00
Nicholas Troast
dfe3d45c65 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>
2017-06-02 14:45:39 -07:00
Linux Build Service Account
8254bed4a9 Merge "ARM: dts: msm: Modify coresight replicator device for msm8996" 2017-06-02 14:30:17 -07:00
Linux Build Service Account
d65465f57c Merge "ARM: dts: msm: enable HDMI & DSI displays on 8996 auto CDP platform" 2017-06-02 14:30:16 -07:00
Veerabhadrarao Badiganti
1cc23bd6d0 mmc: core: Initialize the devfreq table with default frequencies
Initialize the clock scaling frequency table with the platform specific
frequencies while preparing it. So that the frequencies supported by
the card can be compared against the frequencies supported by the
platform and then the table can be updated with the optimal frequencies
to match with both card and platform.

Without resetting these values to default values, this table contains
the frequencies updated for the last used card. These old values would
be used instead of platform-specific values to compare against the
frequencies of the newly inserted card. This can result in limiting
the max frequency to a lower frequency than what actually card can support.
Say if an high-speed card is used first and then a ultra-high-speed card,
the max scaling frequency would get set to the max of high-speed card
instead of max of the ultra-high-speed card.

Change-Id: I09a36e36c189e1d1fc317d798a0e3ff899f4e560
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-06-02 23:20:33 +05:30
Veerabhadrarao Badiganti
70bc2b791f mmc: sdhci-msm: Store clock scaling frequencies in a dedicated table
Use a separate table to store the platform specific clock-scaling
frequencies.

The generic table where these frequencies used to be stored, would
get updated (in some cases) during clock scaling initialization.
But when a new card is inserted (In the case of a removable card),
the frequencies supported by the card should be compared against the
platform specific frequencies.

By storing these values in a separate table, these values would
remain intact and this table can be used for initializing the
generic table during clock-scaling initialization.

Change-Id: I5729f18a975f849bc2965a946473a9cdbd81e94a
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-06-02 23:14:56 +05:30
Jack Pham
f447dd3d32 usb: xhci: Free leaked command in case xhci_queue_stop_endpoint fails
commit e3020f3887 ("xhci-hub: Handle error condition with
xhci_stop_device") added error checking to xhci_stop_device()
if xhci_queue_stop_endpoint() returns an error. However, the
command structure allocated was not getting freed in that case.
Fix the leak.

Change-Id: Ibc28e32c9e2d402db0c47bfe759dd442d3ab184f
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-06-02 09:59:15 -07:00
Jack Pham
a4253a4598 usb: xhci: Avoid accessing dangling virt_dev in xhci_stop_device
In xhci_stop_device() the virt_dev pointer is assigned from the
device slot prior to acquiring xhci->lock and disabling IRQs.
This is an opportunity for a TRB_DISABLE_SLOT command to have
completed (e.g. in case the device was disconnected, or the port
was disabled) which would have called xhci_free_virt_device()
and freed the slot's pointer in IRQ context. Then after the
lock is acquired virt_dev may now be pointing to freed memory
and results in a panic.

Avoid this by moving the assignment

	virt_dev = xhci->devs[slot_id];

and NULL pointer check to after the lock is taken to ensure that
we don't race against xhci IRQ handler.

Change-Id: I4ac23fbfd3def0ad93967316b62c0c0cd19ca33f
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-06-02 09:59:15 -07:00
Linux Build Service Account
28bf2d8b6b Merge "msm: smmu: add re-route calling for specified iova." 2017-06-01 23:49:13 -07:00
Linux Build Service Account
defde44926 Merge "power: qcom: smb138x-charger: do not enable parallel thermal regulation" 2017-06-01 23:49:13 -07:00
Linux Build Service Account
985d03300d Merge "qpnp-fg-gen3: configure ESR timers dynamically based on charge termination" 2017-06-01 23:49:12 -07:00