Commit graph

575689 commits

Author SHA1 Message Date
Revathi Uddaraju
ab56d1f7bb ASoC: msm: qdsp6v2: Update device mapping for 7 channel
Add support for adm 7 channel mapping.

CRs-Fixed: 1045949
Change-Id: I85b36357bbb097b79f417c11c947f3405f0ff7ef
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2016-09-28 03:09:32 -07:00
Sureshnaidu Laveti
f1e5322784 msm: sensor: validate the i2c table index before use
Verifying the i2c table index value before accessing
the i2c table to avoid memory corruption issues.

CRs-Fixed: 1065916
Change-Id: I0e31c22f90006f27a77cd420288334b8355cee95
Signed-off-by: Sureshnaidu Laveti <lsuresh@codeaurora.org>
2016-09-28 01:24:57 -07:00
Shantanu Jain
4bfc4cac73 input: touchscreen: Change dev_pm_ops for Goodix driver
Convert the driver to dev_pm_ops from SIMPLE_DEV_PM_OPS
in Goodix TS driver to reduce suspend/resume latency.

Change-Id: I45690b239c73f636538b864f0c4a7e539a02eedb
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-28 13:22:05 +05:30
Amir Samuelov
82bf612671 soc: qcom: pil: add PBL spare error status
The PBL spare status registers provide more info
about the reason for PBL failure.

Change-Id: I1dddc7df26caa1556e57128603afd32b2613ebde
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-09-27 23:33:48 -07:00
Meng Wang
e8a912f601 ASoC: wcd934x: Add support for digital core power collapse
When no audio use-cases are active, codec digital core
can be put into power collapse to reduce the power consumption
during codec stand-by. Add support to put core into power
collapse and remove out of the collapse when audio use-cases
are triggered.

CRs-Fixed: 1063742
Change-Id: I0314b7319f2ef02d6125b77e68bf47d065521f6a
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-28 14:20:15 +08:00
Dhanalakshmi Siddani
490c4e45d7 ASoC: msm: qdsp6v2: add routing map for multimedia6
HFP client call is not working on external codec over I2S
as backend entry is missing for multimedia6. Add entry for
multimedia6 in routing map to fix the issue.

CRs-Fixed: 1069401
Change-Id: I98b8dcc26ec776777b835e8438983c79aeb25a42
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2016-09-27 23:06:33 -07:00
Nicholas Troast
d2da5a62b4 ARM: dts: msm: enable more FG interrupts for PMICOBALT
Interrupts are useful for testing and debugging. Enable all fuel gauge
interrupts.

Change-Id: Ic6dd2d1e7f829630dc6eae5ff74fae04f7fc7f9b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-27 19:55:54 -07:00
Nicholas Troast
9d4164b5e8 qcom-charger: fg-util: add float decode function
Some SRAM registers are encoded using a floating point representation.
Add a function to decode these registers into signed micro-unit
integers.

The exponent and mantissa are signed integers represented by two's
complement, and the exponent value is offset by -9. This is a half
float representation stored as:

EEEEE MMMMMMMMMMM

Where E are the exponent bits, and M are the mantissa bits.

To decode this representation the following formula is applied:
2^(exponent - 9) * mantissa

Change-Id: Id9f28a0eeb2a904aca41eb46d0215d80287e0b88
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-27 19:55:54 -07:00
Vidyakumar Athota
d07060d4f1 ASoC: wcd934x: enable rate converter clock for AANC
Rate converter clock needs to enable for adaptive ANC
(Active Noise Cancellation)to work otherwise noise mic
data will not go to Rx path. Add change to enable rate
converter clock.

Change-Id: I8c83f6305dbc0a40b67bf2ffd53d37a0abdcf953
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-27 17:57:49 -07:00
Deepak Katragadda
96cf678eca ARM: dts: msm: Add 2.3 GHz performance cluster support on MSMCOBALT v2
Allow scaling the performance cluster clock to 2.3 GHz using
single core frequency boost on MSMCOBALT v2 speed bin 1 parts.

