Commit graph

583724 commits

Author SHA1 Message Date
Linux Build Service Account
f701481cfb Merge "MMC : card: check for card status incase of timeout error" 2017-02-23 21:35:47 -08:00
Linux Build Service Account
69bf85c82b Merge "ARM: dts: msm: add reg bus scale properties for sdm660 and sdm630" 2017-02-23 21:35:46 -08:00
Linux Build Service Account
67329e61e2 Merge "ARM: dts: msm: Update fuse corners supported for APC0/1 CPR for sdm630" 2017-02-23 21:35:45 -08:00
Linux Build Service Account
1569b17292 Merge "ARM: dts: msm: Add support for audio over USBC for SDM630" 2017-02-23 21:35:44 -08:00
Linux Build Service Account
4d40908715 Merge "ASoC: msm: qdsp6v2: Add INT3_MI2S interface for Source tracking" 2017-02-23 21:35:43 -08:00
Linux Build Service Account
0bb941eaed Merge "ASoC: codecs: Enable SSR for internal codec and WSA" 2017-02-23 21:35:42 -08:00
Linux Build Service Account
7e9aac208a Merge "ARM: dts: msm: Add routing controls for sdm660 internal codec" 2017-02-23 21:35:41 -08:00
Linux Build Service Account
60ebf2023c Merge "drm/msm: add support for 5V HPD pin for msm8998" 2017-02-23 21:35:36 -08:00
Linux Build Service Account
64190381d8 Merge "drm/msm: enable hpd event support for hdmi display" 2017-02-23 21:35:36 -08:00
Linux Build Service Account
6687ca759c Merge "drm/msm: add sde io util API support" 2017-02-23 21:35:35 -08:00
Linux Build Service Account
e2ef4360ab Merge "drm/sde: add support for customized mode" 2017-02-23 21:35:35 -08:00
Linux Build Service Account
097072f230 Merge "ARM: dts: msm: include SDE DTSI for MSM8998" 2017-02-23 21:35:34 -08:00
Linux Build Service Account
43de29b084 Merge "ARM: dts: msm: rename mdss_mdp to sde_kms and add HDMI TX device node" 2017-02-23 21:35:33 -08:00
Linux Build Service Account
e042032335 Merge "mhi: core: Add support for new MHI hardware channel" 2017-02-23 21:35:28 -08:00
Linux Build Service Account
9902e5e865 Merge "drm/msm: Get object iova from correct address space" 2017-02-23 21:35:15 -08:00
Linux Build Service Account
52f45fc339 Merge "drm/msm: Mark the microcode buffers as read-only" 2017-02-23 21:35:14 -08:00
Linux Build Service Account
f7e36cc621 Merge "drm/msm: Come out of secure before executing GPMU initialization" 2017-02-23 21:35:12 -08:00
Linux Build Service Account
ef49b42e4a Merge "drm/msm: Get and enable the IOMMU clocks" 2017-02-23 21:35:09 -08:00
Linux Build Service Account
fb98e68c1c Merge "drm/msm: Add hint to DRM_IOCTL_MSM_GEM_INFO to return an object IOVA" 2017-02-23 21:35:07 -08:00
Linux Build Service Account
b7ea8035cf Merge "msm: mdss: Install sync fences after user copy" 2017-02-23 21:35:06 -08:00
Anirudh Ghayal
6567e81b13 ARM: dts: msm: Force module re-eanble for LCDB on PM660L
This enables the WA for vph_pwr_2p5_ok signal remaining invalid.

CRs-Fixed: 1053543
Change-Id: I58c23adace7c4c29f352edb706666effe69dc8ad
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-02-24 09:39:03 +05:30
Anirudh Ghayal
2c4d8b12b2 regulator: lcdb: Add WA for vph_pwr_2p5_ok signal being invalid
The LCDB module does not sample the vph_pwr_2p5_ok signal if it drops
low when the module is off. It will continue with the last known
state of vph_pwr_2p5_ok which could cause a problem if vph_pwr_2p5_ok
is indeed low. Fix this by re-enabling of the module to activate
the vph_pwr_2p5_ok signal sampling.

