Commit graph

878,473 commits

Author SHA1 Message Date
Ram Chandrasekar
b2bad6da88 power_supply: Register cooling device outside of probe
Registering the cooling device from the probe, can result in the
execution of get_property() function, before the probe is complete.

To avoid this, register the cooling device from a workqueue, instead of
registering in the probe.

Change-Id: Ic9279fd5ca5476df66baa6e0f302a7f3bd6b899b
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-03-13 14:05:45 -07:00
Ram Chandrasekar
d290ee1e63 power_supply: Use of-thermal cdev registration API
With thermal frameworks of-thermal interface, thermal zone parameters can
be defined in devicetree. This includes cooling device mitigation levels
for a thermal zone. To take advantage of this, cooling device should use
the thermal_of_cooling_device_register API to register a cooling device.

Use thermal_of_cooling_device_register API to register the power supply
cooling device. This enables power supply cooling device be included in the
thermal zone parameter in devicetree.

Change-Id: I27d6043cf1d3121d97f8300bb89635204ae32955
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-03-09 09:48:55 -07:00
qctecmdr
f9c0b494bb Merge "ABI: aarch64: Update the ABI snapshot" 2020-03-06 07:12:50 -08:00
qctecmdr
075b40a53c Merge "cpuidle: lpm-levels: Print enabled clocks, regulators on cpu/cluster LPM" 2020-03-06 00:14:13 -08:00
qctecmdr
69e489fe77 Merge "scsi: ufs: crypto fix on QTI ufs" 2020-03-05 10:02:04 -08:00
qctecmdr
d12142b88c Merge "soc: qcom: Kconfig: Fix the dependencies for minidump" 2020-03-04 23:54:11 -08:00
Raghavendra Rao Ananta
19266ea0a5 ABI: aarch64: Update the ABI snapshot
Update the ABI snapshot due to clean the ABI surface.

Change-Id: I4970f36960d95715fffaf45b1a5eea7d92ed3f44
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-04 21:09:30 -08:00
qctecmdr
48d15fcc0b Merge "defconfig: lahaina: Enable qbt_handler DLKM" 2020-03-04 21:02:39 -08:00
qctecmdr
f6eb4a6335 Merge "soc: qcom: pmic_glink: add debugfs to filter logs" 2020-03-04 17:51:25 -08:00
qctecmdr
d21d525eb4 Merge "cnss2: Add meta into as a segment to firmware RAM dump" 2020-03-04 14:59:36 -08:00
qctecmdr
ec907937b7 Merge "msm: kgsl: Enable the CX GSDC before accessing IOMMU registers" 2020-03-04 12:05:54 -08:00
qctecmdr
dc31b0d700 Merge "msm: pcie: Revert "scale CX and rate change after DRV resume"" 2020-03-04 12:05:54 -08:00
qctecmdr
4a24eecc1f Merge "defconfig: Enable CPU isolation cooling device for lahaina" 2020-03-04 12:05:54 -08:00
qctecmdr
f265cc530d Merge "msm: kgsl: Move GMU to a component device" 2020-03-04 09:11:42 -08:00
qctecmdr
c744f806b4 Merge "iommu/arm-smmu: Cleanup qsmmuv500_iova_to_phys_hard()" 2020-03-04 03:33:48 -08:00
qctecmdr
15db89de68 Merge "NFC: Add driver to configure NFC-I3C controller GPIOs" 2020-03-04 03:33:47 -08:00
qctecmdr
8a492f7f64 Merge "clk: qcom: update the DisplayPort clocks" 2020-03-04 00:26:50 -08:00
qctecmdr
3f59866d28 Merge "serial: msm_geni_serial: Set clock freq correctly for RUMI" 2020-03-04 00:26:50 -08:00
Subbaraman Narayanamurthy
167a60caea soc: qcom: pmic_glink: add debugfs to filter logs
Add debugfs for pmic_glink device to filter out logs based on
filter and enable parameters. This is useful for debugging.

E.g. to filter out logs for PD Altmode driver whose message
owner id is 32780,

 echo 1 > /sys/kernel/debug/soc:qcom,pmic_glink/enable
 echo 32780 > /sys/kernel/debug/soc:qcom,pmic_glink/filter

E.g. to print out logs for all message owners,

 echo 1 > /sys/kernel/debug/soc:qcom,pmic_glink/enable
 echo 65535 > /sys/kernel/debug/soc:qcom,pmic_glink/filter

Please note that enabling these logs would print logs on both
Tx and Rx path from the clients of PMIC Glink device.

Change-Id: I63c1c90657b2044fe755cfd8fda73d5f942cad76
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-03-03 18:14:32 -08:00
Jordan Crouse
1c6fcc54ec msm: kgsl: Enable the CX GSDC before accessing IOMMU registers
If needed, the IOMMU device can define a CX GDSC to enable before
turning on clocks to directly write IOMMU registers.

