Commit graph

1169132 commits

Author SHA1 Message Date
Somesh Dey
0c8f1050da serial: msm_geni_serial: Return error in probe upon memory allocation failure
Return error in probe when memory allocation fails for rx_fifo.

Change-Id: Ic1d784dca2ffeb3aeaa71879d5538294df9de9ca
Signed-off-by: Somesh Dey <quic_somedey@quicinc.com>
2024-10-16 05:27:24 -07:00
QCTECMDR Service
18039c1e1c Merge "drivers: powercap: add qti power telemetry hardware driver" 2024-10-07 10:29:39 -07:00
QCTECMDR Service
513124d5a4 Merge "clk: qcom: gcc-pitti: Add CLK_DONT_HOLD_STATE for gcc_usb2_refclk" 2024-10-07 06:33:53 -07:00
QCTECMDR Service
aaa18041e6 Merge "soc: qcom: aoss: Return error in qmp_send" 2024-10-07 02:40:54 -07:00
QCTECMDR Service
5a39f46976 Merge "defconfig : Enable bootmarker_proxy for gen3auto" 2024-10-06 22:09:02 -07:00
QCTECMDR Service
f3040bed7d Merge "usb: phy: Add CC line polarity inversion support for QMP PHY" 2024-10-04 11:09:32 -07:00
QCTECMDR Service
e544433d30 Merge "power: supply: bq256xx: Register interrupt after extcon" 2024-10-03 23:58:39 -07:00
Konkumutti Sai Ram
b89685028d defconfig : Enable bootmarker_proxy for gen3auto
Enable bootmarker proxy driver & add module to bazel module list for
gen3auto.

Change-Id: I0775c569dea2772b91ecd509edee218c139221e5
Signed-off-by: Konkumutti Sai Ram <quic_ksairam@quicinc.com>
2024-10-03 19:16:00 +05:30
Priyansh Jain
364b18772a drivers: powercap: add qti power telemetry hardware driver
Add qcom power telemetry hardware driver. It enables to
measure different pmic regulator power consumption data.
It exposes these data to userspace clients via powercap sysfs
interface.

Change-Id: Ie5fea39a1b4b564ca4ba8eb3c77c683e13d329a4
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2024-10-03 15:01:32 +05:30
QCTECMDR Service
0cacadb0ab Merge "drivers: misc: Add bootmarker proxy module" 2024-10-03 00:04:37 -07:00
QCTECMDR Service
0610f2103d Merge "ANDROID: build: Enable kernel test for MDM9607" 2024-10-03 00:04:37 -07:00
QCTECMDR Service
256d464100 Merge "drivers: soc: qcom: add snapshot of SPM driver" 2024-10-03 00:04:36 -07:00
QCTECMDR Service
7fbf7044f7 Merge "q2spi-msm-geni: Remove blocking wait for DB clear in TX transfer path" 2024-10-03 00:04:36 -07:00
QCTECMDR Service
7509f0be94 Merge "defconfig: niobe-gki: Enable ufs phy support for niobe" 2024-10-03 00:04:36 -07:00
QCTECMDR Service
684f6cfd14 Merge "defconfig: enable interconnect_test module for neo" 2024-10-03 00:04:36 -07:00
QCTECMDR Service
d15d673913 Merge "modules.list.msm.niobe: Add ufs phy module to load in first stage" 2024-10-03 00:04:35 -07:00
QCTECMDR Service
02e2a44a2a Merge "usb: dwc3: msm: Disable system wakeup if remote wakeup is not required" 2024-10-03 00:04:35 -07:00
Krishna Kurapati
3519f46041 usb: phy: Add CC line polarity inversion support for QMP PHY
On some targets, the CC detection input is inverted. This
leads to wrong phy lane being latched and doesn't enumerate
USB in super speed. Add support to invert the polarity
of CC Detection line coming to the phy.

Change-Id: Ib8ceacabb7f043dd7b138425a973201e40a54866
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2024-10-02 22:48:31 -07:00
Rakesh Kota
157d08801e power: supply: bq256xx: Register interrupt after extcon
Interrupt handler send extcon notofication based on POPI.
In probe there is possiblity that POPI extcon notification
before extcon registation, so moving interrupt registation
after extcon registation.

Change-Id: If4c3582418d7a487384622c6d0c25384f47e2e64
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
2024-10-01 23:46:46 +05:30
Ashish Chavan
c8ae80ba33 power: BQ256xxx: Add support for debug board detection
Disable charging when a debug board is detected.
Debug board is reported based on a GPIO state, add support
to sample this GPIO and disable charging by setting
the VINDP to 5.4V.