CRs-Fixed: 1053543
Change-Id: If0950140cae12c92bb6be428b22400b492f823e4
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2017-02-24 09:37:50 +05:30
Abhijeet Dharmapurikar
6eb3649559 smb138x: support ship mode
Provide means to set ship mode on smb138x charger. While in parallel
charger mode make the main charger set ship mode on smb138x before
calling ship mode on itself.

Change-Id: I9b96b425829520d95632aa32d2297940cca5e254
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-02-23 19:57:16 -08:00
Jin Li
308342e526 drm/msm: add info frame configuration for hdmi controller
When HDMI controller is configured as non-DVI with CEA mode, SDE
driver needs to program AVI, VSIF and SPD information into HW to
generate correct info frame.

CRs-Fixed: 2010135
Change-Id: Ib218761c63b13aa229fc24519ceb9ccd0bd34ce2
Signed-off-by: Jin Li <jinl@codeaurora.org>
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-02-24 10:29:37 +08:00
Ray Zhang
618520c133 drm/msm: add sde hdmi bridge implementation
Add a private HDMI bridge implementation for SDE. This is
intended to support new HDMI features specific to SDE driver.

CRs-Fixed: 2010135
Change-Id: I0269b1ff79d8be4f48643a9e4e904427791ac1ac
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-02-24 10:25:14 +08:00
Abhinav Kumar
ccf767c2fe drm/msm: Revert "drm/msm/sde: fix color component order"
This reverts commit <c3e05abca5fabd7580be1378c5165a8b8f523f98>
(<drm/msm/sde: fix color component order>).

Color component order is specific to the rendering framework as well.
This change reverts the commit mentioned above to take other
frameworks into account which have different endianness.

Change-Id: Ic3135d5742dd4cf999f2d7271fc56ee46c74a353
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-02-23 17:21:57 -08:00
Skylar Chang
b171bdd7be msm: ipa3: halt modem channels as part of SSR
For modem SSR, APPS needs to halt modem consumer channels after
shutdown to make sure GSI FW does not access any modem's memory.

Change-Id: I6889a2ad509e0b1104ef8c3f65f24fe39b10745d
CRs-Fixed: 2008582
Acked-by: Ady Abrahan <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-23 14:07:09 -08:00
Skylar Chang
3e67e235ea msm: gsi: add support for generic commands
Expose a new API from GSI driver to allow client driver to
disable channel for other Execution Environment.
This API will be used as part of SSR cleanup.

Change-Id: I3b9400643aff76ca2195a597aba9ea18aab3085e
CRs-Fixed: 2008582
Acked-by: Ady Abrahan <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-02-23 14:06:34 -08:00
Nicholas Troast
6c406f35b7 smb-lib: rerun AICL when PD voltage changes
When the PD voltage changes AICL needs to be rerun to increase the input
current. Do it.

Change-Id: Ifa49547037d17c3ec2f01b6ac70faa310585825a
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-23 12:44:23 -08:00
Saranya Chidura
05f23bfffa ARM: dts: msm: enable watchdog for sdm630
Enable watchdog node for sdm630 which is used to detect system hang.

Change-Id: Idfb307dd991e17e0030921e03c6f8a04afb9bc1d
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-02-23 04:08:25 -08:00
Saranya Chidura
fef3f4ec8a defconfig: add cti config with save-restore disable for perf of sdm660
Added CONFIG_CORESIGHT_CTI and CONFIG_CORESIGHT_CTI_SAVE_DISABLE
in perf_defconfig of SDM660 to enable cti without save-restore
functionality for CPU cores.

Change-Id: I19a2fb8a3097bac910bb5e50c9a80d84f03098d3
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-02-23 15:09:41 +05:30
xiaonian
3f9de62f29 ARM: dts: msm: Update sdhc2 node for sdm630 QRD
Change polarity of corresponding GPIO to enable
SD card hot plug for sdm630 QRD.

