Commit graph

574569 commits

Author SHA1 Message Date
Osvaldo Banuelos
b1bdd7a44f ARM: dts: msm: remove APC CPR regulator handle names for msmcobalt
apc0_pwrcl_vreg and apc1_perfcl_vreg correspond to single
regulators powering the power and performance clusters,
respectively. Remove the incorrect regulator handle name for
APC1 CPR regulator device as well as the APC0 CPR regulator
handle name as both are unnecessary.

CRs-Fixed: 1054399
Change-Id: I936d2f0aa84ec247e070cbb46d525d8ae8ca698f
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-08-16 13:43:29 -07:00
Osvaldo Banuelos
55c5157df0 regulator: cpr3-regulator: support disabling CPRh hardware closed-loop
Allow disabling CPR hardware closed-loop operation via debugfs
on CPRh-compliant controllers. This can be done by setting
either cpr_closed_loop_enable or use_hw_closed_loop to zero.
Both flags must be set to reallow CPRh hardware closed-loop
operation.

CRs-Fixed: 1054095
Change-Id: Ib41f389ab168a747e705446dc621e512f6c95e1a
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-08-16 13:19:15 -07:00
Girish Mahadevan
d64c7bb096 serial: msm_serial_hs: Add extra delay during close with pending tx
In some cases the userspace can do a back to back write() followed by
close(). In such cases the tty framework does account for this by asking
the driver the status of the tx buffer and if not empty wait for a timeout
computed as a function of the current port baud rate.

However in some cases, this timeout doesn't seem sufficient, so when
checking the state of the tx buffer insert an extra delay if not empty
before returning to the framework. This will do a double wait at driver
and at framework, but this shouldn't adversely affect timing of usecases
and the flip side of having a pending byte in the tx buffer can result
in the peer hardware being left in a bad state.

Change-Id: I372e2e1c68f13f5d537ea33980eb63487f31d589
CRs-Fixed: 1044170
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2016-08-16 13:32:54 -06:00
Haynes Mathew George
4ca358c861 ASoC: msm: Enable use of noirq playback and capture
Enable use of noirq (i.e pull mode and push mode)
playback and capture.

Change-Id: I8edf1eb04ddb4e17c10cc722f30562d24ff1e718
CRs-Fixed: 1054967, 1035545
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
2016-08-16 12:26:22 -07:00
Haynes Mathew George
a76999c37d ARM: dts: msm: Add new pcm device node for msmcobalt
Add new pcm device node to use in the ultra low latency
path in noirq mode.

Change-Id: Icf2cb24f60558ffcd6d458e56d2ff967e9d33fa7
CRs-Fixed: 1054967, 1035545
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
2016-08-16 12:26:00 -07:00
Venkat Gopalakrishnan
4ec56cf5dd scsi: ufs: optimize clock gate work
In a case where gate work is called as part of cancel work
from ungate path the clk state would be marked as REQ_CLKS_ON.
There is no point gating the clocks and then end up turning
them ON immediately in ungate work, save time by skipping the
gate work and change the clk state to CLKS_ON as they are not
turned off yet.