Change-Id: I8b8a0a833b4f50e24e0223cf9f2510c7e4ec8056
Signed-off-by: Ashish Chavan <quic_ashichav@quicinc.com>
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
2024-10-01 11:10:00 -07:00
Rakesh Kota
99c95c2c53 power: bq256xx: Handle interrupt while suspended
The i2c controller device once suspended fails all the
i2c transactions. There is a possibility that an slave i2c
interrupt occurs while the device is suspended and the
interrupt callback does the i2c transactions before the controller
has resumed.

Handle this case by maintaining a suspend/resume flag and handle
the interrupt (i2c transactions) after the device has resumed.

Change-Id: I4a505d17cfe594f70fbeac8020d3116697c0806f
Signed-off-by: Rakesh Kota <quic_kotarake@quicinc.com>
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
2024-10-01 23:26:24 +05:30
Chandana Kishori Chiluveru
7c4dda7cc6 q2spi-msm-geni: Remove blocking wait for DB clear in TX transfer path
Current driver using blocking wait_event_interruptible() call with
indefinite timeout for doorbell_pending flag clear, during multi session
ranging test scenario we could see back to back doorbell events for
SOC events and q2spi_transfer will be blocked and leading host
application timeouts.

This change will remove blocking wait logic in q2spi_transfer TX path
and complete the transfer after bulk_status CR and avoid delay for
TX q2spi_transfer completions.

Change-Id: I1015be233efaf8756076d1034640bdb0464b0185
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2024-10-01 06:20:41 -07:00
Ajit Pandey
e94f339266 clk: qcom: gcc-pitti: Add CLK_DONT_HOLD_STATE for gcc_usb2_refclk
Add CLK_DONT_HOLD_STATE flags to avoid proxy votes on gcc_usb2_refclk
during boot.

Change-Id: I3fcd6d7db268b6e1fa6c7dc234ad9d20361a7052
Signed-off-by: Ajit Pandey <quic_ajipan@quicinc.com>
2024-10-01 16:15:55 +05:30
QCTECMDR Service
6f70057701 Merge "devfreq: snapshot of devfreq-cpufreq governor" 2024-10-01 01:07:13 -07:00
Faisal Hassan
febf6564b5 usb: dwc3: msm: Disable system wakeup if remote wakeup is not required
Remote wakeup capability from system suspend is not a requirement for
certain hardware platforms. Keep system wakeup disabled based on the DT
property "qcom,disable-wakeup", and disable the interrupt accordingly.

Change-Id: I0b82877aa51616420bef414a5aa615736b99ac00
Signed-off-by: Faisal Hassan <quic_faisalh@quicinc.com>
2024-10-01 01:05:43 -07:00
Chintan Kothari
b5ecec603b defconfig: enable interconnect_test module for neo
Enable interconnect_test module for neo target. This will help
in placing proxy test votes on selected paths for debugging.

Change-Id: I7c5892097ab01ae0ca7ffeae321c7dfe94e964fd
Signed-off-by: Chintan Kothari <quic_ckothari@quicinc.com>
2024-09-30 23:27:03 -07:00
Deepak Suresh
cc87d8a866 drivers: misc: Add bootmarker proxy module
Bootmarker proxy module serves kernel clients
by providing required ops to tech pack
bootmarker drivers via call back functions.

Change-Id: Ic2fe977cb86b0d6cd4c6230226d3abae34995bf3
Signed-off-by: Deepak Suresh <quic_deesur@quicinc.com>
Signed-off-by: Konkumutti Sai Ram <quic_ksairam@quicinc.com>
2024-10-01 10:21:14 +05:30
QCTECMDR Service
03411905c8 Merge "defconfig: Enable PMIC overlay related modules for neo LA" 2024-09-30 14:30:14 -07:00
QCTECMDR Service
49e2e118e8 Merge "defconfig: autogvm: Disable CONFIG_REGULATOR_DEBUG_CONTROL" 2024-09-30 09:47:45 -07:00
Monish Chunara
978be4e1f9 defconfig: Enable PMIC overlay related modules for neo LA
Enable PMIC overlay related modules for neo LA platforms.

Change-Id: If145efed0ed6ed8f5b293f89e64d761768d2994a
Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
2024-09-30 13:18:19 +05:30
Vagdhan Kumar Kanukurthi
cfcb7f930f defconfig: autogvm: Disable CONFIG_REGULATOR_DEBUG_CONTROL
Disable CONFIG_REGULATOR_DEBUG_CONTROL for autogvm since in irq disable
state get_vlotage call from frontend to backend would lead to sleep call.

Change-Id: I3fcdbf0f573f75932607414b76d8b6b7f0095511
Signed-off-by: Vagdhan Kumar Kanukurthi <quic_vagdhank@quicinc.com>
2024-09-29 23:46:53 -07:00
Ram Prakash Gupta
156c1b6f52 defconfig: niobe-gki: Enable ufs phy support for niobe
Ufs niobe phy settings are updated post bring up, hence enable
niobe specific ufs phy driver support for niobe.