CRs-Fixed: 2010622
Change-Id: Idd7685ada6e435bf2421d3081b07f34ca0993586
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2017-02-23 15:54:38 +08:00
Saranya Chidura
f6069cd224 kconfig: add cti-save-disable config in coresight
Added CONFIG_CORESIGHT_CTI_SAVE_DISABLE in kconfig of
coresight to choose CTI without save-restore functionality
for CPU cores.

Change-Id: I48128fbeda293a73d78946b8c222b5d0393c7595
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-02-23 13:18:48 +05:30
Taniya Das
bea7e76093 clk: qcom: Enable safe configuration for ahb clock source
To avoid running into issues with the MMNOC RCG being enabled due
to an enable request from a secure world entity whilst the HLOS code
has disabled its parents, park the RCG at CXO when its disabled.

Change-Id: I98e2efaed01ee4e92a457c56f2e276985882dbbb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-22 21:59:03 -08:00
Deepak Katragadda
75e9ce044f clk: qcom: clk-rcg2: Correct the erroneous RCG configuration during enable
If the RCG frequency table does not have CXO as one of its supported
frequencies, and if a client calls clk_enable on it prior to setting
its rate, the current RCG code would configure it to the lowest
supported frequency instead which would then lead the subsequent
call to update the configuration to fail because the parent PLLs are
not active. Correct this behavior. Also update the index in case cxo_f
frequency table is used for rcg configure.

Change-Id: Ib2c09f9f503724bafd32b963b5b0ea84da7c4b7b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-02-22 20:06:24 -08:00
Sujeev Dias
3ae052634e mhi: core: add support to enable MHI burst mode per channel basis
Not all MHI hardware channels support burst mode, add
support to enable burst mode per channel basis.

CRs-Fixed: 1027069
Change-Id: Icd3061f1a1a4b4b3dab8f9fe3b989a8afefd18b2
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-22 18:18:19 -08:00
Sujeev Dias
fcfe80f8cc mhi: core: Add support for new MHI hardware channel
Add support for new MHI hardware channel 102 to be
use by MHI clients as ADPL channel.

CRs-Fixed: 1027069
Change-Id: Ib3c2019fc269064d097bb7f40f01d4580e63a603
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-22 18:15:58 -08:00
Sujeev Dias
219eb11023 mhi: core: Do not clear transaction status
MHI transaction status stores the OVERFLOW status
received from device.  MHI clients uses this
status to determine overflow buffers, do
not clear the status.

CRs-Fixed: 1042516
Change-Id: Iaaff06c1c39775d6a33ca17851f1e1579b2a2ecb
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-22 17:35:38 -08:00
Abhinav Kumar
09d12e6c18 drm/msm: add mdss_smmu_request_mappings definition for non-FB targets
SDE rotator uses V4L2 target. Currently mdss_smmu_request_mappings
is defined only within the FB driver. For targets not using FB
this shall cause compilation issue.

Add definition of mdss_smmu_request_mappings for DRM based devices.

Change-Id: I26ef267802845236193b4c2688712e37a178e6cb
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-02-22 16:17:03 -08:00
Girish Mahadevan
67e815c616 spi: spi_qsd: Check device state during set_cs call
If the set_cs() call is made when the device has suspended then don't
try to make the register writes to force cs and return back to the
framework. Also remove the runtime PM calls from set_cs, these should be
done in the prepare/unprepare_transfer_hardware calls from the framework.

Modify the prepare_transfer_hardware_call() to fail if the runtime
framework is not enabled and in addition don't try to call the runtime
suspend callbacks from the system suspend callback as this could race with
an on-going SPI transfer.

Change-Id: Idc714b1024c1f181a4db59d5552d7ab9100c511f
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2017-02-22 16:23:03 -07:00
Nicholas Troast
aecaaa7d1c supply: qcom: battery: re-split FCC when ICL changes
Currently the notifier does not respond to main psy changed events, so
changes in ICL will not schedule the status change work. Furthermore,
the status change work does not re-run the FCC splitting which is
dependent on the settled ICL.