Change-Id: Ic0dedbadc8479cc36d5603d6d8a2c93133fda668
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:10 -07:00
Jordan Crouse
00a1ef124f msm: kgsl: Move the IOMMU clocks to the KGSL device
Move ownership of the IOMMU clocks to the KGSL device and get them from
there during IOMMU probe.  This ensures that the clocks are owned by a
proper platform device that can sync_state() after we are done probing.

Change-Id: Ic0dedbad97783984f7d8d1c3c2252a1a8a812d77
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:10 -07:00
Jordan Crouse
0c46c9a35b msm: kgsl: Move GMU to a component device
Traditionally the GMU/RGMU device has been a child of the adreno device
and probed manually. That has worked despite the fact that the GMU/RGMU
device has resources of its own and it really should be a top level
platform device.

Finally do the right thing, make GMU a top level platform device and
driver and bind it to Adreno as a component. This will make sure we
get the advantages of all of the platform level initialization without
having to code in half a dozen hacks to make everything work and then
break again next kernel version.

Change-Id: Ic0dedbadf6776e1a4f5e0eb1e093241e5103b3ff
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:09 -07:00
Jordan Crouse
c7ae23947d msm: kgsl: Minor cleanups for kgsl bus probe
The KGSL bus probe was not quite resilient for a deferred probe. Move
a memory allocation to devm and make sure that the interconnect handle
is properly put away on failure.

Change-Id: Ic0dedbad261c483a157161a43da0b54459ed46ff
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-03-03 15:49:09 -07:00
Tony Truong
d161462d9d msm: pcie: Revert "scale CX and rate change after DRV resume"
This reverts commit 603d76db80.

This change is already present in the snapshot. This revert
will remove duplicate code.

Change-Id: Id4588031a93c041a9480ac8ef33b6d177a4a2477
Signed-off-by: Tony Truong <truong@codeaurora.org>
2020-03-03 13:02:18 -08:00
Ram Chandrasekar
5f725f308b defconfig: Enable CPU isolation cooling device for lahaina
Enable CPU isolation cooling device driver. This driver will enable the
thermal framework to isolate the CPU cores on thermal conditions.

Change-Id: Ic1f04b7d341c6165d5e971f7dc03ad27bc721897
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-03-03 11:34:38 -08:00
Karthik Poosa
92d40d99da NFC: Add driver to configure NFC-I3C controller GPIOs
Add driver to toggle NFC GPIOs for I3C enumeration to
pass for NFC controller.

Change-Id: I3eef5b8a327c2c70355c03574b06bf67e26b4419
Signed-off-by: Karthik Poosa <kpoosa2@codeaurora.org>
2020-03-03 11:08:41 -08:00
Raghavendra Rao Ananta
7025db0622 soc: qcom: Kconfig: Fix the dependencies for minidump
The minidump driver's Kconfig dependency was incorrectly set
to POWER_RESET_QCOM, instead of POWER_RESET_MSM. The build
system sees this as an unknown Kconfig option and as a result,
the minidump driver never gets a chance to be enabled. Hence,
reassign the dependency to the correct Kconfig.

Change-Id: I7ef9f059954b1b6fe2972257435a4eee3bd8ef74
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2020-03-03 09:42:06 -08:00
Elliot Berman
063d344e0d defconfig: lahaina-qgki: Move minidump to QGKI
Minidump is not yet appropriate for GKI due to missing exported symbols.
Enable statically in Lahaina QGKI for now.

Change-Id: I6bd0db37a8e1c3281249891a432cd0b4b75fe991
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
2020-03-03 09:42:06 -08:00
Abir Ghosh
b573e27008 defconfig: lahaina: Enable qbt_handler DLKM
Enable qbt_handler as a DLKM in the GKI defconfig.

Change-Id: Ib992e9f764ee021518ca7a5533c983d566319129
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-03-03 09:01:00 -08:00
Abir Ghosh
19a94b826a qbt_handler: Make the qbt driver as DLKM for GKI
Add changes to make qbt_handler as DLKM for GKI

Change-Id: I0f4908c01715847aebfc2e440f90b84a16410b1e
Signed-off-by: Rakesh Pallerla <rakeshp@qti.qualcomm.com>
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
2020-03-03 22:29:26 +05:30
qctecmdr
535241a5fb Merge "iommu/arm-smmu: Remove DOMAIN_ATTR_DEBUG" 2020-03-03 07:08:23 -08:00
qctecmdr
0f7dd8d723 Merge "msm: cvp: avoid OOB write while accessing memory" 2020-03-03 03:08:34 -08:00
Govindaraj Rajagopal
4267dcfae7 msm: cvp: avoid OOB write while accessing memory
Exclude 4 bytes which holds the size of the buffer while calculating
the actual buffer size to avoid OOB write.

