Commit graph

582703 commits

Author SHA1 Message Date
Satya Krishna Pindiproli
a73b1632b1 ASoC: msm: add FE DAIs for HFP for SDM660
Add new frontend DAI links for HFP client in both
internal and external variants of SDM660.

CRs-Fixed: 1117314
Change-Id: If56ce8827c8677c35a49e70be1bfafa373b84f79
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
2017-02-07 11:29:50 +05:30
Kalyan Thota
e8b77a585b msm: mdss: share MDP smmu device mappings with other mdss clients
Rotator and MDP share same stream ID on sdm600 target,
hence share the smmu device with rotator device to map/unmap
its buffers.

The change will also handle different secure usecase concurrencies
like, mdp running in secure and rotator in non-secure and vice versa.

Change-Id: I3ff118baed3984d63e9a9fe94289d99523c7b3e9
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
2017-02-07 10:51:12 +05:30
Taniya Das
8136c8e129 clk: qcom: keep gcc_bimc_gfx_clk always on for SDM660
Keep gcc_bimc_gfx_clk always on to prevent a stall during BIMC redirection
handshake that occurs as part of a transition between different CCI power
modes.

Change-Id: Id027d4c3ba3ef15b24cfc2747b1a7b82a206fc31
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-07 10:45:23 +05:30
Neeraj Upadhyay
5b8035a372 ARM: dts: msm: add support for NO jacktype for SDM660
Add device tree files for headset jacktype NO, for CDP
and RCM platforms of SDM660.

Change-Id: I32bfb871ced7a682016af8bec5eeb28dc27a3616
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2017-02-07 09:04:46 +05:30
Jack Pham
aacc57aa29 ARM: dts: msm: add sink capabilities to PMI8998 PD PHY
Add a property to the PD PHY peripheral to specify the default
sink capabilities for USB PD as 5V @ 3A, 9V @ 3A and 12V @ 2.25A.
These are common values that should be supported on most boards,
but can be overridden as necessary.

Change-Id: I5ea95d2f0532c59f7d83cb608d939ad28a8bb28e
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-06 17:54:42 -08:00
Jack Pham
b76105e359 usb: pd: Read sink capabilities from device tree
Add a device tree property to allow specifying the supported
set of sink capabilities. If not specified, fall back to a
single capability of 5V @ 3A.

Change-Id: I394061d9f3070099e35b651ce4b63a7993343bf1
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-02-06 17:54:33 -08:00
Harry Yang
caec7b3e2e qcom: qnovo: Fix QNOVO IADC_OFFSET, STRM_CTRL and PPCNT settings
Factory QNOVO IADC OFFSET trim values are wrong polarity. To fix it,
update both (reg QNOVO_IADC_OFFSET_0 and QNOVO_IADC_OFFSET_1) with
their two's compliment, respectively.

Factory setting of QNOVO_STRM_CTRL is also wrong. It controls
polarity of the raw IADC bitstream. To get the correct IADC bitstream
polarity, set 0 to register QNOVO_STRM_CTRL.

Set range [1,255] for QNOVO PPCNT parameter, so the right value can
be written.

Change-Id: I7be948b09c96aae4077a8f010c951c6ebd22a0fa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-06 17:27:59 -08:00
Ingrid Gallardo
7050086662 msm: mdss: fix mdp vbif qos priorities
Current driver read if any nrt vbif is present
and if it is not, the number of qos priority
levels gets wiped out, causing the driver
not to program the vbif qos priority levels for
the rt client. Fix this problem by making sure
that if a vbif nrt does not exist in the platform,
driver only ignore the nrt settings, but keeps
programming the vbif rt.

Change-Id: I2fe5eea5a2ff852b22a59cdb0139b17f3dd7c494
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2017-02-06 16:07:10 -08:00
Yuanyuan Liu
31767415ec icnss: Fix error check of athdiag read data_len
Fix error check of data_len for athdiag read message. Report
error when response message's data_len is smaller than what
is expected.

CRs-Fixed: 2002939
Change-Id: I87c0c6265934ac7a3aad5dfa471c23332b7f6996
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-02-06 15:16:06 -08:00
Siena Richard
fcbf2fad44 ASoC: msm: add support for multi-copps for multiple BEs
Add support for multi-copps for multiple BEs with independent
calibration data. This allows for more accurate calibration of device
copps.

CRs-fixed: 1110411
Change-Id: I72ce501408a474eb620a088172e3c4d789ab5ef0
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2017-02-06 14:26:08 -08:00
Harsh Sahu
eb2c63d21a ARM: dts: msm: enable 180deg panel orientation for msm8998 QRD device
Enable panel orientation property in QRD device to flip
the panel by 180 degrees for msm8998 target.