First, add the main psy as one of the triggers for the status changed
work. Second, re-run the FCC and FV voteable elections to re-split the
FCC based on the new ICL.

Change-Id: I1f5f2e176ec470c9c71ff4a0787ffa0cc5828ebc
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-02-22 14:25:34 -08:00
Chris Lew
f8559c8f88 soc: qcom: msm_smem: Fix uninitialized variable usage
Initialize remote_host value for smem corner case where
variable can be used without being set.

CRs-Fixed: 2004073
Change-Id: Iec3b0d66e7f557efa7167bdc2c1be9b02dcd4e96
Signed-off-by: Chris Lew <clew@codeaurora.org>
2017-02-22 14:04:14 -08:00
Osvaldo Banuelos
fd085d7258 ARM: dts: msm: correct maximum PM8998 S13 voltage for msm8998v2
The maximum PM8998 S13 voltage is 1.136 V. Update the
regulator-max-microvolt property for the PM8998 S13
device to reflect this.

CRs-Fixed: 2010419
Change-Id: Ic9cbd802fed8b0b48c872341efb429f0616b423a
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2017-02-22 13:47:17 -08:00
Chris Lew
6979b9ae1c soc: qcom: glink: Fix uninitialized variable usage
Initialize values for variables that may be used with out
the value being set in glink corner cases.

CRs-Fixed: 2004073
Change-Id: If0e813bf1601dd6c1288bc22864ddd2fb3dbf90f
Signed-off-by: Chris Lew <clew@codeaurora.org>
2017-02-22 13:30:00 -08:00
Sujeev Dias
0f889f7e46 msm: mhi: Check bb ring and transfer ring when checking for space
When checking for available spaces, check available spaces on
both bounce buffer ring and transfer ring and return min.

Change-Id: I9208b46c32821de3f5d9e3d828087d7bc29b9546
CRs-Fixed: 1055681
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-22 13:12:22 -08:00
Sujeev Dias
3d25629c67 mhi: core: add missing MHI state
Add missing state MHI_STATE_RESERVE to MHI states
look up table.

CRs-Fixed: 1049595
Change-Id: I9a6bd2750f81f6cabc1e7b5aff488b4a01f7897d
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-02-22 13:03:13 -08:00
Vikram Panduranga
43d4e6ad30 drivers: soc: apr: add wake_up for a waitqueue
APR client waits in a waitqueue for glink to queue intents.
On receiving notification about availability of intent, wake_up
should be called on the waitqueue to wake up any waiting APR
client.

CRs-Fixed: 1096481
Change-Id: I5a2b902fa831709092be1a9a3073b8d784adba81
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2017-02-22 12:16:02 -08:00
Yeleswarapu Nagaradhesh
7987170051 ASoC: msm: acquire lock in ioctl
If two ioctls are triggered with different commands,
there is a possibility to access freed confidence level
memory. To resolve this acquire lock in ioctl.
Also release mutex lock properly in error cases.

CRs-Fixed: 1103085
Change-Id: I7d6b2eff21c8297e5f0755a0c141254be32f777d
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2017-02-23 00:41:06 +05:30
Dinesh K Garg
e54946be6e msm: mink: Separate out transport and client error
Currently, return value for SMCINVOKE_IOCTL_INVOKE_REQ IOCLT is mixed
with error generated by client. This does not seem right because client
does not understand kernel error code and vice versa.

Change-Id: I77278700c4927facf7aba92a11bfde29b1e8eb38
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2017-02-22 09:44:29 -08:00
Sushmita Susheelendra
b4c63e6a5d drm/msm: Get object iova from correct address space
Get the iova for a buffer object from the context
specific address space instead of always defaulting
to the global address space.

Change-Id: Id38c2ca2d6bad334beab53d8bcf8eb5cf5b1bb99
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2017-02-22 09:52:36 -07:00