Commit graph

577803 commits

Author SHA1 Message Date
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
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
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
Shiraz Hashim
adcf23cfd5 arm: dma-mapping: page align size before flush tlb
start and end must be page aligned while calling
flush_tlb_kernel_range else the last page may get
missed while invalidation.

Change-Id: Ibaab202c47a475623e197a13191b2fed638ce20b
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2016-11-10 04:32:42 -08:00
cyizhao
73ab722dc6 ARM: dts: msm: Add battery profile for FG in QRD interposer msmcobalt
Add battery profile for QRD interposer msmcobalt to
make sure FG could load it and work as expected.

CRs-Fixed: 1086571
Change-Id: I6ca20cbd29b9a7bd45a78321ea0f65b74450e8c1
Signed-off-by: cyizhao <cyizhao@codeaurora.org>
2016-11-10 19:56:44 +08:00
Wei Ding
4764fd0d2f ARM: dts: msm: Correct camera dtsi place for msmcobalt skuk device
Correct the camera dtis place to support multiple chipset
version for msmcobalt skuk device.

Change-Id: I20e12bc1597ad15cb3dc9c3ef18d81d039931e07
Signed-off-by: Wei Ding <weiding@codeaurora.org>
2016-11-10 19:23:22 +08:00
Utkarsh Saxena
e2fe16ac45 msm: ipa: Address overlap fix
No need to assert and return fault on
address overlap with respect to SMMU
enabled case.

Address overlap does not cause any
functional failure.

Change-Id: I5b0faa6e021f2463635e13625072e159ba558907
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2016-11-10 16:33:13 +05:30
Manoj Prabhu B
88a8c0ce10 memshare: Pass device structure to ramdump driver
The ramdump driver uses the device pointer during ramdump read.
This change passes in the device pointer for memshare during
ramdump create and moves the call to the probe function.

CRs-Fixed: 1079523
Change-Id: I687696dbedfa0ce7e6053d70291a7beb6f81f82e
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-11-10 14:53:20 +05:30
Taniya Das
d5540f87db ARM: dts: msm: Update clock gcc node for MSMfalcon/Triton
Modify the clock_gcc dummy clock to use the real clock controller for all
global clock controller clients.

Change-Id: Iac989d3c9312654b599d8299206e5478ca454861
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-10 14:17:04 +05:30
Abinaya P
d9a48a7cd2 Revert "input: touchscreen: Add synaptics v1 driver"
This reverts  'commit d13776d16a ("input: touchscreen: Add synaptics
v1 driver")'

Change-Id: I1c0c57de3319c59c094b9e8d9192995312192354
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-11-10 00:42:14 -08:00
Gaurav Kohli
d46e24b1fb ARM: dts: msm: Add IMEM pil entry for msmtriton
Add IMEM PIL entry to save relocatable address of images
loaded by PIL.

Change-Id: Ie09c8ae431cc7da4c8cd745d9c6d018e6a256158
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-11-10 00:25:33 -08:00
Gaurav Kohli
04d3e804c6 ARM: dts: msm: Add IMEM pil entry for msmfalcon
Add IMEM PIL entry to save relocatable address of images
loaded by PIL.

Change-Id: I79acd047c7e414ed19a2f992f8ff801b63c8a2ad
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-11-10 00:25:06 -08:00
Abinaya P
04e7c994ca Revert "input: touchscreen: synaptics v1.1"
This reverts 'commit 7112993181 ("input: touchscreen: synaptics v1.1")'
This change is not needed in 4.4 kernel.

Change-Id: I89ab8f353bc04bc0a04d5f5a6993e8e8e5ebbd2e
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-11-10 12:40:32 +05:30
Harry Yang
87bdf22ad7 qcom-charger: smblib: lower delay in OTG soft-start check
Currently, there is a delay of 20msec before raising OTG
current limit, which may be too long for some OTG devices and
cause unexpected issues.

Change it to 1ms or 2ms per HW timing.

Change-Id: Ie09a65e7974e2412af4add3b6f1e0aa20ee4a34b
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-11-09 23:01:53 -08:00
Amit Nischal
6278f25f01 clk: qcom: Add support to initialize & handle dynamic update for alpha plls
Add support to do initial configuration for alpha plls and votable
alpha PLLs need to have the fsm mode enabled as part of the
initialization using flag 'SUPPORTS_FSM_MODE'.

Alpha PLLs can support two kinds of input signals, normal and latched.
The normal input is directly passed to the core, while the latched input
requires a latch and acknowledge sequence to be performed for the
changed input to propagate.

Alpha PLLs can support dynamic update with both kind of input signals.
The ones which support this using a latched interface however need to
follow the latch/wait-for-ack sequence to be performed when the rate
changes. Mark these with a new flag 'SUPPORTS_DYNAMIC_UPDATE' to handle
this as part of clk_alpha_pll_set_rate().

PLLs could require post div to be set at runtime, add a vco_data which
could be used for these settings.

Change-Id: Ia0b9a2a52a3b33b7b68409c19c460d717eb5c1e2
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-11-10 10:06:47 +05:30
Subbaraman Narayanamurthy
08cbd79f44 regulator: qpnp-labibb: add support to configure PFM for LAB regulator
As per the hardware documentation, PFM needs to be disabled for
LAB regulator during slow start. When the display is turned off,
PFM needs to be disabled with the default current limit. When the
display is turned on, after VREG_OK interrupt fires, PFM needs to
be enabled after overriding the current limit. Add support for
it. Currently this is required only for pmicobalt.

While at it, fix the current limit configuration for LAB
regulator.

CRs-Fixed: 1024407
Change-Id: Icb3781ca31dd8474cfca077c52593dc69d011127
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
83dd0b0ca0 ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt
Set LAB's precharge time to max 500us to optimize the precharge
behavior as suggested in the hardware documentation.

CRs-Fixed: 1084297
Change-Id: I118f4254686caf498087847916b7710662ab31e7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
bcac9ef54a regulator: qpnp-labibb: Rename properties to reflect the vendor
Currently, some properties in LABIBB regulator driver are having
prefix "qpnp" which is not reflecting the vendor. Change it to
"qcom" to reflect the vendor name correctly and also match with
other DT properties.

CRs-Fixed: 1071971
Change-Id: I182dddc29f3d7c7b449b56ac7fb84e74061cf3a4
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00