Change-Id: I3e8edf979c94a8e0954fd77e0b158bec8902b4e9
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-08-16 10:49:53 -07:00
Linux Build Service Account
c5984ec85c Merge "ASoC: msmcobalt: Add dai-link for VI feedback" 2016-08-16 10:20:31 -07:00
Linux Build Service Account
06fdcdc800 Merge "ASoC: wcd934x: Enable VI path on WCD9340" 2016-08-16 10:20:31 -07:00
Linux Build Service Account
d2b49c5258 Merge "ARM: dts: msm: add support for msmcobalt v2 CPU clock frequency plan" 2016-08-16 10:20:30 -07:00
Linux Build Service Account
8c11c8ee97 Merge "ARM: dts: msm: Add VDD_APC0/APC1 CPR data for msmcobalt v2" 2016-08-16 10:20:29 -07:00
Linux Build Service Account
cee121e96b Merge "regulator: cprh-kbss-regulator: support per-rev fuse reference voltages" 2016-08-16 10:20:29 -07:00
Linux Build Service Account
f4f901330f Merge "clk: msm: Add memory barrier after reset assert/deassert" 2016-08-16 10:20:28 -07:00
Linux Build Service Account
d90a991268 Merge "ARM: dts: msm: Program venus clock gate 4 on msmcobalt" 2016-08-16 10:20:26 -07:00
Linux Build Service Account
a788d5ed56 Merge "msm: camera: isp: Set no memory retention" 2016-08-16 10:20:24 -07:00
Linux Build Service Account
0c50b41e40 Merge "msm: camera: cpp: Vote AHB with clock enabled and no mem retention" 2016-08-16 10:20:24 -07:00
Linux Build Service Account
0c58ca5d73 Merge "msm: camera: jpeg: Set no memory retention" 2016-08-16 10:20:23 -07:00
Linux Build Service Account
281eaadfac Merge "msm: camera: FD: Set no memory retention" 2016-08-16 10:20:22 -07:00
Linux Build Service Account
c19e021f99 Merge "msm: kgsl: Fix the ringbuffer wrap around logic" 2016-08-16 10:20:22 -07:00
Linux Build Service Account
442c0b0c36 Merge "icnss: Provide APIs for getting SMMU mapping context" 2016-08-16 10:20:21 -07:00
Linux Build Service Account
8af36c1199 Merge "ARM: dts: msm: Add smmu iova address and size for ICNSS" 2016-08-16 10:20:20 -07:00
Linux Build Service Account
4d21c223c0 Merge "defconfig: arm64: msm: Enable IPA unit-test framework" 2016-08-16 10:20:19 -07:00
Linux Build Service Account
158c9fddaa Merge "msm: kgsl: Disable RB sampler data path optimization" 2016-08-16 10:20:18 -07:00
Linux Build Service Account
02a6f0f1c2 Merge "ARM: dts: msm: Add SMP2P entries for MSMFALCON" 2016-08-16 10:20:16 -07:00
Linux Build Service Account
559e927d18 Merge "firmware: qcom: tz_log: fix incorrect datatype for warm_jmp_addr." 2016-08-16 10:20:16 -07:00
Linux Build Service Account
70b235f223 Merge "ARM: dts: msm: Set no memory retention on msmcobalt" 2016-08-16 10:20:14 -07:00
Linux Build Service Account
95556f4f77 Merge "msm: vidc: Set no memory retention for video clocks" 2016-08-16 10:20:14 -07:00
Linux Build Service Account
cb9cd4c107 Merge "msm: vidc: Compile vidc driver as LKM" 2016-08-16 10:20:13 -07:00
Linux Build Service Account
c0e5d29eac Merge "ARM: dts: msm: Route to sw crypto for hmac and aead on msm8996" 2016-08-16 10:20:12 -07:00
Linux Build Service Account
965134364c Merge "msm: camera: Add support for reading new property tag" 2016-08-16 10:20:11 -07:00
Aravind Venkateswaran
0754aea0fd ARM: dts: msm: configure CX voltage levels from MDSS for msmcobalt
Configure the minimum voltage level for the CX regulator to be LOW_SVS
whenever the display panel is on. This overcomes panel lock-ups seen
during idle-screen use cases when low-power states are programmed.

CRs-Fixed: 1053687
Change-Id: I0432111cb8581925b82c02b5944285855a92ca62
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-08-16 10:15:28 -07:00
Devesh Jhunjhunwala
2ad57cd576 ARM: dts: msm: Fix regulator name for pmicobalt flash
Rename the regulator used for pmicobalt flash from
pmicobalt_bob to pmcobalt_bob.

