Commit graph

578906 commits

Author SHA1 Message Date
Linux Build Service Account
52e3de8183 Merge "ARM: dts: msm: Enable CX Ipeak Mitigation for MSMFALCON" 2016-12-06 14:33:16 -08:00
Linux Build Service Account
0d2f3573dc Merge "ARM: dts: msm: Make required changes for Modem PIL for MSMFALCON Interposer" 2016-12-06 14:33:14 -08:00
Linux Build Service Account
854e465e5f Merge "ARM: dts: msm: Add vmem slave bus usecase to vmem in msm8998" 2016-12-06 14:33:13 -08:00
Linux Build Service Account
c0ebe0a103 Merge "msm: vidc: Fail qbuf and prepare_buf incase of error" 2016-12-06 14:33:13 -08:00
Linux Build Service Account
2acbcf88e8 Merge "msm: vidc: change format specifier for size_t" 2016-12-06 14:33:12 -08:00
Linux Build Service Account
9b43b8e0c0 Merge "clk: msm: clock-osm: set SEQ_REG(32) to L_VAL of corner in LEVEL_3_UP_VC" 2016-12-06 14:33:11 -08:00
Linux Build Service Account
ee899f34df Merge "phy: qcom-ufs-qmp-v3: increase the minimum time in hibernate" 2016-12-06 14:33:10 -08:00
Linux Build Service Account
01ee9b7c17 Merge "ARM: dts: msm: Add ERP device definition on msmtriton" 2016-12-06 14:33:09 -08:00
Linux Build Service Account
ca92144aa0 Merge "ARM: dts: msm: Add ERP device definition on msmfalcon" 2016-12-06 14:33:08 -08:00
Linux Build Service Account
ca5c3769db Merge "ARM: dts: msm: Add cpu cache nodes for msmtriton" 2016-12-06 14:33:08 -08:00
Linux Build Service Account
60d32cc86f Merge "soc: qcom: glink: add NULL check for edge_ctx" 2016-12-06 14:33:07 -08:00
Linux Build Service Account
fec46a2e93 Merge "msm: camera: isp: Check reg update miss only for PIX stream" 2016-12-06 14:33:03 -08:00
Linux Build Service Account
dfa7baf83a Merge "msm: camera: isp: Dual camera sync feature" 2016-12-06 14:33:03 -08:00
Linux Build Service Account
a9ec3bd6f8 Merge "ARM: dts: msm: Front camera config for msmfalcon interposer" 2016-12-06 14:33:02 -08:00
Linux Build Service Account
12c33fabcb Merge "msm: mdss: dp: fix parity byte calculation" 2016-12-06 14:32:57 -08:00
Skylar Chang
c03f0ace8a msm: ipa: enable suspend pipe for ODU
For ODU bridge use case ODU CONS pipe should be suspend
if there is no data activity to make sure IPA clocks will be
voted on downlink traffic

Change-Id: I6625eb082d55456e0f71afa8fc6ebdba3f6024a5
CRs-Fixed: 1095287
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-12-06 11:06:53 -08:00
Amir Samuelov
d9d2c405d4 spcom: check buf size for send modified command
Check buffer size validity before allocating kernel buffer.

CRs-Fixed: 1094140
Change-Id: I8c280b60f316d7bae87644104d18aa7df4af9efe
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-12-06 18:18:16 +02:00
Amir Samuelov
0c0622914b spcom: check buf_size validity for user send command
Check command buf size before allocating kernel buffer.

CRs-Fixed: 1094078
Change-Id: Ib03cd8c79966ff35863c1bde99089cac018ab45c
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-12-06 16:42:14 +02:00
Jayant Shekhar
cb6c4678e7 msm: mdss: Clear compat structures before copying to user
In the compat layer, the temporary structures used to convert
data from 32bit to 64bit structures need to be set to 0 before
being assigned values.

CRs-Fixed: 1088206
Change-Id: I04497bc11e01c3df4beadfd6d9b06ab4321f1723
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2016-12-06 17:07:01 +05:30
Alexander Kolesnikov
00eeb9eed0 msm: camera: Notify TZ App about changes of the HW security mode
The change adds a mechanism to send a notification down to TZ App
upon changes in the camera HW blocks security mode.

Change-Id: Iabc62e9e484717920bfec74a8799de3900a7215e
Signed-off-by: Alexander Kolesnikov <akolesni@codeaurora.org>
2016-12-06 12:21:35 +02:00
Taniya Das
ee834658a5 ARM: dts: msm: Update GPUCC clock frequencies for MSMtriton
Few frequencies for GPU clock node requires to be updated, so add the same.

