Commit Graph

1163205 Commits

Author SHA1 Message Date
qctecmdr
1457417b6d Merge "clk: qcom: tcsrcc-niobe: Add support for TCSRCC on NIOBE" 2024-01-11 00:37:54 -08:00
qctecmdr
621c79d040 Merge "input: pm8941-pwrkey: Add DS and Hibernate support for pwrkey" 2024-01-11 00:37:53 -08:00
qctecmdr
dadafa4e3a Merge "modules.list.msm.pitti: Add nvmem qfprom module for Pitti" 2024-01-11 00:37:52 -08:00
Kalpak Kawadkar
2c433f68dc arm64: defconfig: Enable clock drivers for NIOBE
Enable tcsrcc, debugcc, rpmhcc, cpufreq_hw and cpufreq_hw_debug
drivers on NIOBE platform.

Change-Id: I74e3cc1fc3c26bc13b2e6b22a6e5dff83bf19d3d
Signed-off-by: Kalpak Kawadkar <quic_kkawadka@quicinc.com>
2024-01-11 00:35:47 -08:00
Nitesh Kumar
56192faf45 modules.blocklist: Add limits_stress driver to block list for pitti
limits_stress driver doesn't need to be probed at boot time.
It is a limits stress module and needs to be probed
on need basis for thermal stress testing.

Change-Id: Ib913a587905904672924988bf695224e1c52c11b
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2024-01-10 22:51:14 -08:00
qctecmdr
50606fe973 Merge "interconnect: qcom: lemans: Add keepalive for PCI0 BCM" 2024-01-10 22:13:09 -08:00
qctecmdr
3e0c9b1fec Merge "pinctrl: qcom: Add support for pmiv0104" 2024-01-10 22:13:08 -08:00
qctecmdr
51a4a24dc1 Merge "usb: dwc3: msm: Add NULL pointer check for dwc and dwc->xhci in dwc3_msm_suspend" 2024-01-10 22:13:07 -08:00
qctecmdr
2687769f5c Merge "drivers: thermal: Add cold temperature interrupt support in tsens driver" 2024-01-10 22:13:06 -08:00
Nitesh Kumar
112fa50652 arm64: defconfig: Enable thermal defconfigs for pitti
Enable thermal driver like, tsens driver, cpu pause,
cpufreq cdev, devfreq cdev, qmi drivers, userspace
cooling drivers for strait. Add changes in bazel
build system.

Change-Id: I2ea23338f07beecd672b228bc409b06f4ad14efc
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2024-01-11 11:27:45 +05:30
Jaskaran Singh
77b4e4f2ff defconfig: Enable uncached system heap for Pitti
Pitti is not DMA-coherent, so the support of an uncached system heap is
required for clients. Enable the uncached system heap for Pitti via the
config for it.

Change-Id: I7cbe19506f034b896acd771875cbefdfa4406b08
Signed-off-by: Jaskaran Singh <quic_jasksing@quicinc.com>
2024-01-11 11:13:02 +05:30
Jaskaran Singh
c2fb29d260 defconfig: Enable the secure buffer driver for Pitti
Enable the secure buffer driver for Pitti to allow memory buffers to be
secured.

Change-Id: I50893eb871d054efad458c7147ffc77d4fdcec6e
Signed-off-by: Jaskaran Singh <quic_jasksing@quicinc.com>
2024-01-11 11:13:02 +05:30
Jaskaran Singh
614d9ea50d defconfig: Enable the DMA-BUF system secure heaps for Pitti
Enable the DMA-BUF system secure heaps for Pitti.

Change-Id: I3786a5b470c9266a7a2cbd04e0468b28addbdf8e
Signed-off-by: Jaskaran Singh <quic_jasksing@quicinc.com>
2024-01-11 11:13:02 +05:30
Prashanth K
79f50fbfb0 defconfig: Enable USB QMI Audio for pitti
Enable digital audio tunnel mode for pitti.

Change-Id: Id65e0d01e27ef6518f2803b3842b25c8cd4a44a8
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2024-01-11 10:49:39 +05:30
Vandana Gupta
b92bf110e6 arm64: defconfig: Enable bus dcvs config in pitti
Enable bus config memlat, bwmon, pmu-lib, dcvs, cpucp and
cpucp log flag in pitti.

