Commit graph

580038 commits

Author SHA1 Message Date
Harry Yang
a5dea1fbd6 power_supply: Add BOOST_CURRENT property
This property will be used to indicate to the boost current
after the boost is turned on.

CRs-Fixed: 1095917
Change-Id: Ie667fa49c4a8e8c008e8866f655e3bbe3e69e156
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-12-07 10:18:04 -08:00
Ram Chandrasekar
64a7b2e649 msm: lmh_dcvsh: Support new API to notify scheduler
HLOS can place a mitigation frequency via the LMH DCVSh hardware using
the software cap register and this request doesn't trigger a debug
interrupt. Thus, this frequency mitigation change will not result in
scheduler being notified by LMH DCVSh driver.

Introduce a new API in LMH DCVSh driver, that can be used by other
drivers to trigger the scheduler notification. This API and the
interrupt handler follows the same code path to poll and notify the
scheduler.

Change-Id: Iefcdb57ff598ecb1bafc535958684f75b1f6e645
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-12-07 11:17:55 -07:00
Rupesh Tatiya
20d34be354 ARM: dts: msm: update wcn3990 node for msm8998 interposer
Disable qca, wcn3990 bluetooth node to avoid failure in bootup.

Change-Id: I7c6700a44c45360acf8aebc0ab9264c2e08abc8f
Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
2016-12-07 09:52:28 -08:00
Lokesh Batra
256de04b8d msm: kgsl: Add trace ID support for graphics coresight
Add the support for trace ID for coresight. This ID is
will be defined in the respective device tree file.

Change-Id: I78ba05ed05b54fdc0f4d4f55c468f90f39c821f1
Signed-off-by: Lokesh Batra <lbatra@codeaurora.org>
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-12-07 08:57:09 -07:00
Vijayavardhan Vennapusa
6e71895900 ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon
In order to share the usb audio qmi device iova with lpass usb audio
driver, attach usb audio qmi device to lpass q6 iommu using sid 6.

Change-Id: I6b3c9b49ac973f2472391b3f702908212e3f6e7d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-07 06:05:50 -08:00
Vijayavardhan Vennapusa
c5641f4d27 defconfig: msmfalcon: enable host CDC-ECM class support
Enable USB host CDC-ECM class support for msmfalcon.

Change-Id: I8b69e8590e3de1aa79469003633b8837451bf3ed
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-07 19:26:11 +05:30
Charan Teja Reddy
37e0cf7dc9 ARM: dts: msm: update the smmu device node configuration for msmfalcon
Update the SMMU device node configuration for correct operation of SMMU
on msmfalcon.

Change-Id: I29fa8f488df800d38f6403646e58a19e555ba1cd
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2016-12-07 17:57:21 +05:30
Vijayavardhan Vennapusa
56dacc3502 defconfig: msmfalcon: enable the USB video class support
Enable USB video class support for msmfalcon for host video usecases.

Change-Id: I30f8294527275a267bd88115a8a8d44beb2adfb8
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-07 17:30:16 +05:30
Ashay Jaiswal
a1478993cf defconfig: msm: msm8998: enable LCDB driver
LCDB driver exposes 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: I68958c5ecfb71a11f346c5c46884948e4b36eea0
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-12-07 17:18:18 +05:30
Anirudh Ghayal
375f27114e ARM: dts: msm: Add pinctrl configuration for PMFALCOM L6/9/19
BT and WLAN vote for the regulator-mode via pinctrl. Add
support for this.

Change-Id: I95158cce1b20778547615141ffbbb7d81d5e10a1
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-07 16:35:10 +05:30
Gaurav Kohli
2964fdc176 soc: qcom: pil: Use NULL check of resource pointer for restart register
In failure case pointer to resource for restart register may be used while
it is uninitialized. So use proper NULL check for the same.

Change-Id: I3fc77b72e825f4b11724808239eea16aa126de42
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-12-07 02:49:54 -08:00
AnilKumar Chimata
d7c3ca1390 defconfig: Add missing features for HW Encryption support
Enable SCSI_UFS_QCOM_ICE for msmfalcon_32 which is required
for hardware encryption.

Change-Id: I6f9afca5bebd5ad0745b064bb7d1a33f78fe6941
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2016-12-07 15:19:50 +05:30
AnilKumar Chimata
c8b3f11197 defconfig: Enable ext4 ICE encryption for msmfalcon_32
Enable EXT4_FS_ICE_ENCRYPTION feature for msmfalcon_32
to use ICE for FBE.

Change-Id: I991f3550720526b097c009dc852e9caaabf4860b
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
2016-12-07 15:19:49 +05:30
Vijayavardhan Vennapusa
7c480568b3 ARM: dts: msm: Add missing properties for USB node for msmfalcon
Add missing required properties for USB node for msmfalcon for
USB functionality to be working.

Change-Id: I602cac95616da34ffe6462c8cf3af85ce973085b
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-12-07 15:07:04 +05:30
Asutosh Das
ae8dff9cb7 phy: qcom-ufs: Modify the vdd-phy min-max range
There are 2 issues with setting the vdd-phy voltage:
1. The min & max range that's defined is 1v, whereas
   0.925 (+/- 5%) is the required voltage. A range of
   0.8v to 0.925v would suffice.