Change-Id: I79704181e0bafc905064621d7cd6e682cca15982
Signed-off-by: suchawla <suchawla@codeaurora.org>
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
2020-03-03 11:49:57 +05:30
qctecmdr
1b081c88d1 Merge "drm: Add DisplayPort colorspace property creation function" 2020-03-02 21:33:44 -08:00
qctecmdr
b090557030 Merge "iommu/arm-smmu: Rationalize TLB sync timeout handling" 2020-03-02 21:33:43 -08:00
qctecmdr
f3ed56f0e1 Merge "msm: pcie: add option to disable L1ss TO for DRV suspend" 2020-03-02 18:28:28 -08:00
qctecmdr
2194df887b Merge "msm: kgsl: Set default bus control to true" 2020-03-02 18:28:27 -08:00
qctecmdr
59c71da3d6 Merge "msm: kgsl: Make a device specific scales_bandwidth function" 2020-03-02 18:28:27 -08:00
Tatenda Chipeperekwa
897ebf670e clk: qcom: update the DisplayPort clocks
Update the frequencies of the clocks from Hz to KHz so that they
match the frequencies requested by the DisplayPort driver. This
ensures that the clock framework correctly scales parent clock
values for all DisplayPort clock requests.

Change-Id: I46be984340902f1facba59ad966e0f2ad1b1b006
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-03-02 17:04:59 -08:00
Gaurav Kashyap
d505199fbb scsi: ufs: crypto fix on QTI ufs
Crypto fix to match v5-v6 update which will allow
compilation outside SCSI_UFS_CRYPTO config.

Change-Id: Ic722f17c077c2369303c271a0177d665fe6dcae7
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
2020-03-02 15:39:37 -08:00
qctecmdr
f5b276ebbd Merge "interconnect: qcom: Remove duplicate compatible string" 2020-03-02 15:30:40 -08:00
Isaac J. Manjarres
a1536228ea iommu/arm-smmu: Cleanup qsmmuv500_iova_to_phys_hard()
qsmmuv500_iova_to_phys_hard() takes in the IOMMU domain as an
input parameter, but only uses it to derive the SMMU domain.
In preparation for moving this function out to a file where
to_smmu_domain() will not be available, require that the input
argument be an SMMU domain, instead of the IOMMU domain. This
change has no functional impact.

Change-Id: I2ac7efbae70df2378dc382d697dcfe7a676b85f2
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:33 -08:00
Isaac J. Manjarres
24edad3d95 iommu/arm-smmu: Remove DOMAIN_ATTR_DEBUG
DOMAIN_ATTR_DEBUG is queried by the qsmmuv500_iova_to_phys()
function, which will move outside of arm-smmu.c, requiring
arm_smmu_domain_get_attr() to be exposed, which doesn't make
sense for only one attribute.

Thus, remove this domain attribute and inform the SMMU driver
that it is operating on a debug domain by introducing a new
marker in the msm_iommu_domain for debug domains. This patch
has no functional impact.

Change-Id: I86dfbadab0a74f9018acc602eea28b2a3a2c38b5
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:32 -08:00
Isaac J. Manjarres
b5f2204f08 iommu/arm-smmu: Cleanup arm_smmu_init()
arm_smmu_init() has retained some workarounds for
back when it could be invoked multiple times as either
part of the initcall sequences, or through the IOMMU
OF table. This was necessary before the driver
core handled dependencies between an IOMMU master
and an IOMMU device. Since this is no longer the case,
we can remove this logic. Also, while we're here,
unregister the TBU driver if the SMMU driver cannot
be registered.

Change-Id: I5c2ed4a046c63babb3bd60390c468a4e5e27de6e
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:31 -08:00
Isaac J. Manjarres
90c4319e85 iommu/arm-smmu: Rationalize TLB sync timeout handling
The current TLB sync timeout handling doesn't make sense
in the context of non QSMMU-V500 SMMU V2 implementations, so
introduce the notion of architecture specific handling
for TLB sync timeouts.

Change-Id: Ibceb5422d6488f9e67cc4c4ed968348ad92aa834
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-03-02 12:14:26 -08:00
qctecmdr
1723ebdd64 Merge "msm: cvp: Add AXI reset pulse" 2020-03-02 11:58:08 -08:00
qctecmdr
e834b0464c Merge "usb: dwc3: Do not initiate remote wakeup from core layer" 2020-03-02 11:58:08 -08:00
qctecmdr
1dc2d12bba Merge "msm: kgsl: Remove the extra recovery hop" 2020-03-02 11:58:08 -08:00
qctecmdr
692509a8fa Merge "Merge fbe changes from upstream 5.4" 2020-03-02 11:58:08 -08:00
qctecmdr
0963e5d909 Merge "phy: ufs: Refactor phy_power_on and phy_calibrate callbacks" 2020-03-02 09:05:58 -08:00