Commit graph

578178 commits

Author SHA1 Message Date
Fenglin Wu
e146a32840 leds: qpnp-wled: Add support to configure VREF_CONTROL for pmicobalt
WLED module in pmicobalt has different VREF_CONTROL settings with current
WLED module which is existing in pmi8994/pmi8952, including min voltage,
max voltage, step size and default voltage. Add support for it.

CRs-Fixed: 1081738
Change-Id: Ibaa555cec8cfd296125af3e6277df5331f5c438b
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-11-11 14:19:05 +08:00
Tony Truong
55e95d956c msm: pcie: remove PCIe PHY and PARF dump in linkdown
Do not dump PCIe PHY and PARF register space when there is
a linkdown. By the time PCIe receives the linkdown interrupt,
the reset for PCIe PHY has already happened, so these registers
do not have any meaningful value.

Change-Id: I8f66ab9375fd42573a895d5d872a3d2e1782adee
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-11-10 18:26:29 -08:00
Tony Truong
c25e50abe9 msm: pcie: support configurable wr halt size for PCIe
Clients of PCIe determine the size and transfer speed of
incoming IP packets. In order to ensure ordering of all
packets, each client requires different PCIe write halt
sizes. Thus, make this PCIe setting configurable.

Change-Id: I208c8c83a8f5ee8efadf01175f60d70fb4bf48cf
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-11-10 18:25:33 -08:00
Hemant Kumar
32d27812ec usb: host: skip xHCI power management upon port suspend
xHC gets powered down when host mode is stopped. xHCI power
management is intended for ACPI based power management which
is defined for PC architecture. Hence there is no need to
clear run/stop bit and save the runtime register states upon
port suspend.

Change-Id: I9d0b31021e7c47084cd92c8c70e17cff3d057655
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-10 18:14:30 -08:00
Ajay Singh Parmar
44b187a8c5 msm: mdss: dp: handle fast attention events
Sink may issue attention event faster then it can be processed by
source. Create a list of attention events and process them one by
one in the order on workqueue to avoid missing any attention event
from sink.

Change-Id: I36fd45efe1aa9437d5551002fc75a5f37d9cef79
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-10 16:25:14 -08:00
Praneeth Paladugu
c9cfe96cea msm: vidc: Avoid unnecessary buffer requirements call
When clients make call to release buffers, driver is calling
buffer requirements to HW. Sometimes this can cause incorrect
state operation which can result buf_req failure. Hence avoid
this call.

CRs-Fixed: 1087935
Change-Id: I12873a92ed0b7157032c25946cce27349f2c2a1f
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-11-10 16:24:26 -08:00
Ajay Singh Parmar
25aad74929 msm: mdss: hdcp2p2: check for valid keys before authentication
HDCP authentication requires valid keys on the source device.
If keys are not present, authentication can never be successful.
Check if the device is provisioned with hdcp keys, if so, proceed
with the hdcp authentication on HDMI/DisplayPort cable connection
otherwise avoid authentication as it may result in unnecessary
re-authentication loop.

Change-Id: I391ee35fa20cfade89773ecb565b220cc6249b8d
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-10 16:21:02 -08:00
Saurabh Kothawade
71dfbe4bd6 msm: vidc: Invalidate cache for input buffers
During DQBUF, invalidate cache for input buffers
so that when clients access buffers, they read
updated values.

CRs-Fixed: 1088598
Change-Id: Id38e0dd5899fc0ec0d24e19061e458e6f28249e3
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
2016-11-10 15:42:12 -08:00
Avaneesh Kumar Dwivedi
edf9249e94 soc: qcom: Replace ARRAY_SIZE macro with strlen
ARRAY_SIZE returns size of array. While sending command string
we need to only pass size of actual command string, hence use
strlen in place of ARRAY_SIZE.

Change-Id: If0afc6b1209b03ae17472a17b34d9d403757bfd0
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-11-10 15:24:37 -08:00
Benjamin Chan
39e8fe5924 msm: sde: Fix SDE rotator context list locking
During rotator IRQ handling, it is possible that the context list
getting updated with open and close handling within the IRQ timeframe,
so it is necessary to add the spinlock to protect the context list.