Change-Id: Ie3e7929def7b4e77edc33297f8c30a0bcd07bcce
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-06 15:50:08 +05:30
Jin Fu
92a038f916 input: misc: add condition check for ddic reset
LCD can control DDIC reset by itself, so add condition check
and allow not to define DDIC reset pin in device tree.

CRs-Fixed: 1097675
Change-ID: I802bb0ecc86349c7e0380b54811bfae776a41f49
Signed-off-by: Jin Fu <jinf@codeaurora.org>
2016-12-06 17:40:40 +08:00
zhenchao
0f08df7743 ARM: dts: msm: Add BT node for QRD interposer msm8998
Add bluetooth node for msm8998 interposer platform using
msmfalcon QRD. Configure bluetooth power supply based on
the QRD PMIC PMFALCON/PM2FALCON. Disable qca,wcn3990
Bluetooth node to avoid failure in bootup.

CRs-Fixed: 1088153
Change-Id: I00527f465b9251d1329ca3c783cafeafadfce8f2
Signed-off-by: zhenchao <zhenchao@codeaurora.org>
2016-12-06 14:36:57 +08:00
Sreesudhan Ramakrish Ramkumar
2cd4abda5a msm: camera: isp: Fix HVX streaming after crash
If user space process crashed, hvx state is not updated since it is
updated during stream off (which never gets called during stream off).
When camera is opened after crash, HVX configuration is not reset.
This leads to data routed to HVX even if its disabled. Update HVX
state during stream ON and configure HVX with enable / disable to
fix the issue.

Change-Id: I4b9cbba1261eafd83c67275c5d7dc3defbb3d990
Signed-off-by: Sreesudhan Ramakrish Ramkumar <srramku@codeaurora.org>
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-12-05 22:10:23 -08:00
Taniya Das
b25e6ff335 clk: qcom: gpucc: Update gpu clock support for msmtriton
The gpu clock frequencies are different from the current supported
frequencies, so update the same.

Change-Id: I78e3b241390f9f5c7d8600d8ce933d9ffc9845fa
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-06 11:31:31 +05:30
Himanshu Aggarwal
b5393028e1 input: ft5x06_ts: fix uninitialized references in ft5x06_ts
Fix uninitialized references in ft5x06_ts driver, found
during static analysis of the code.

Change-Id: I15e248dd9bb3673c21d31acea69a1e892eff51b0
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-12-05 21:54:48 -08:00
Taniya Das
8c348bebe1 clk: Add vdd_class support for handoff and use_max_uV
Some dedicated power rails do not require a max voltage vote during bootup.
Allow clock drivers to skip handoff for the corresponding VDD classes.

Multiple vdd_class structures might share same set of regulators. If the
FMAXes for these different vdd_class structures do not have the same level
vote, there could be a conflict when setting voltage on the regulator.
Add a flag use_max_uV to vote for INT_MAX as max_uV when calling
regulator_set_voltage(). Constraints in the regulator driver make sure that
the final voltage meets the requirement of that regulator's operational
range.

Change-Id: I15c9dc3ecf907723a136cbe90597ccafeba91af0
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-06 10:32:05 +05:30
Subbaraman Narayanamurthy
fdacf60f19 ARM: dts: msm: Specify the WLED interrupts properly for pmi8998/pm2falcon
Currently, WLED short-circuit fault interrupt is not specified
properly for pmi8998 and pm2falcon. Fix it. Also, specify the
WLED over-voltage fault interrupt which is needed. Remove the
address definitions of LAB and IBB which are not present in
WLED driver anymore.

Change-Id: Ia767b3f545fae04a08dc48c6d2bb5649b2ac4907
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-05 20:54:03 -08:00
Rohit Kumar
48cf12d6e4 ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data
Add mutex_lock in afe_map_cal_data around afe_cmd_memory_map to
avoid update of this_afe.status by afe_set_lpass_clk_cfg afe callback.
This fixes the failure of afe_cmd_memory_map waitqueue to enter into
sleep when wait_event_timeout is called as this_afe.status is already
zero leading to invalid map_handle.

CRs-Fixed: 1094151
Change-Id: I4833253803c162c98578ba7ce599ea1edafc1724
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2016-12-05 20:52:49 -08:00
Subbaraman Narayanamurthy
126ffb778d leds: qpnp-wled: Handle OVP fault interrupt properly
Sometimes, OVP fault interrupt fires as soon as WLED module is
enabled. This does not really represent a harmful event. Hence
add support to enable OVP fault interrupt 10 mS after enabling
WLED module so that the soft start is completed. Keep the OVP
fault interrupt disabled when the module is disabled.