Change-Id: I73860ab4db976b7c903f1e90134febb4bd9d297a
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:54:04 -07:00
Devesh Jhunjhunwala
ecea159153 leds: qpnp-flash-v2: Update flash_prepare API
Update the flash prepare API to handle the DISABLE_REGULATOR
option, and include support to return the max_current value
in a parameter instead of the return value.

CRs-Fixed: 1043718
Change-Id: Ief86531658cd0e72ceeae062d29133d5505eb5cf
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:54:03 -07:00
Devesh Jhunjhunwala
717ccf3d01 leds: qpnp-flash-v2: Add support for voltage headroom
Add support to use the flash led current values to calculate
the voltage headroom to use for the maximum current query
algorithm.

CRs-Fixed: 1043718
Change-Id: I823276f75247a67f4a3dd2d6d333c19196b26063
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:54:03 -07:00
Devesh Jhunjhunwala
7cbd003676 ARM: dts: msm: Enable flash current thermal mitigation for pmicobalt
Add device tree properties to enable flash current mitigation
and specify the current limits to use for the different thermal
OTST levels.

CRs-Fixed: 1043718
Change-Id: Iaff6bbf6d7c17ebd6937dbfd91cbabcf09dee118
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:54:02 -07:00
Devesh Jhunjhunwala
49d96e8bc7 leds: qpnp-flash-v2: Add support for thermal current mitigation
Based on the thermal thresholds triggered, use the LUT to
limit the maximum available flash current.

CRs-Fixed: 1043718
Change-Id: I456d6491987183e07eba921edc826ff801fdeee3
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:54:02 -07:00
Devesh Jhunjhunwala
f816e044c2 leds: qpnp-flash-v2: Add support for LMH mitigation
Based on the LMH trigger thresholds read from device tree
and the battery properties read from fuel gauge, trigger LMH
pre-emptive current mitigation if required.

CRs-Fixed: 1043718
Change-Id: I54e7670a880f862b6619d22f843c8fa13fd0b303
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:53:58 -07:00
Devesh Jhunjhunwala
5ee78edab2 leds: qpnp-flash-v2: Implement max_current_query API
Update the max_current_query stub to calculate the maximum
available current for flash based on the battery properties
read from fuel gauge.

CRs-Fixed: 1043718
Change-Id: I88fd40c449852704361ae3ed3e8223e1e9b3fe74
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-16 07:51:41 -07:00
Alan Kwong
9e7fe79e5b msm: sde: add format enumeration based on rotator version
Current pixel format enumeration reports pixel format supported
by driver, and may include formats not supported by underlying
hardware.  This patch reorganizes pixel format enumeration to
report hardware supported pixel formats based on hardware version
as well I/O port direction.

CRs-Fixed: 1054825
Change-Id: I1e42b11b43f69dba4a5ac68cfdfb8305136a307c
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-08-16 08:50:51 -04:00
Amir Samuelov
1b18025150 spcom: avoid false error message on spcom_device_release()
Typically, spcom device nodes are associated with a glink channel.
However, /dev/spcom and /dev/sp_ssr have other purposes,
and they are not associated with a channel.
Avoid error message when user call file close()
for /dev/spcom and /dev/sp_ssr.

Change-Id: I5dd55ad3c7ff93efb2e332fcab49b58cbc177c90
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-08-16 05:08:02 -07:00
Mohan Pallaka
a5b633b984 input: ft5x06_ts: Add debugfs support
Add debugfs support to provide addr and data
entries to read registers from controller.
Writing into the registers is not supported
as it might corrupt controller. Also add suspend
entry to dynamically test suspend and resume.

This patch is propagated from 3.18 kernel
'commit 0804395c18d8 ("input: ft5x06_ts: Add
debugfs support")'
Change-Id: If61bbbefdbf624f62b07c2a96d28c8338bd948c1
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-16 04:26:53 -07:00
Gaurav Singhal
8e0e68f525 NFC: Set enable gpio to low
If ese gpio is not present on target, and we disable
NFC then enable gpio should be set to LOW.

Negative gpio value is invalid case, we should avoid
gpio free for error scenario.