CRs-Fixed: 1070684
Change-Id: I473a1965989ac652c630b69c6086b74d0bdabfa3
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-27 14:47:16 -07:00
Deepak Katragadda
7c7db2d4d9 clk: msm: clock-osm: Support many-to-one OSM freq to CPR corner mapping
The current OSM framework does not support mapping multiple OSM
clock frequencies to the same CPR virtual corner. Enable this
support and update the current clock DT entries accordingly.

CRs-Fixed: 1070684
Change-Id: I3422848cabf221f497eb91f9aae5905e34ebdc84
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-27 14:41:04 -07:00
Skylar Chang
9ba1638c4b msm: ipa3: change FnR prints to low
Change FnR rule creation prints to low in order to avoid IPC
logging flood.

Change-Id: Ie1f0f48ffc1fd67fc8a2074d3d334fb8cd29c99f
CRs-Fixed: 1064336
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-27 14:03:21 -07:00
Rajesh Bondugula
65ef6dc3d1 ARM: dts: msm: set clock rate before enabling in msmcobalt
Clock must be set before enabling it.
Enabling clock before setting it may run the clock at a lower
rate than required.

CRs-Fixed: 1046014
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
Change-Id: I92618b736e637b1575a77a7fc18dd384919ed927
2016-09-27 13:41:31 -07:00
Viswanadha Raju Thotakura
fd39134867 msm: camera: Add regulator enable and disable independent of CSID
Regulator enable and disable of CSIPHY depends on the CSID module.
Make the enable and disable of clk regulator independent of CSIPHY.

CRs-Fixed: 1050172
Change-Id: Iefd57ae1c3fb5774b8043ef2e824acbacc8d16d2
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-09-27 13:40:33 -07:00
Phani Kumar Uppalapati
15c8a1727b drivers: mfd: Update wcd934x codec volatile register table
Add top-level wcd934x codec registers as volatile because
those registers get updated even before register map cache
initialization.

Change-Id: Ibdf5f695e5464b9597d153f725ff461f89b62ae4
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-27 11:02:14 -07:00
Mao Flynn
8f15477636 ARM: dts: msm: add a new panel driver for MSMCOBALT QRD SKUK board
For MSMCOBALT QRD SKUK board, add a new file for the new wqhd command
panel. And enable it in the board.

Change-Id: Iac5b202343bcf0265baf7732196b33dc5fe9c18d
Signed-off-by: Mao Flynn <feim1@codeaurora.org>
2016-09-27 19:09:59 +08:00
Himanshu Aggarwal
80fa7e9893 input: touchscreen: Fix issues in suspend path
Fix issues in suspend path in Goodix driver.

Change-Id: I280f2201c69838ad4da8eb94e9f10768f54ed457
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>4
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-27 16:33:03 +05:30
Himanshu Aggarwal
12e637fc79 input: touchscreen: Remove redundant code from Goodix driver
Remove code that reads firmware from the header file,
this feature is not supported.

Change-Id: I6c18e153ddf18667ca83d47df20c71bce6dbfa21
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-09-27 15:55:44 +05:30
Shantanu Jain
e172c0da0e input: touchscreen: Remove irq polling from Goodix driver
Remove irq polling from Goodix driver. Use interrupt based
mechanism to process interrupts from touch controller.

Change-Id: I0a9037eac6e30a6319919043dd2ef1c226663af9
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-27 15:31:07 +05:30
Amit Nischal
5195746050 clk: msm: Fix compilation for clock_debug_print_enabled
In cases where we do not use the CONFIG_COMMON_CLK_MSM
and clients who use clock_debug_print_enabled would fail
compilation. Fix the same by adding the config check.

Change-Id: Iaa878754e1d769056a621066eb8a73e1bc55d3a0
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-09-27 14:25:10 +05:30
Walter Yang
09180ba5f8 ARM: dts: msm: connect MADINPUT with MCLK on msmcobalt
For ADSP SVA, MAD cannot work without MCLK. Connect them so that
dapm can power MCLK up.