Change-Id: I42695692e17f036cc54b0597c8138dff018a0ef4
Signed-off-by: Vandana Gupta <quic_vandgupt@quicinc.com>
2024-01-11 10:06:02 +05:30
qctecmdr
ce09361c50 Merge "coresight: Replace mutex with spinlock" 2024-01-10 19:32:35 -08:00
qctecmdr
5b71499c86 Merge "usb: phy: Avoid repeater reset & turning off clocks/LDOs if EUD is enabled" 2024-01-10 19:32:34 -08:00
qctecmdr
f064bc5a4f Merge "backlight: qcom-spmi-wled: update check for OVP fault in probe" 2024-01-10 19:32:33 -08:00
qctecmdr
dd93349949 Merge "interconnect: qcom: bcm-voter: defer probe if crm device is unavailable" 2024-01-10 19:32:32 -08:00
qctecmdr
99a7e91dac Merge "usb: dwc3-msm: Toggle UTMI_OTG_VBUS_VALID while enabling EUD" 2024-01-10 19:32:32 -08:00
qctecmdr
c99cc4ce54 Merge "usb: dwc3: msm: Ensure USB2 SUSPHY bit is cleared during runstop 0" 2024-01-10 19:32:31 -08:00
qctecmdr
da2ba4489a Merge "soc: qcom: hab: move linux-specific implementation of hab_ctx_free out side of the common file" 2024-01-10 12:47:40 -08:00
qctecmdr
e3dad44c4f Merge "soc: qcom: hab: Modify the log print" 2024-01-10 12:47:39 -08:00
qctecmdr
5337a1ffad Merge "soc: qcom: hab: Add put_page() action in pages_list_destroy()" 2024-01-10 12:47:38 -08:00
qctecmdr
21313eae95 Merge "wcd939x-i2c: add missing registers definition for v2.0" 2024-01-10 12:47:38 -08:00
qctecmdr
2eb18da253 Merge "mfd: qcom-i2c-pmic: Skip suspend/resume callbacks when interrupts undefined" 2024-01-10 12:47:37 -08:00
Sarosh Hasan
df57b6ad47 net: stmmac: Disable/Enable GDSC regulators on LPM
Fix GDSC clock disable/enable and dma reset issue on LPM.

Change-Id: I5b38efcd56ddeaec6cdd6d967cb22982a9509e4e
Signed-off-by: Sarosh Hasan <quic_sarohasa@quicinc.com>
2024-01-10 11:32:04 -08:00
qctecmdr
ed08e4bfb3 Merge "Merge keystone/android14-6.1-keystone-qcom-release.6.1.57 (97abf17) into qcom-6.1" 2024-01-10 09:45:17 -08:00
Shailendra Singh
ab3e70d212 Niobe: Enable kernel configs to support wlan compilation
Enabling few additional kernel configs which are required
to meet the dependencies for enabling wlan on the target.
 - Enable configs to compile wlan for Niobe target.
 - Add required modules to compile wlan for Niobe target.

Change-Id: Id081ee21cbe1cb7751b127d3d0b735c1fc0f6084
CRs-Fixed: 3686653
Signed-off-by: Shailendra Singh <quic_shasing@quicinc.com>
2024-01-10 18:37:04 +05:30
Ram Kumar Dwivedi
9df49a1037 ufs: phy: Add phy wrapper file for sa8295
This is a snapshot of ufs phy driver from msm-5.15 branch at
commit 69b9df0c3412 ("ufs: phy: Add phy wrapper file for sa8295").

Added phy-qcom-ufs-qmp-v4-lahaina.ko for makena to autogvm bazel list.