2. This defined range is over-ridden with the current
   rail-voltage. This assumes that some consumer has
   set the regulator to the correct voltage.

This change corrects the defined min/max range to
0.8v-0.925v for vdd-phy.
It also removes the code that's causing [2].

CRs-fixed: 1095116
Change-Id: I943bc4f38385036b21c1f9a2e479d6e94ac12813
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2016-12-07 01:32:35 -08:00
Anirudh Ghayal
6764573a87 ARM: dts: msm: Add VOL_UP node for MSMFALCON and interposer
PM2FALCON GPIO 7 is connected to VOL_UP key. Add the
PMIC and GPIO key configuration for GPIO 7.

Change-Id: Ie1dcc85f579e0b9817a104be86bbb9e91771b15c
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-07 14:57:20 +05:30
Weiyin Jiang
41417b2031 ASoC: msm: enable DAP set license logic on 8998
Since we move to GEF implementation for Dolby post processing,
disabling DAP/DAX2 driver logic on msm8998 target except for
license validation.

CRs-Fixed: 1094027
Change-Id: I33c5625026611856f6cdd8c6e0b5d7ef229ba8c7
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2016-12-07 16:20:08 +08:00
Udaya Mallavarapu
34cbae8bc5 media: dvb-core: Add feed state check before stop dvbdemux feed
Add feed state check whether any filter is configured on dvbdemux
feed before feed stop is called. If any filter is started the feed
status should be set to DMX_STATE_GO.

CRs-Fixed: 1090466
Change-Id: If9e87065bb9fb82befb398f2a3a0d0da2f76efa5
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
2016-12-06 23:52:08 -08:00
Venkatesh Yadav Abbarapu
57e1de214a ARM: dts: msm: Enable core hang detect feature on msmfalcon
Add core hang detect node for msmfalcon which enables the
core hang detect feature. Enable the same for msmtriton
also.

Change-Id: I108451bae429c8e4c858f7f549c4202f3d59a6d2
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-12-06 23:02:28 -08:00
Raju P.L.S.S.S.N
85d3b91231 ARM: dts: msm: Add PM support for msmfalcon
Add initial PM configuration necessary for SPM, LPM, MPM,
RPM stats to support msmfalcon.

Change-Id: Ia1e83fe40710e80156b049982e9a8421d04902a1
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2016-12-07 12:00:53 +05:30
Mohammed Khajapasha
15895e937f msm-core: use get_user() API to read userspace data/settings
Currently userspace data is getting accessed directly
and leading to crash, So use get_user() API to copy
userspace data/settings to kernel space.

Change-Id: I3a75ec9503d8207829640bf88e1c3160bf72c9f0
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
2016-12-06 22:03:48 -08:00
Zhenhua Huang
be5a91fa22 ARM: dts: msm: Modify QRD interposer dts file for msm8998
Update regulators for clocks and usb phy.

CRs-Fixed: 1096674
Change-Id: Ib205ccebaec612fd9d1d6bb1a02a4f14be8f21c1
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2016-12-06 21:41:38 -08:00
Taniya Das
3704dafda8 ARM: dts: msm: Update clock mmss node for MSMfalcon/Triton
Modify the clock_mmss dummy clock to use the real clock controller for MMSS
clock controller client. Use dummy clocks for RUMI platform.

Change-Id: I1ec9fe1d473be79ec0a54f2b8cacfc891f5be5bb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-06 21:09:01 -08:00
Taniya Das
eecdeb00e2 defconfig: Add support to enable MMCC clocks
Multimedia clock controller is required to be enabled for clocks
supported by multimedia clock controller clients.

Change-Id: I7fa2748c113870a20f0e01ae98faf391d195003c
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-06 21:08:55 -08:00
Linux Build Service Account
368fecd7df Merge "leds: qpnp-wled: Fix the APIs to read/write WLED registers" 2016-12-06 21:03:16 -08:00
Linux Build Service Account
58dbcd1ada Merge "thermal-core: Use rcu for accessing sensor list" 2016-12-06 21:03:16 -08:00
Linux Build Service Account
9b1012bb48 Merge "msm: sensor: Validationg function pointers before using them" 2016-12-06 21:03:14 -08:00
Linux Build Service Account
8ae6b25770 Merge "msm: camera: Notify TZ App about changes of the HW security mode" 2016-12-06 21:03:14 -08:00
Linux Build Service Account
3d58f0ce86 Merge "msm: ipa: enable suspend pipe for ODU" 2016-12-06 21:03:13 -08:00
Linux Build Service Account
47adc88bf6 Merge "input: misc: add condition check for ddic reset" 2016-12-06 21:03:12 -08:00
Linux Build Service Account
cf4badde33 Merge "input: ft5x06_ts: fix uninitialized references in ft5x06_ts" 2016-12-06 21:03:12 -08:00
Linux Build Service Account
288f3e2429 Merge "coresight: fix 32-bit compilation issues" 2016-12-06 21:03:11 -08:00
Linux Build Service Account
1fd7bd2ceb Merge "ARM: dts: msm: Update GPUCC clock frequencies for MSMtriton" 2016-12-06 21:03:10 -08:00
Linux Build Service Account
ec3428344a Merge "Revert "wil6210: prevent XTAL off in device bootloader"" 2016-12-06 21:03:09 -08:00
Linux Build Service Account
0d3136dec2 Merge "clk: Add vdd_class support for handoff and use_max_uV" 2016-12-06 21:03:08 -08:00
Linux Build Service Account
17bd9847d3 Merge "ASoC: msm8998: Add support for HiFi amplifier" 2016-12-06 21:03:07 -08:00
Jin Fu
a1ea995e14 ARM: dts: msm: add touch node for QTC800H in msm8998 QRD SKUK
Add touch device tree node for QTC800H panel in msm8998 QRD
SKUK board. Configure necessary power supply and gpio pins to
enable touch panel.