While at it, print the fault status from both OVP and short
circuit interrupt handlers which might be useful.

Change-Id: If3c264c6e3a2bf4b23069c0960b354f7967ecb4c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-05 20:52:25 -08:00
Chinmay Sawarkar
254699d026 msm: vidc: Disable clocks in reverse order
Clock must be disabled in the reverse order in which
they are enabled. If enable/disable is unbalanced,
we may trigger CLK warnings or instability.

Change-Id: I4f0a0f21385c9fbf7df004dbf7abba9cb00a2448
CRs-Fixed: 1091417
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
2016-12-05 18:41:27 -08:00
Liam Mark
3991501f31 iommu: dma-mapping-fast: add support for DMA sync single APIs
Implement the fast map DMA sync single APIs.

Change-Id: I1b785c7c441e53fa0b2e0fa784ff8afed8afceb9
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-12-05 13:42:00 -08:00
Maheshwar Ajja
fa23f759bf msm: vidc: remove redundant init_completion() calls
Video driver is doing init_completion() for all completion
events in msm_vidc_initialize_core() and msm_vidc_open().
So there is no need of calling init_completion() again before
waiting for completion event and hence remove them.

CRs-Fixed: 1095803
Change-Id: Iedd9c4c0763c29b26e91e261d9a8d0e4e24b7bb2
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
2016-12-05 12:30:23 -08:00
Subbaraman Narayanamurthy
d166772079 Revert "input: powerkey: don't send dummy release event"
This reverts commit d796ae6e8878daecf855d23658c546aeef506142
("input: powerkey: don't send dummy release event") which was
added as a workaround to ensure that keys held during resume
were not artificially released by the input framework. This
issue is already resolved by commit 768d9aa557
("Input: don't call input_dev_release_keys() in resume").

Change-Id: I542837eddce7cb1ffba55c3e5d6b2e5bd12c9e62
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-05 11:52:09 -08:00
Subbaraman Narayanamurthy
6fbee0d3f2 input: qpnp-power-on: Configure debounce delay for PON GEN2 properly
Debounce delay range and hence the bit encodings got changed in
PON GEN2 peripheral. Fix qpnp_pon_set_dbc() to configure the
debounce delay properly.

CRs-Fixed: 1097089
Change-Id: Ia3d474a04e11c7d16a1507d65e99001cf844947b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-05 11:52:08 -08:00
Sudheer Papothi
e36bea71e2 ASoC: msm8998: Add support for HiFi amplifier
HiFi amplifier uses lineout path and routed to headphones.
This is used for better quality of audio on headphones. Add
support to enable HiFi amplifier on msm8998.

Change-Id: I3f2cadbb74b3a68d91938f20afff2ab0ab42b4bd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-12-05 10:43:43 -08:00
Sudheer Papothi
10f9ebb4d4 ARM: dts: msm: Add pinctrl device nodes for HiFi amplifier on MSM8998
HiFi amplifier uses lineout path in the codec to be routed to
headphone amplifiers. This routing needs two gpios to be
toggled. Add pinctrl device nodes to control gpios for
HiFi amplifier usecase.

Change-Id: I8d34eecd562ab50a8ec89f241406092d1b763a9a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-12-05 10:43:05 -08:00
Sureshnaidu Laveti
84335e9211 msm: sensor: fixing errors due to csiphy clock release
csiphy clock being released during initialization even
in success case due to which enabling clk returns error,
so fixed to release only whene there failures in other
functionality.

Change-Id: I9a7618850e45bd78f74fb2833932e3f4fd776392
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2016-12-05 06:33:20 -08:00
Hamad Kadmany
15b90070a5 Revert "wil6210: prevent XTAL off in device bootloader"
This reverts commit 05f7adbb9d
("wil6210: prevent XTAL off in device bootloader").

Original commit was found to be causing flood of WMI MBOX
interrupts while device is being reset.

CRs-Fixed: 1097247
Change-Id: If7cee7d36230225621ea74bca8ebb0e1077b94e6
Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
2016-12-05 16:20:16 +02:00
Xiaojun Sang
713c5979d0 ASoC: soc: add a new dailink for VI recording
SLIMBUS 4 TX is used for speaker protection. To enable VI
recording without breaking speaker protection, a new dailink
is added as non-hostless.