Change-Id: I3e91ed69de150b970d2e1678833d0d4cca659eef
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2017-02-06 14:09:32 -08:00
Liam Mark
45cb559804 arm: dma-mapping: map_page map to nearest page
Since the page offset can be greater than the size of a page fix
arm_coherent_iommu_map_page so that it maps to nearest page
boundary.

This both prevents unnecessarily mapping memory we don’t need to
map and fixes a bug where the unmap wasn’t unmapping this extra
memory.

Change-Id: Iaa69aff7505ee75d1f2e69bb0cda814bc6211bd3
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2017-02-06 14:03:48 -08:00
Skylar Chang
f445e587ca msm: ipa3: changes to suspend/disable for WDI 2
Adapt to latest changes to IPA micro-controller (IPA uC).
For pipe SUSPEND, IPA uC will fail in case the pipe is not empty.
IPA driver needs to insure pipe is empty and then issue a SUSPEND command.
For pipe DISABLE, pipe is already empty on SUSPEND,
IPA driver does not need to do ensure anything before
issuing a DISABLE command.

Change-Id: Icfc4745c666997c63be6e9444bf611fb4cbd1934
CRs-Fixed: 2002190
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-06 13:39:08 -08:00
Skylar Chang
fc168a68ae msm: gsi: use reinit_completion
To avoid a race condition between init_completion() and complete()
which will cause a crash use reinit_completion() which is safe.

CRs-Fixed: 1114785
Change-Id: I5b5c9eb6a4dbe406951d71fe5963b3c4e411daa0
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-06 13:29:35 -08:00
Linux Build Service Account
01e31721d2 Merge "ASoC: msm: qdsp6v2: Fix range check logic of port index" 2017-02-06 13:21:40 -08:00
Linux Build Service Account
6b46ac2168 Merge "ASoC: wcd-spi: add system suspend and resume functionality" 2017-02-06 13:21:39 -08:00
Linux Build Service Account
f445080d51 Merge "ARM: dts: msm: correct vote on ldo11 for vddio on sdm660" 2017-02-06 13:21:38 -08:00
Linux Build Service Account
c462c1320a Merge "msm: kgsl: Add NULL check for kgsl_midframe before accessing it" 2017-02-06 13:21:37 -08:00
Linux Build Service Account
e4de610870 Merge "ASoC: msm: remove duplicate mixer control" 2017-02-06 13:21:36 -08:00
Linux Build Service Account
dac38dcfe2 Merge "ARM: dts: msm: Enable GPU NAP state on SDM660" 2017-02-06 13:21:35 -08:00
Linux Build Service Account
bdec82ffe9 Merge "ARM: dts: msm: Add msm-core device for sdm630" 2017-02-06 13:21:34 -08:00
Harry Yang
b334b8bf94 ARM: dts: msm: Configure PMI8998 GPIO6 for discharge FET ctrl signal
The QNOVO discharge FET gate is driven by PMI8998 GPIO pin. Configure
GPIO6 to route the internal QNOVO discharge FET control signal to the
pin.

Change-Id: I4dea54c1952d0da21f2bdb8a41b421cab558cafa
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-06 12:29:15 -08:00
Skylar Chang
8e3f081814 msm: rmnet_ipa: do not release resource on pending data
In case there is pending data submitted to IPA, IPA RM resource should
not be released. The resource release happens only when all packets were
processed by IPA.

CRs-Fixed: 1116262
Change-Id: I19756cbe4f84a5d09853d6066362e4a2c9ae1f73
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-06 11:35:13 -08:00
Sungjun Park
e02e63b801 bluetooth: Fix free data pointer routine
Data pointer has been reused after freed it. So,
it has been moved to after using the data pointer
to clean up resource and freed it.

Change-Id: Ibc94e092134ff1f36e896c679ade7f639254a24d
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2017-02-06 10:01:02 -08:00
Skylar Chang
2eaebfbcb4 msm: ipa3: fix freeze vote for SSR
Reset the freeze vote after modem SSR to allow IPA clock gating.

Change-Id: Ice78831abc52aed44d640109e1453da7e2af9702
CRs-Fixed: 2002197
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-06 09:45:58 -08:00
Tatenda Chipeperekwa
0a3e9cc834 msm: mdss: dp: add null check for token value
Add a null check for a token value that is returned
from a string splitting function. This will prevent
null pointer dereferencing when attempting to use the
token.