CRs-Fixed: 1097675
Change-Id: Ibbdb9857ea88ad65a6c3ac7c52925ab2d2c27797
Signed-off-by: Jin Fu <jinf@codeaurora.org>
2016-12-07 12:08:50 +08:00
Bhalchandra Gajare
224cef9688 ASoC: wcd934x-dsp-cntl: fix the reset sequence
Currently, whenever the codec DSP is reset, the CPAR hardware block
is not reset. This causes failure to boot DSP in good state. Update
CPAR reset sequence to ensure CPAR is put to reset when not in use.

CRs-fixed: 1091032
Change-Id: I77fea396fda6ee0eaaf0c68b11cf90f268ac1481
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-12-06 19:04:24 -08:00
Bhalchandra Gajare
5f30ee1cc5 ASoC: wcd-spi: fix clock disable request during shutdown
It is possible that there could be pending delayed request to disable
the clock while the manager driver has already raised shutdown event.
In such cases, the delayed clock disable request will be made after
shutdown, resulting in unclocked access on the SPI bus. Fix this by
intercepting the shutdown event to flush the clock votes and disable
the clock.

CRs-Fixed: 1091032
Change-Id: I53a3a9aa540c10932eed7fa29ce7c6050504a9a0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-12-06 19:04:08 -08:00
Alan Kwong
0b3d7c618b msm: sde: return success if no callback function in r1 ctl
Return success for sde_mdp_display_wait4comp if no callback
is setup in order to avoid returning non-zero error code.

CRs-Fixed: 1097957
Change-Id: Ic1fb20052a293878df09cd4f23cf3abe324cfbd3
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-12-06 16:13:17 -08:00
Puja Gupta
bf86c72be2 soc: qcom: pil: Initialize variable to avoid invalid access
Initialize dp_fw to NULL so that we don't try to release it in the
error path err_invalid_fw.

CRs-Fixed: 1095243
Change-Id: I18f549102e626dc788e8fa56d6bb1ea28efe4f88
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-12-06 16:08:54 -08:00
Abhijeet Dharmapurikar
8e4af976fa smb-lib: revert the boost back workaround for dc path
It is expected to get 3 switcher-power-ok interrupts in a span of 1
second for Wipower. This causes the boost back workaround to suspend
dc path.

The boost back problem was never seen on Wipower. Revert the boost
back workaround for Wipower until a proper fix is in place.

Change-Id: I81b4a3184a709a5328b04c389b0e5277d65a675d
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-12-06 16:07:14 -08:00
Subbaraman Narayanamurthy
16a7ab47a5 defconfig: msmcortex: remove unused charger drivers
Platforms that use msmcortex defconfig only use smb2 and
smb138x charger drivers. Remove the unused ones.

Change-Id: Icda32a2631f8e0c66e1803e8e7aa89b33da871b3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-06 15:24:07 -08:00
Subbaraman Narayanamurthy
58d7e90ef4 power: smb1351-charger: Fix ADC timer enum value for reading BATT_THERM
Currently, incorrect enum value for timer was passed to ADC for
reading BATT_THERM. Fix it.

Change-Id: Id8784fc3365e9010ada11ede31bdfb199ba52458
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-12-06 15:13:26 -08:00
Linux Build Service Account
69352ff8b4 Merge "soc: qcom: Check err_ready before returning from subsys_generic_handler()" 2016-12-06 14:33:56 -08:00
Linux Build Service Account
602d001468 Merge "ARM: dts: msm: Add BT node for QRD interposer msm8998" 2016-12-06 14:33:55 -08:00
Linux Build Service Account
e291dfcb9a Merge "soc: qcom: implement notify_tx_abort() callback" 2016-12-06 14:33:54 -08:00
Linux Build Service Account
3dc6ea3f90 Merge "soc: qcom: fix to avoid invalid memory access" 2016-12-06 14:33:53 -08:00
Linux Build Service Account
606a3e1dc0 Merge "ARM: dts: msm: Add the LCDB device node for PM2FALCON" 2016-12-06 14:33:52 -08:00
Linux Build Service Account
4aa28af5a2 Merge "defconfig: msm: falcon: enable LCDB driver" 2016-12-06 14:33:51 -08:00