Change-Id: I59e0fe96930f0e1ac8bde67d03d44af4f7de6362
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Signed-off-by: Abdul Salam <quic_asalam@quicinc.com>
Signed-off-by: Jayasri Bhattacharyya <quic_jbhattac@quicinc.com>
2024-01-10 17:44:02 +05:30
qctecmdr
5e562a98b0 Merge "ARM: config: msm: Enable configs for GENI serial drivers for pitti" 2024-01-10 04:10:03 -08:00
qctecmdr
63f7d569b9 Merge "coresight : Decouple "CS_MODE_SYSFS" and "CS_MODE_PERF"" 2024-01-10 04:10:02 -08:00
qctecmdr
71619316e0 Merge "input: pm8941-pwrkey: pull-up and delay changes" 2024-01-10 04:10:01 -08:00
qctecmdr
83db8fef5a Merge "soc: qcom: qmi_interface: Protect sk_user_data with RCU" 2024-01-10 04:10:00 -08:00
qctecmdr
fc107693a3 Merge "uio: msm_sharedmem: adding config changes for pitti" 2024-01-10 04:10:00 -08:00
qctecmdr
ab795dbabd Merge "coresight: Fix issues when use simpleperf to collect the ETM" 2024-01-10 04:09:59 -08:00
qctecmdr
45a92bae97 Merge "virt: gunyah: Add CAM labels for irq and mem lending" 2024-01-10 04:09:58 -08:00
qctecmdr
c9d584d8f2 Merge "soc: qcom: hab: fix memory leak issue when habmem_export_vchan fails" 2024-01-10 04:09:58 -08:00
qctecmdr
e118ad280f Merge "ufs: ufs-qcom: Fix the hwq index reference in vh functions" 2024-01-10 04:09:57 -08:00
Raviteja Laggyshetty
375913fc1f interconnect: qcom: lemans: Add keepalive for PCI0 BCM
Added keepalive flag for PCI0 BCM to keep the pcie-anoc
related clocks ON for Hypervisor.

Change-Id: I9d77123f2c9abf94d11f96bd97eb6de83ef21d65
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2024-01-10 16:02:27 +05:30
Phani Kumar Uppalapati
d93135fa86 wcd939x-i2c: wait wcd usbss device for complete resume
Add wait mechanism for WCD usbss device to completely
come out of resume before perform register writes.

Change-Id: I0dff6f56ed7b685252e43e5db1e596ceb53a3a45
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-01-10 01:50:19 -08:00
Nitesh Kumar
5af39855b2 drivers: thermal: Add cold temperature interrupt support in tsens driver
Add cold temperature interrupt handling support in tsens driver.

Change-Id: I9a6bb653882bc59368396181cd9fb019f90ca90b
Signed-off-by: Nitesh Kumar <quic_nitekuma@quicinc.com>
2024-01-10 15:08:39 +05:30
Umang Chheda
f14494af59 input: pm8941-pwrkey: Add DS and Hibernate support for pwrkey
On Hibernate entry, PMIC H/W context is lost and S/W context
is preserved. To make sure that H/W and S/W context are in sync
free the IRQs in freeze callback and in restore callback re-initialize
the H/W and re-register the IRQs to make sure that S/W and H/W context
are in sync. Similar change is required for Deep-Sleep use-case as well.

Add changes to support Deep-Sleep and Hibernate feature for pwrkey
driver.

Change-Id: I12abfb6a864f16e23676c2cd822ef804f6f0b952
Signed-off-by: Umang Chheda <quic_uchheda@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2024-01-10 11:03:51 +05:30
Prashanth K
e86814bcfd usb: phy: Avoid repeater reset & turning off clocks/LDOs if EUD is enabled
Keep the eusb2 resources such as clocks and LDOs if EUD is in
debug mode. Avoid resetting and powering down the repeater,
since it can affect the EUD interrupts resulting in failure of
EUD spoof attach/detach.

Change-Id: Ib92d628127d07b57e404d87d3185863dd789f605
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2024-01-09 20:21:46 -08:00
Manish Nagar
dbbd6c625f usb: dwc3: msm: Add NULL pointer check for dwc and
dwc->xhci in dwc3_msm_suspend

Consider a case if the config for xhci is not enabled,
and we are trying for role switch, in host mode will be
updated accordingly, but the xhci will be NULL. Fix this
by adding explicit NULL checks.

Change-Id: Ib7dea431b972f3f5ee179016a721591298340cb5
Signed-off-by: Manish Nagar <quic_mnagar@quicinc.com>
2024-01-09 19:38:43 -08:00
Krishna Kurapati
6205f21703 usb: dwc3: msm: Ensure USB2 SUSPHY bit is cleared during runstop 0
On SM6375/SM8150, it is observed that if the USB2PHYCFG SUSPHY bit is
set during clearing of RUN_STOP in device mode, then sometimes, the
DSTS Ctrl Dev halt bit it not being set soon and the timeout waiting
for it to be set is delaying run stop routing for more than 4 seconds
and during PIPO tests, this can result in causing next plugin
enumeration failure as the next plug-in's run stop setting doesn't go
through.