Change-Id: Id26311551949c80abcb341ac89096c4a605c068c
Signed-off-by: Ram Prakash Gupta <quic_rampraka@quicinc.com>
2024-09-30 11:23:38 +05:30
QCTECMDR Service
a645196d92 Merge "ufs: phy: Defer phy_init if phy is not probed" 2024-09-29 04:49:56 -07:00
QCTECMDR Service
3c6ac83fb7 Merge "usb: dwc3: msm: reduce cyclomatic complexity in suspend/resume functions" 2024-09-29 04:49:56 -07:00
QCTECMDR Service
860ec429a0 Merge "soc: qcom: hgsl: Fix a potential race condition" 2024-09-29 04:49:55 -07:00
QCTECMDR Service
de587005a2 Merge "qrtr: genpool: Remove setting driver state in probe" 2024-09-29 04:49:54 -07:00
QCTECMDR Service
ab21b1fd92 Merge "net: stmmac: Fix GEM_NOC crash" 2024-09-27 12:28:18 -07:00
Rajashekar kuruva
0059c13d85 usb: dwc3: msm: reduce cyclomatic complexity in suspend/resume functions
The dwc3_msm_suspend and dwc3_msm_resume functions had
high cyclomatic complexity.

To address this, the common code for interrupt configuration
was moved to a new function dwc3_msm_interrupt_enable,
and reused thereby reducing the overall complexity.

Change-Id: Icfafa39754ff5e67cee598f86dfaec0875573f49
Signed-off-by: Rajashekar kuruva <quic_kuruva@quicinc.com>
2024-09-28 00:46:42 +05:30
Ram Kumar Dwivedi
f8780b598c ufs: phy: Defer phy_init if phy is not probed
From ufs_qcom_init, we call phy_init() to initialize
phy driver for ufs. But sometimes, the phy driver
haven't got probed yet when we call phy_init.
This causes kernel panic during phy_init_clks.

So, before proceeding for phy clock initialization,
first check if the phy handle is available or not.
Defer the probe if it is not available.

Change-Id: Iadbc4f10719de2a1150fa00a9b5ec125db429464
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
2024-09-27 04:42:40 -07:00
QCTECMDR Service
a08c98f81c Merge "remoteproc: Add support to mdm9607 target" 2024-09-27 04:17:02 -07:00
QCTECMDR Service
6d2dd7769e Merge "coresight: Add snapshot of Coresight Dbgui driver" 2024-09-27 04:17:01 -07:00
QCTECMDR Service
a2aa0ba547 Merge "power: smb358: Add snapshot of smb358 charger" 2024-09-27 04:17:01 -07:00
QCTECMDR Service
7b4208a64a Merge "defconfig : Increased TIMEOUT configs for neo LA" 2024-09-27 04:17:00 -07:00
QCTECMDR Service
7644b64ccc Merge "rpmsg: glink: Resolve compilation issues" 2024-09-27 00:10:39 -07:00
QCTECMDR Service
9a98a6f8f8 Merge "arm64: defconfig: add qdss related config for Neo LA" 2024-09-27 00:10:38 -07:00
Vishnu Santhosh
9942980a0a qrtr: genpool: Remove setting driver state in probe
In setup worker genpool memory is freed and mapped again
which is causing qrtr_genpool_set_state function to access
NULL pointer in genpool probe.

Handle genpool memory mapping in setup worker only and remove
setting driver state in probe function to avoid genpool memory
access before mapping.

Change-Id: Iedbca688931506f0d0d6f63e9aa8af75b641f2cd
Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
2024-09-27 10:10:35 +05:30
Vishnu Santhosh
407f0382cb qrtr: genpool: Support local side reboot
When supported, the local side can be rebooted and the proper clean
up needs to be done so the remote side knows to stop. Add support for
qrtr genpool to register with reboot notifier to be informed when a
reboot occurs. Have the local side transition to the correct state and
handle the reboot gracefully with the remote side.

Change-Id: I6ec7ae26a75be00d8adbde66214592d73b5a912e
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
2024-09-27 10:03:01 +05:30
Vishnu Santhosh
dc05a51043 qrtr: genpool: Add state for local side
Having setup irq to only signal the local side is ready limits remote
side ability to make decisions for additional use case such as remove
and reboot. Expand setup irq support by adding a state machine for the
local side. This provides the remote side additional knowledge for each
setup irq.

Change-Id: I8b2f83c1fe508cf4af8de304268d5b50a98a73d4
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
Signed-off-by: Vishnu Santhosh <quic_vishsant@quicinc.com>
2024-09-27 09:57:13 +05:30
QCTECMDR Service
716e4f22e9 Merge "bq256xx: extcon: Add support for extcon notification for bbq256xx" 2024-09-26 15:56:15 -07:00
QCTECMDR Service
dc6da5eb1d Merge "arm: mm: dma-mapping: export arch_setup_dma_ops" 2024-09-26 15:56:14 -07:00