Remove regulator_lock() and regulator_is_enabled() calls in GDSC driver
as they are resulting in deadlock cases when lockdep is enabled. But it
is critical to check if parent is enabled or not before performing any
GDSC operation, as GDSC register access requires parent to be enabled.
Use the parent's use_count to check if parent is enabled or not. For
gdsc_disable(), in most cases, parent's mutex is locked by regulator
framework before calling the gdsc_disable() callback, hence it is safe
to read use_count. But in code paths where parent lock is not acquired
by regulator framework, acquire parent's mutex before reading use_count
to avoid parent getting disabled while in the middle of GDSC operations.
For gdsc_set_mode(), parent locking is needed to avoid parent getting
disabled in the middle of set mode operation. But it does not need the
per-process reentrancy provided by regulator_lock() and regulator_unlock().
Therefore replace the calls with ww_mutex_lock() and ww_mutex_unlock().
Change-Id: Ic20f9a7478b47c9fde2e686b68d636342a4b1d48
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
This change will add all the power sources which are needed
for automotive BT SoCs QCA6574/QCA6595/QCA6696.
Change-Id: Icaa9d6fe9d8fc8f51a23caeaa6dd950757b6c7ef
Signed-off-by: Xiaoning Ma <mxiaonin@codeaurora.org>
CNSS platform driver allocates host DDR memory for device.
This change exports these memory info to q5drv for QDSS streaming
feature.
Change-Id: I053704b0e146f50abd3940a91f2190ee1b2a7fe3
Signed-off-by: Kai Liu <kaliu@codeaurora.org>
Add feature support where a user can provide a custom list of TLMM
GPIOs associated with PDC pins for direct connect interrupt support.
This feature is needed because the TLMM GPIO PDC map is fixed per target
which is restrictive for a usecase where a custom list of direct connect
interrupts for GPIOs is needed.
Change-Id: Idc6e07a3405c7900445f25e60d08570f7b350fcc
Signed-off-by: Anant Goel <anantg@codeaurora.org>
Enable SDC_QTI flag to add Qualcomm specific code to upstream
MMC driver.
Change-Id: I6121c683a00cdbce364e606a04d42e540ab8e894
Signed-off-by: Hiren Gohel <vhiren@codeaurora.org>
Add snapshot of virtual subsystem notification driver
from msm-4.14. This snapshot is taken as of msm-4.14
commit 035eb1f641f7 ("drivers: soc: qcom: Add snapshot of
virtual subsystem notification driver").
Change-Id: I8006342906e80e10ce2b2579f0dd0d89a072a6c5
Signed-off-by: Anant Goel <anantg@codeaurora.org>