Commit graph

582875 commits

Author SHA1 Message Date
Taniya Das
0b6b50f4e4 clk: qcom: Update the dp pixel clock flags
Display port pixel clock source is required to propagate the set rate to
parent, so update the flags for the same. The lowsvs frequency has got
updated to 154MHz, update the same.

Change-Id: I67a5ff3b5fb18c2ce986c5f431f4e41a78fe13a5
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-07 12:08:51 +05:30
Taniya Das
038297471d clk: qcom: Update the display port determine rate RCG ops
The display port PLL generates only limited set of frequency combinations.
As fractional dividers are not required to be used, update the RCG ops to
take care of the same.

Change-Id: I601273fee044ef128dbc7c2e23bc2d8ce10e31dc
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-07 12:08:50 +05:30
Odelu Kukatla
4322f1ee12 ARM: dts: msm: Add gpu clock node for sdm630
GPU RBCPR clocks needs to be registered separately as GFX CPR
requires the rbcpr clocks to register the regulator handle.

Change-Id: I18275df08b1ad91dde09ac4fbea709d08162eec9
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-02-07 11:55:42 +05:30
Sudheer Papothi
9e1f5d5167 ARM: dts: msm: Add support for ANC headset detection on MSM8998
ANC(Active Noise Cancellation) headset is used for better
audio quality. Add support for ANC headset detection on
MSM8998 target.

Change-Id: If51ba58e4389f0cf73db5e72f4f378cb8ed30bf7
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2017-02-07 11:32:11 +05:30
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
Subbaraman Narayanamurthy
9d60729b18 qpnp-fg-gen3: add support to configure CC_CV threshold runtime
There is a requirement where an user wants to set CC_CV threshold
runtime so that it can be adjusted whenever the float voltage is
changed.

Add support for it via POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE
property.

Change-Id: I7fcb75f69f12fc2baf8e270a13cad6686c793bf9
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-06 19:50:00 -08:00
Subbaraman Narayanamurthy
d928f051d5 qcom: qpnp-fg-gen3: Reconfigure BMD during bootup
Booting up with higher battery id (e.g. 300KOhms) can cause a
failure in driver probe because none of the SRAM transactions
can go through during boot. This seems to be happening because
FG ALG treats it as a battery missing. Since driver fails to
probe early, it cannot even handle an interrupt to reconfigure
BMD. Hence, reconfigure BMD every time when the battery id is
obtained.

Since getting battery id now requires couple of SPMI writes,
move fg_get_batt_id() out of fg_get_batt_profile() as the latter
will be called from fg_parse_dt(). This makes fg_parse_dt() only
for parsing device tree properties from the device.

Change-Id: I1638f7325ce73b03f1ea54455f777f92cf8d06b3
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-02-06 19:49:59 -08:00
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
Abhijit Kulkarni
1f17eaf099 msm: mdss: Fix advertising HDR capability
HDR capability is not getting exposed for msm8998.
This is happening after the msmfalcon changes got merged.
This fix adds the hdr capbility to msm8998 and removes
from msmfalcon.

CRs-Fixed: 1116049
Change-Id: I81e0b3d90a03db6e655341338e03aea2911de89f
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2017-02-06 19:06:03 -08:00
Runmin Wang
6c66473cca defconfig: msm: Enable RCU_FAST_NO_HZ for msmcortex
Enable RCU fast for better performance.

Change-Id: Ifa7e780fe3ae70fa7a789f3193e1643d9814bbf6
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2017-02-06 18:26:38 -08:00
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
Vidyakumar Athota
ee18cfb860 ASoC: qdsp6v2: Clear memory map handle during ADSP SSR
AFE topology information is not shown in real time audio calibration
tool(RTAC) after ADSP subsystem restart because memory map handle is
not reset. Set/get param APIs fail because of this stale memory map
handle. Fix this issue by clearing AFE memory map handle during SSR.

Change-Id: Id8b1fad6580c11ba504e8781643f3d0f584eae7b
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-02-06 16:48:27 -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
Harry Yang
7eaeb3b58c defconfig: mfd: Enable REGMAP_ALLOW_WRITE_DEBUGFS for 8998
Enable it in the debug defconfig only, to allow REGMAP write
through debugfs.

CRs-Fixed: 2002923
Change-Id: If254fafde526292e60c506e0408b4127639946f8
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-06 14:30:51 -08:00
Harry Yang
9fdd2b1188 msm: regmap: configure REGMAP debugfs write optional
Currently, REGMAP debugfs write is always permitted, which
poses a risk of some unexpected PMIC setting. Make
REGMAP_ALLOW_WRITE_DEBUGFS configurable so debugfs write
can be disabled when not desired.

CRs-Fixed: 2002923
Change-Id: I5cbc5f118c97230dc6ef46cb2363a06823cb6c7a
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2017-02-06 14:30:30 -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
Banajit Goswami
f6b81b6db1 ASoC: msm: remove wrong return statement
Remove the return statement from msm_aux_pcm_snd_startup function
as it will return from the function unintentionally.

CRs-Fixed: 2001289
Change-Id: I197806f008d40b686a28de44efc5cc6cc16b16e3
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-02-06 12:37:19 -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