As per register dump observations, it is seen that UTMI clock is
suspended in fail case and as per SVE, it must be kept on during
this routine. So use the existing kretprobes to ensure UTMI clock
is kept on during run stop routine.

Ideally the wrapper takes care of setting and clearing this bit and
ensuring that it is cleared during runtime of core/gadget. So clear
this bit during run_stop(0) and leave it to msm_suspend for setting
it again.

Change-Id: I8878956c5dae82cc3566c8933407c5e10c0248dc
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2024-01-09 19:29:24 -08:00
Krishna Kurapati
71b852fba9 usb: dwc3: msm: Check explicitly if dwc3 core is suspended or not
While exiting peripheral mode, it is better to explicitly check if we
are suspended or not instead of checking for return value. Whatever
be the reason, put sync on child is ideally supposed to suspend the
child and ensure we are good to suspend the wrapper. There is a chance
that put sync might return 0 although the disconnect interrupt didn't
come and still the child is not suspended. So check explicitly whether
the child is suspended or not before we try/skip force suspending it.

Change-Id: Ic9dcabc3f405f4bc4093bbb403410eedc0564361
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2024-01-09 19:28:59 -08:00
Prasad Kumpatla
c444dbae41 wcd939x-i2c: add missing registers definition for v2.0
Add missing register definitions for wcd939x version 2.0.

Change-Id: Ie9606bb16844058d315ac7c3cbd9454c558328d5
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2024-01-09 08:42:26 -08:00
Manish Pandey
a440d1e03e modules.list.msm.pitti: Add nvmem qfprom module for Pitti
Add qfprom module in modules.list.msm.pitti so that the
module is loaded automatically from the first stage RAM
disk image during Linux kernel boot up.
It is needed for boot_config reg reading support from
nvmem cell to check if the boot device is ufs or eMMC.

Change-Id: I29caa56c5fb773077b220fae2cb024d5e4422f52
Signed-off-by: Manish Pandey <quic_mapa@quicinc.com>
2024-01-09 18:59:47 +05:30
Prashanth K
13da97677b usb: dwc3-msm: Toggle UTMI_OTG_VBUS_VALID while enabling EUD
Commit 21d22fcad404 ("soc: qcom: eud: Do USB spoof disconnect and
connect with enable/disable EUD") introduced a software WA for a
HW issue. While enabling EUD from sysfs, EUD driver was notifying
USB by sending extcon in the order 1->0->1. Thus disconnecting &
connecting USB, which in turn toggles UTMI_OTG_VBUS_VALID bit.

But this causes the USB2phy to suspend, eventually turning off
clocks/LDOs and resetting repeater (for eusb2). And during this
time EUD driver enables EUD interrupts by setting EUD_INTR_EN.
But this register write operation doesn't go through since the
phy/repeater resources are not active, and resulting in EUD
interrupts being inactive. During spoof attach/detach these
interrupts doesn't get fired causing spoof connect/disconnect
to fail.

----------------------------------------------------------
EUD driver	dwc3-msm-core		eusb2phy
-----------------------------------------------------------
[1]
extcon(0)	stop_peripheral
		clear vbus_valid
		LPM sequence		set_suspend
					turn off clks/LDOs
					repeater_reset
					repeater_pwrdwn
-----------------------------------------------------------
[2]
enable_irq
enable_eud
-----------------------------------------------------------
[3]
extcon(1)	start_peripheral
		set vbus_valid		phy_init
					turn_on_clk
					repeater_reset_init
-----------------------------------------------------------

Here step[2] fails since the eusb resources are not available.
Fix this by toggling the vbus_bit directly from vbus_notifier,
and returning afterwards. This would comply with the SW WA and
wouldn't cause the phy to suspend. We check for EXTCON_JIG for
this purpose, this will not be set if EUD is enabled from sysfs.

Change-Id: I9aa8d2e0d620f40dd9b3f477d258734d73997aa7
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2024-01-09 03:03:29 -08:00