CRs-Fixed: 2002785
Change-Id: I6d3c1dafc2c7d0914c116c73a8ed115c2c8f9e86
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2017-02-06 09:03:51 -08:00
Linux Build Service Account
20e1ed9259 Merge "ASoC: sdm660-cdc: Add 4-mic DMIC support" 2017-02-06 04:23:53 -08:00
Linux Build Service Account
39dc977caf Merge "ASoC: msm: qdsp6v2: Add mixer controls for PRI/SEC TDM" 2017-02-06 04:23:52 -08:00
Linux Build Service Account
5f0c116c60 Merge "ARM: dts: msm: Add video support for SDM630" 2017-02-06 04:23:51 -08:00
Linux Build Service Account
979e8f753c Merge "ARM: dts: msm: Update venus clock cycles for SDM660" 2017-02-06 04:23:50 -08:00
Linux Build Service Account
c892e8fa89 Merge "cfg80211: export interface stopping function" 2017-02-06 04:23:48 -08:00
Linux Build Service Account
2511ad49fa Merge "spcom: print error message on lock ion failure" 2017-02-06 04:23:48 -08:00
Linux Build Service Account
58666f9527 Merge "defconfig: remove the cti config for perf of sdm660" 2017-02-06 04:23:47 -08:00
Linux Build Service Account
854146dae5 Merge "ARM: dts: msm: enable correct power sequence of smmu and mdss GDSCs" 2017-02-06 04:23:46 -08:00
Linux Build Service Account
46c51a37b4 Merge "msm: mdss: Do not apply bl scale if current back light is zero" 2017-02-06 04:23:45 -08:00
Linux Build Service Account
259275d3a8 Merge "msm: mdss: dp: fix programming of audio ACR control" 2017-02-06 04:23:44 -08:00
Linux Build Service Account
fe1a2cd6f9 Merge "ARM: dts: msm: Change underflow color for truly/sharp wqxga panel" 2017-02-06 04:23:43 -08:00
Linux Build Service Account
9577ce3f81 Merge "msm: mdss: dp: fix hdcp data address" 2017-02-06 04:23:42 -08:00
Linux Build Service Account
d61bb96aff Merge "ARM: dts: msm: update recommended QOS vbif value for sdm660" 2017-02-06 04:23:41 -08:00
Linux Build Service Account
dc18c07931 Merge "msm: mdss: fix mdp vbif writeback qos settings" 2017-02-06 04:23:40 -08:00
Linux Build Service Account
bac30a06da Merge "msm: mdss: Fix 3D Mux when restoring from DSC on/off" 2017-02-06 04:23:39 -08:00
Linux Build Service Account
6dd32f6958 Merge "power: reset: Remove secure boot mode check" 2017-02-06 04:23:38 -08:00
Linux Build Service Account
2aad560e7a Merge " msm: ADSPRPC: Use correct method for static processes" 2017-02-06 04:23:38 -08:00
Linux Build Service Account
50c69dd9ec Merge "usb: dwc3: Add support to LPM L1 remote wakeup for ep0 endpoints" 2017-02-06 04:23:37 -08:00
Rama Krishna Phani A
9a21fb7096 ARM: dts: msm: Update Temperature sensor support for sdm630
Update SW temperature sensor mapping for sdm630 target.

Change-Id: Id1969171dff46b8bf7f78c823ed4d06ccc8369bc
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-02-06 03:55:12 -08:00
Rama Krishna Phani A
6d4519f691 thermal: tsens: Update sensor id for sdm630
Update sensor id flag for sdm630 such that thermal
client can obtain the HW ID for the available
temperature sensors (TSENS) with sensor ID details.

Change-Id: I70a1c7e4a420dc41591f021da499efe10b7fd6ae
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-02-06 17:21:53 +05:30
Amey Telawane
a83eb243ca ARM: dts: msm: change gpio channel for sdm660
Map gpio to cti trigin using proper channel.
This enables gpio to raise triggers.

CRs-fixed: 2001088
Change-Id: I54264beb6af2a9a6b308aa1d85e1123877f73e48
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2017-02-06 17:14:02 +05:30
Samyukta Mogily
417504815d ARM: dts: msm: Update camera clock sources for sdm660
Changing the clock source frequencies to lower
working frequencies so that the camera runs in
SVS_L1 mode, which reduces the power consumption.

Change-Id: I92344fcd0f4492badd6a50c011b0aa8b4231a373
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
2017-02-06 16:32:14 +05:30
Rajesh Kemisetti
9ea3e6ff51 msm: kgsl: Add NULL check for kgsl_midframe before accessing it
in kgsl_pwrscale_init(), add missing NULL check for kgsl_midframe
to avoid further accessing, in case if memory is not available.

Change-Id: If6a4e59d4675fe67aefc63d7f8251f4d28ddeec5
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-02-06 16:31:19 +05:30
Rajesh Kemisetti
fa48f3ab62 ARM: dts: msm: Enable GPU NAP state on SDM660
Enable NAP state for A512 GPU to save power.

Change-Id: I3c643c90d39ab33c11146b5864b20c14bc9a339a
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
2017-02-06 02:37:21 -08:00