Change-Id: I87c890bbb66ee683129f062a2aa4c8d95d5c93ee
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
2016-08-16 15:33:20 +05:30
Yongqin Liu
7347d84f27 quick selinux support for tracefs
Here is just the quick fix for tracefs with selinux.
just add tracefs to the list of whitelisted filesystem
types in selinux_is_sblabel_mnt(), but the right fix would be to
generalize this logic as described in the last item on the todo list,
https://bitbucket.org/seandroid/wiki/wiki/ToDo

CRs-Fixed: 1054492
Change-Id: I2aa803ccffbcd2802a7287514da7648e6b364157
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
(cherry picked from commit 3a343a1540)
Signed-off-by: Biswajit Paul <biswajitpaul@codeaurora.org>
2016-08-15 23:45:11 -07:00
Maya Erez
f842d65461 wil6210: fix HALP handling in case of HALP vote time-out
In case HALP vote times out, we need to mask the HALP IRQ, as done
in case the interrupt is received, as this interrupt should be
set until completion of the low latency operation.

Change-Id: I2b514bd161b584b9e71d0e33db1f66dfbd06bb9c
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-08-16 09:06:00 +03:00
Praneeth Paladugu
c4c017aa80 ARM: dts: msm: Increase VMEM vote for some resolutions
VMEM ab vote from video driver found to be not enough for 1080P
encode on Cobalt. Hence increase to get expected performance.

CRs-Fixed: 1054436
Change-Id: I787816f17028bea49cef3891cf4f389001b7f008
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-08-15 20:00:41 -07:00
Praveen Chavan
8329f19d9f msm_vidc: venc: configure max-B-frames only if B is enabled
If B frames are initially enabled and disabled at the time
of configuration, max-B-frames will retain the non-zero value
set at the time of enablement. Explicitly reset max-B-frames
when B frames is set to zero, otherwise this setting may
interfere with other exclusive features (like temporal layers)

Change-Id: Iefa9b5b2becd0c0f4756fa81a396e3af0c45022a
Signed-off-by: Praveen Chavan <pchavan@codeaurora.org>
2016-08-15 18:22:43 -07:00
Hemant Kumar
25f4705f63 ARM: msmcortex_defconfig: enable vendor device specific HID support
This change enables plantronics usb head set specific HID driver
support.

Change-Id: I5b25a99269d3374bc4bc58c734bb64f0418f08f8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-15 18:17:15 -07:00
Devesh Jhunjhunwala
8926723474 clk: msm: gcc-cobalt: Remove support for wcss clocks
The wcss clocks are not owned by APCS, and thus should not
be modelled in the clock driver.

CRs-Fixed: 1054449
Change-Id: I7677bef6a58c028876b72dbade37c1064b428ee2
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-08-15 17:30:47 -07:00
Puja Gupta
4fe225dbd9 soc: qcom: Fix compilation warning/error
Fix couple of compilation error for service-locator when Kconfig option
is not enabled.

CRs-Fixed: 1048345
Change-Id: I5eb1318d1e3a62619869033b36479c4e68f1602f
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-08-15 17:25:17 -07:00
Skylar Chang
55625a2f55 msm: ipa3: not configure ipa_rx_hps registers
In order to not violate SMMU policy on
msmcobalt, IPA3 needs move resource group
configuration from HLOS to TZ for those
ipa_rx_hps registers.

Change-Id: If9968c319f86ef66571fa8fcbb952910fabec5ad
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-08-15 17:19:06 -07:00
Aravind Venkateswaran
d8000fe740 msm: mdss: update voltage level configuration for CX supply
Read the minimum and the maximum voltage levels for the CX supply
from the device tree and use those values to program the CX supply.
This allows for flexibility in configuring the levels across
multiple targets.

CRs-Fixed: 1053687
Change-Id: Ib704bfa6c6ca9fc3d90ab76a2e4aef02dc48822a
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-08-15 17:17:31 -07:00