CRs-Fixed: 1070327
Change-Id: Ia79f862379ad32e5a44dce6bdc905d2083a45b60
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-09-27 01:20:32 -07:00
Walter Yang
47646c753c ASoC: wcd934x: set up path from MAD to slimbus for wcd934x codec
To support ADSP SVA with wcd934x codec, audio codec path needs to
be set up from MAD module to slimbus port. Establish the path and
reserve the slimbus TX13 port for it.

CRs-Fixed: 1070327
Change-Id: I4cc20bd7070a51a121a0da33c9b30233443bb543
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-09-27 16:16:22 +08:00
Govind Singh
aebb9befc6 net: cnss: Add support to get fw files for QCA SDIO target
Current implementation for getting fw files for a target is
supported only in PCIE based QCA chipsets. Add support to
get FW files for QCA SDIO targets.

CRs-Fixed: 1036232
Change-Id: If6c273d9a86f9fc4bc841388b11b96c385dc64f4
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2016-09-27 00:13:45 -07:00
Amey Telawane
d0110c84d9 ARM: dts: msm: add support for qdss nodes on msmfalcon
Add support for CTI, DCC and Watchdog for msmfalcon. DCC is used for
capturing register values and CTI is used to map triggers.
Watchdog is used to handle kernel panics.

Change-Id: I4202cfb21868983792e75e8ef6a305030879fb39
CRs-fixed: 1056777
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2016-09-27 11:40:03 +05:30
Shantanu Jain
1758da06e7 input: touchscreen: Add threaded irq support to Goodix driver
Add threaded irq support to Goodix touchscreen driver to reduce
the time spent with interrupts diabled to a bare minimum by
pushing the processing out into the kernel thread.

Change-Id: I3ade13181957d327ad9d0266b1999a4b0f2d8d1a
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-26 21:30:43 -07:00
Skylar Chang
b0756920f3 msm: ipa: unlock WLAN doorbell register access
Request TZ to unlock WLAN doorbell register for ipa
uC access for offload data path.

Change-Id: Ia79b1d8a9a0213c2f5296140bff7a36d3f035e21
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 17:57:12 -07:00
Hemant Kumar
85cc38fca2 usb: pd: Add support to set the maximum speed via extcon
Driver sets the speed using extcon cable state flag. This
allows to start host or peripheral in selected speed.
By default start peripheral in super speed mode. However,
starting host in super speed consumes more power so to
achieve lower consumption default it to high speed only.

Add module params to override the default behavior as follows:

 # echo Y|N > /sys/module/policy_engine/parameters/ss_dev
 # echo Y|N > /sys/module/policy_engine/parameters/ss_host