CRs-Fixed: 1087423
Change-Id: I20a04c766e55c75db15662e9a13e20396b35f30e
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-11-10 18:24:00 -05:00
Linux Build Service Account
8a9006341d Merge "ARM: dts: msm: Enable memory allocation for diag on cobalt" 2016-11-10 15:14:42 -08:00
Linux Build Service Account
dd49b991fb Merge "defconfig: Enabling config INET_DIAG_DESTROY" 2016-11-10 15:14:41 -08:00
Linux Build Service Account
a39b207b2b Merge "memshare: Pass device structure to ramdump driver" 2016-11-10 15:14:40 -08:00
Linux Build Service Account
0307dd36e1 Merge "ARM: dts: msm: Update clock gcc node for MSMfalcon/Triton" 2016-11-10 15:14:40 -08:00
Linux Build Service Account
c819db3dd1 Merge "msm: kgsl: use seq_file for mem_entry debugfs" 2016-11-10 15:14:39 -08:00
Linux Build Service Account
1242c04867 Merge "ASoC: msm: qdsp6v2: add support for tx app type config" 2016-11-10 15:14:38 -08:00
Linux Build Service Account
8f000b7b8e Merge "ARM: dts: msm: Add IMEM pil entry for msmfalcon" 2016-11-10 15:14:37 -08:00
Linux Build Service Account
982cdaebe0 Merge "ARM: dts: msm: Enable memory allocation for diag on falcon" 2016-11-10 15:14:36 -08:00
Linux Build Service Account
2516911133 Merge "ARM: dts: msm: Add storage node for QRD interposer msmcobalt" 2016-11-10 15:14:35 -08:00
Linux Build Service Account
77ffe00486 Merge "qcom-charger: smblib: lower delay in OTG soft-start check" 2016-11-10 15:14:34 -08:00
Linux Build Service Account
68776a1e98 Merge "NFC: Detection of NQ chip set and firmware version" 2016-11-10 15:14:34 -08:00
Linux Build Service Account
208399ba94 Merge "ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt" 2016-11-10 15:14:32 -08:00
Linux Build Service Account
dc30c737b0 Merge "regulator: qpnp-labibb: Rename properties to reflect the vendor" 2016-11-10 15:14:32 -08:00
Linux Build Service Account
803c0239ee Merge "Revert "input: touchscreen: Add synaptics v1 driver"" 2016-11-10 15:14:31 -08:00
Linux Build Service Account
e0585898e5 Merge "Revert "input: touchscreen: synaptics v1.1"" 2016-11-10 15:14:30 -08:00
Linux Build Service Account
d981af487e Merge "usb: host: xhci: Replace msleep with usleep_range" 2016-11-10 15:14:30 -08:00
Linux Build Service Account
28f36ff3c2 Merge "smb138x-charger: expose CHARGE_TYPE in parallel psy" 2016-11-10 15:14:28 -08:00
Linux Build Service Account
369bd9844d Merge "ASoC: Change info logs to debug" 2016-11-10 15:14:27 -08:00
Linux Build Service Account
1681e23d60 Merge "ASoC: msmcobalt: clean up bootup errors" 2016-11-10 15:14:26 -08:00
Linux Build Service Account
70e8e56deb Merge "ASoC: wcd9xxx: clean up bootup errors" 2016-11-10 15:14:25 -08:00
Linux Build Service Account
73ab51e35d Merge "ASoC: msm: refactor machine driver for msmfalcon" 2016-11-10 15:14:24 -08:00
Linux Build Service Account
26ef63d686 Merge "qseecom: remove entry from qseecom_registered_app_list" 2016-11-10 15:14:23 -08:00
Linux Build Service Account
194d6b16aa Merge "ARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt" 2016-11-10 15:14:22 -08:00
Linux Build Service Account
d654f842d9 Merge "msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill" 2016-11-10 15:14:21 -08:00
Linux Build Service Account
a58e928724 Merge "USB: gadget: mtp: Make mtp_tx_req_len as Tx transfer length" 2016-11-10 15:14:20 -08:00
Linux Build Service Account
13840c574e Merge "msm: ipa: Add support to configure WAN RX desc size" 2016-11-10 15:14:19 -08:00
Linux Build Service Account
4dfa75b604 Merge "ARM: dts: msm: Disable lpm sleep modes for msmfalcon" 2016-11-10 15:14:16 -08:00
Veera Sundaram Sankaran
97d7b831de msm: mdss: fix race condition with overlay off in doze mode
When stop is called for doze mode, there is a race condition
between the stop thread and the retire signal work queue.
Fix race condition by making sure that driver waits for the
retire fence before calling the stop.

Change-Id: Icd9d5b14e4138e747f9483458da7ddb89f515c03
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-11-10 15:03:22 -08:00
Olav Haugan
45b8775b62 sched/core: Fix migrate tasks bail-out condition
Migrate tasks function is used by both hotplug and cpu isolation. During
hotplug all the cpus are stalled (in stop machine) while tasks are being
migrated. However, this is not the case during cpu isolation. A task
that was counted as a pinned thread might have been migrated off the
cpu. Take this into account when checking whether we have completed
moving all tasks off the runqueue.

Also ignore warning about tasks moving off the run-queue for isolation
use case.

Change-Id: I5c5f25eb9b1eaf0605b606a65e0ac86996fa5f27
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-11-10 14:19:05 -08:00
Olav Haugan
c82e2f73d1 core_ctl: Synchronize access to cluster cpu list
Cluster cpu list traversal is not properly protected against removal of
element by a separate thread. Add proper locking to ensure an element
cannot be removed while accessing the list.

In addition ensure we don't end up in a livelock never exiting the loop
due to hotplug continuously moving elements to the end of the list.