CRs-Fixed: 1087025
Change-Id: I440b7826fb5fd4fbd55831c1e89b9b010f3b948c
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-12-05 21:50:32 +08:00
Xiaojun Sang
641fb2817f ASoC: soc: qdsp6v2: add support for slimbus VI recording
Add a new dailink for slimbus VI sense recording.
SLIMBUS_TX_VI and SLIMBUS_4_TX can coexist.
VI recording and speaker protection cannot work
simultaneoulsy due to shared physical afe port.

CRs-Fixed: 1087025
Change-Id: If074b7042e09d1e69147546461e6fa42d427350e
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-12-05 21:47:34 +08:00
Xiaojun Sang
9f45a559c7 ARM: dts: msm: add sb_4_tx_vi to support VI recording at msm8998
Slimbus 4 carries V-sense and I-sense signal from speaker.
For VI sense recording, sb_4_tx_vi is added.

CRs-Fixed: 1087025
Change-Id: I49842df0af73a3124e734632dc3c314e6f5761a1
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-12-05 21:44:50 +08:00
Srinivas Ramana
693e2cde51 ARM: dts: msm: Add device tree for msmfalcon CDP, MTP & RCM
Add initial device tree support for CDP, MTP and RCM
platforms of msmfalcon.

Change-Id: I2e4591c50fe3db61ed3a4364647579bf254d0edd
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-12-05 19:04:48 +05:30
Anirudh Ghayal
751178dfbd ARM: dts: msm: Add the LCDB device node for PM2FALCON
LCDB supports the LCD display +ve/-ve bias. Add the device
node for it.

While at it, disable the LCDB module for PM3FALCON and remove
the dummy bias regulator nodes from falcon interposer.

CRs-Fixed: 1074468
Change-Id: I0aa4736aa0f2d6c6fe3b2e0d19c41df80c0975fe
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-05 18:37:56 +05:30
Ashay Jaiswal
b8985ec598 defconfig: msm: falcon: enable LCDB driver
LCDB driver exoses regulators to control the positive and
negative voltage bias for the LCD display panel. It also
allows configurability for the various bias-voltage parameters.

CRs-Fixed: 1074468
Change-Id: Id3c0eccd95d5e510489ee74b3043082b7e473daa
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-12-05 04:27:04 -08:00
Anirudh Ghayal
6da3d343b0 regulator: qpnp-lcdb: Add the QPNP LCDB regulator driver
QPNP LCDB regulator driver supports the LCD display
bias configuration. It exposes 2 regulators to control
the positive and negative voltage biases.

CRs-Fixed: 1074468
Change-Id: I069dc61ee4fc5d56aff2b836f06fa7246285e42a
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-05 04:26:56 -08:00
Ashish Garg
2830c4e594 ARM: dts: msm: add mdss dsi nodes for msm8998 v2.1 interposer
Add the power supplies to vote for max supported voltage on the
regulator for mdss dsi. Also add mdss dsi node for the msm8998
v2.1 interposer.

Change-Id: I84cae6e7816834dfce0839faa41903f2f871782d
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
2016-12-05 16:46:27 +05:30
Avaneesh Kumar Dwivedi
18abc31c71 soc: qcom: pil-q6v5: Update cx_max to INT_MAX while voting for CX rail
To support a higher GPU frequency on MSM8937 Pro target the CX rail
expects TURBO_HIGH voltage level. So while requesting regulator voltage
for CX rail request with max value set as INT_MAX.

Change-Id: I47eb863c4b384bb12e2ff21c44104847b0baa7ee
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-12-05 16:17:12 +05:30
Ashwanth Goli
0eae0412f8 defconfig: Enable config IP_NF_MATCH_RPFILTER
Enable config IP_NF_MATCH_RPFILTER.
This option allows you to match packets whose replies would go out via
the interface the packet came in

Change-Id: I2a23346e726a8df8487aeb664d6316b3cf2b9d77
Signed-off-by: Ashwanth Goli <ashwanth@codeaurora.org>
2016-12-05 14:53:19 +05:30
Rajesh Kemisetti
58b88b8933 msm: kgsl: Dump VBIF and few GPU registers before crash dumper
Triggering Crash Dumper might actually change the values of
few GPU registers including VBIF. Hence dump those registers
ahead and skip them from the list which goes to crash dumper.

Change-Id: I37a53983a65bd8abfefa780053819de71df7f24f
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2016-12-05 00:42:46 -08:00