Change-Id: I2a45a4149f593a129b4dd123df730405169404f9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-09-26 17:47:44 -07:00
Mitchel Humpherys
0ca13dec77 iommu/io-pgtable-arm: Support SMMU coherent page tables
Some SMMUs can walk page tables in the CPU cache.  Enable this
behavior for SMMUs whose device tree node has the `coherent'
property set.

Change-Id: Icbb7a7eaf6c6e85c3ff4f981fe1dd1c3917228dc
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:35 -07:00
Mitchel Humpherys
c81e2fcdbe arm64: dma-mapping: Respect device coherency in IOMMU mapper
Coherent devices can make use of the CPU cache, so they should get
coherent IOMMU mappings and should have their cache maintenance
operations skipped.  Implement this for the vanilla arm64 IOMMU mapper.

Change-Id: Iab6715a071a5fa5556934d7771a6d07d678e9703
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-26 17:42:26 -07:00
Shubhraprakash Das
4e3c6202ef msm: camera: isp: Fix overflow recovery
On vfe48 the write masters need to be reenabled after vfe h/w reset.

CRs-Fixed: 1067996
Change-Id: I3ca87ec06e6204e3cecb137d8d8b4f1cedfc3fe1
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:07:31 -07:00
Shubhraprakash Das
b5cf50d8ea msm: camera: isp: Reset undeliver count on stream stop
When stream is stopped the undelivered buffers are flushed but
the count is not set back to 0, fix this.

CRs-Fixed: 1067674
Change-Id: I2e31912667be7bb9d0179b655b8bed425d18a869
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:05:37 -07:00
Shubhraprakash Das
ff9201d66d msm: camera: isp: Check the stream handles from user
Before operating on the streams sent by userspace ensure that
the stream handles sent from userspace are correct.

CRs-Fixed: 1064457
Change-Id: I0bde105ac751f9e26572efc387dfd88414e0c22d
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:05:35 -07:00
Shubhraprakash Das
f5640f2c84 msm: camera: isp: Initialize completion structure
When setting the stream satte to UPDATING the active completion
should be initialized since we wait on that completion.

CRs-Fixed: 1064457
Change-Id: Ia17d8fb224ef2709761f03464aaf2d4541566817
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:05:34 -07:00
Shubhraprakash Das
fa50126290 ARM: dts: msm: camera: Use correct clock on msmcobalt
Use mmssnoc_axi clk instead of maxi_clk. Only, mmssnoc_axi
clock is needed to satisfy the camera clock dependencies.

CRs-Fixed: 1066418
Change-Id: I92b8ff43f3b4604bba43aa1eb1ea110863bd12a7
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-26 16:03:47 -07:00
Skylar Chang
15dc347f52 msm: ipa3: hal: change FnR prints to low
Change FnR rule creation prints to low in order to avoid IPC logging
flood.

Change-Id: I18a27267eebdca2c87bf4bffc11a120822cdc7c2
CRs-Fixed: 1064336
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 15:38:16 -07:00
Sungjun Park
05f1f98cd1 ARM: dts: msm: Change L7A/L17A/L25A on msmcobalt
To prevent sleep current leakage, leave L7A/L17A/L25A
turn on during sleep and set LPM/NPM by pin control.

Change-Id: I787d3b4300fae8fb04ac1aa8d3b27b71e8bd7797
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2016-09-26 15:28:02 -07:00
Skylar Chang
b544de499e msm: ipa3: increase SSR tag timeout
Increase the timeout in SSR case for TAG completion
as IPA might be slow in processing this command.

Change-Id: I5cfadb3ee7cb339b89b0c428bae46d3802476eb9
CRs-Fixed: 1064336
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 15:27:31 -07:00
Phani Kumar Uppalapati
74c432dc9a ASoC: wcd934x: Avoid pop during dsd path tear down
Avoid pop during dsd audio path tear down by enabling
mute before the slim ports are disconnected.

Change-Id: I542fab59eadbea404c0001d25315172cc993488b
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-26 15:06:13 -07:00
Phani Kumar Uppalapati
33dbb2a735 ASoC: wcd934x: Check for null pointer before access
Check dsd config structure pointer for null before
access to prevent kernel panic.

CRs-fixed: 1070189
Change-Id: I791941fbede4b136c3f24d15b7fb0b60dd5477e6
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-26 14:59:51 -07:00
Ben Romberger
dec2bc73ee ASoC: msmcobalt: Enable msmcobalt to use audio notifier
Enable msmcobalt to use the audio notifier framework.
Audio notifier framework connects to the best available
framework for remote subsystem notifications such as
subsystem up or down.

Change-Id: Ib88a71e2fdb2b58fd5f87a65cb7d3253884f2d97
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:51:07 -07:00
Ben Romberger
03ef2316fd drivers: soc: Enable APR driver to use audio notifier
Modify APR driver to use audio notifier framework.
Audio notifier framework connects to best available
subsystem for remote notifications.

Change-Id: I783b7df9c7e0253e5dc88bd60e0b5300e26fba56
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:50:54 -07:00
Ben Romberger
e38f048fc1 ASoC: msmcobalt: Add Audio Notifier, PDR, and SSR to Kconfig
Enable the audio Notifier, PDR, and SSR drivers
for msmcobalt in the Kconfig.

Change-Id: Ief6e89b003aa1e2b02f33e21e3cb17f8731425ad
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:50:43 -07:00
Ben Romberger
bc0560f6fa drivers: soc: Add Audio Notifier, PDR, and SSR drivers
The audio PDR driver is used to control the process
domain restart recovery mechanism. The audio SSR
driver is used to control the Subsystem Restart
recovery mechanism. Both are controlled through the
Audio Notifier driver which determines whether PDR
or SSR is used and provides the core interface to
all audio drivers.

Change-Id: I15325c1385eaa0f0cca2c07130f2b4a997d98e1f
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:50:05 -07:00
Ben Romberger
d8d534980f drivers: soc: Add Kconfigs for Audio Notifier, PDR, and SSR
Add separate Kconfigs for the audio SSR, audio PDR,
and audio notifier drivers. Allows precise control
of different audio recovery mechanisms.

Change-Id: I2ab027d4a6e2cb98df5358e24f6bebacd9aecca7
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:49:54 -07:00
David Collins
ee65608bba ARM: dts: msm: modify VDD_APC0/1 CPR voltages for msmcobalt v2
Update the VDD_APC0 and VDD_APC1 CPR voltage configurations for
MSMCOBALT v2 devices in order to match the most recent guidelines
from hardware characterization.  Increase the VDD_APC0 and
VDD_APC1 Fmax and intermediate Nominal corner ceiling voltages
to 900 mV.  Also increase the VDD_APC0 Turbo_L1 open-loop and
closed-loop voltage adjustment to 30 mV.

Change-Id: Id2de8e2ac94476c1a4927f719f2987a31d692ab5
CRs-Fixed: 1070187
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-26 13:51:48 -07:00
David Collins
c9f2565720 ARM: dts: msm: correct PM8005 S1 min/max voltage for msmcobalt
Correct the minimum and maximum PM8005 SMPS 1 regulator voltage
constraints for MSMCOBALT v1 and v2 so that they encompass all
values that the VDD_GFX CPR control may need to request.

Change-Id: I479e23db73a64e0fc1371e6b5abfaf1c8969954b
CRs-Fixed: 1068464
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-26 13:48:25 -07:00
Puja Gupta
49516d6735 ARM: dts: msm: Add bus name to venus pil for MSMCOBALT
Add "qcom,msm-bus,name" property which is required for bus scaling to
venus pil node for MSMCOBALT.

CRs-Fixed: 1071217
Change-Id: I37e6f76b60ef0085d102c5d98179b467f6b77dee
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-09-26 10:59:25 -07:00
Jack Pham
3b64c4cead usb: pd: Return different errors in devm_usbpd_get_by_phandle()
Allow callers of devm_usbpd_get_by_phandle() to distinguish
between different errors depending on what failure is encountered.
For instance, return -EPROBE_DEFER if the device is available
but not yet probed, which allows callers to appropriately try
again later.

Change-Id: I96b03d0a4c2a04a405af5a40f9f713443bc5769b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-09-26 10:41:25 -07:00
Hareesh Gundu
2defccd495 msm: kgsl: Revisit the GPU snapshot dumping
Add a new linux header to support 64 bit pagetable address in Linux OS
section.
Add a new linux context header to support v2+ Linux version in Linux
context section.
Remove multiple register reads on CP IB registers and have a single
CP register read to get the active IB information.
Add Active IBs to obj_list in case static snapshot blob is not having
enough memory, so that it get dumped into dynamic blob.
Add a message in case any active IB is not getting dumped into snapshot
binary.

Change-Id: Icee01f6ba95e469acac9eed6bf2fdbc83947f5a8
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-09-26 10:21:27 -07:00
Abinaya P
03e992586f input: synaptics_dsx_core: make clocks as optional for secure touch
Make clocks needed for secure touch as optional. Hence, even if the
clocks are not defined, just proceed further and initialise the secure
touch session.

Change-Id: Id8fb80ca0297bc1d1854fdc710abce6a4d2f9620
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-09-26 16:18:36 +05:30