Change-Id: Ie98fe48c2f4fdd0244573229b77ee9823df9e214
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-11-10 14:19:00 -08:00
Sungjun Park
6eaec59433 ARM: dts: msm: Fix BT current leakage in msmcobalt MTP and CDP
There is a current leakage on S5 and LDO XO RF rail during
BT sleep. To prevent the current leakage, L7A/L17A/L25A
should be on during BT sleep. So, change L7A/L17A/L25A LDOs
from pin control version to SW control not to follow HW_EN2.
RFCLK2 has not been turned off during sleep and caused
extra current penalty. For RFCLK2 to follow HW_EN2 pin control,
clk_rf_clk2_pin should be used.

Change-Id: Ie316941535f62afd75eac21280061b489e9196c1
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2016-11-10 14:09:34 -08:00
Benjamin Chan
5edf4254fc msm: sde: Correct max downscale factor for SDE rotator
Max downscale factor for UBWC format is 4.0, and max downscale factor
for TP10/TP10_UBWC format is 2.0, and should be based on source format.
Also we need to add downscale factor capability reporting to allow
usermode driver to select correct scaling setting.

CRs-Fixed: 1086805
Change-Id: Id92eabf03c8dace1c0ff801504b8591e9121782d
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-11-10 13:52:59 -08:00
Subbaraman Narayanamurthy
361a315fe3 qpnp-fg-gen3: Fix empty SOC handling
Currently, a flag is set when the empty SOC interrupt fires to
indicate SOC 0 to the users. This is not cleared when the battery
voltage goes up. This needs to be fixed. Remove the flag and use
the realtime status of BATT_SOC peripheral to decide it. To make
that even more robust, validate the battery voltage with the
cutoff voltage. While at it, add a print in the driver's probe to
print the battery SOC and voltage. This will be helpful to debug
different battery charging scenarios.

CRs-Fixed: 1086715
Change-Id: Icbbe0d4ab74c6f9bf6f2278a11020a9bc6c41930
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-10 12:14:50 -08:00
Hemant Kumar
49ba0d0ad4 usb: core: Add support to skip extended bus resume delay
By default skip_extended_resume_delay module parameter
allows to skip extra 40ms delay upon usb bus resume.
This delay was added on top of host bus resume which
is driven for 20ms. Skipping extra delay reduces over
all bus resume latency.

Change-Id: I31a83abc057c345f29d204a63e7571b880678e69
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-10 11:14:27 -08:00
Hemant Kumar
286fd3fcbf usb: core: Replace msleep with usleep_range
Since usleep_range provides better accuracy in
comparison to msleep. This helps in reducing
the latency of host bus resume.

Change-Id: Ie8d5231327fcc27ab2a28542e0d96687abb9aace
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-10 11:14:26 -08:00
Derek Chen
c8c289d328 ASoC: msm: qdsp6v2: add support for tx app type config
Add support for TX path COPP calibration according to
app type configuration

CRs-fixed: 1015476
Change-Id: I0bcbfadb0c1a22529863a5c4b8cc5c53a1028915
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2016-11-10 08:05:08 -08:00
Naseer Ahmed
6b9dca0d13 ARM: dts: msm: Add physical dimensions for NT35597 panel
The physical dimensions are used to determine the DPI in the
framework. If these dimensions are not provided, the framework
assumes a default DPI value which may not be suitable for the
current panel and lead to some apps drawing incorrectly.

Change-Id: Ib14c5b9121190dded5071ff60ecf0be8e5e5c232
CRs-Fixed: 1079438
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2016-11-10 10:58:22 -05:00
Sarada Prasanna Garnayak
67383dc424 defconfig: enable QCOM_IRQ_HELPER for 32bit msmcobalt and msmfalcon
Fix the wlan host driver compilation error for the msmcobalt and msmfalcon
32 bit target. Enable QCOM_IRQ_HELPER config flag to expose IRQ balancer
APIs for msmcobalt and msmfalcon 32bit target.

CRs-Fixed: 1088388
Change-Id: Ieb72bd3779c3b9a372b469f3f7f571fc22294099
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-11-10 07:37:51 -08:00
Praneeth Paladugu
35f6387feb msm: vidc: Allocate raw packet memory one time
Today raw packet allocation is done every time when driver
is processing HW responses. For some reasons in system,
if this allocation takes long time, forward threads may
timeout. Hence allocate this memory one time and use it
while processing responses.

CRs-Fixed: 1086284
Change-Id: I1cca3f4cef34abd36b095b7ee0f32333c88fb939
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-11-10 07:09:33 -08:00
Dhoat Harpal
6998b685f2 soc: qcom: glink: Fix incorrect call to deinit function
In function glink_core_register_transport, deinit function for qos
configuration is called before initializing qos configuration.

Call to glink_core_deinit_xprt_qos_cfg function is removed.

CRs-Fixed: 1088375
Change-Id: Ifffab071efed56541e763e4f6f51aa45d7a6678b
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-11-10 20:24:36 +05:30