]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: qcom: pcie: Determine has_nocsr_reset dynamically
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Fri, 11 Apr 2025 11:31:19 +0000 (19:31 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Apr 2025 11:39:04 +0000 (17:09 +0530)
commitea57d7fe4f5af517b5ce91fdff96cc33be932690
tree11cab92ddefedac3c8bd672fe9fcc395ad89bfa0
parentbdeff6d8a211c832f5ce1a65aff17f4a5e6de00f
phy: qcom: pcie: Determine has_nocsr_reset dynamically

Decide the in-driver logic based on whether the nocsr reset is present
and defer checking the appropriateness of that to dt-bindings to save
on boilerplate.

Reset controller APIs are fine consuming a nullptr, so no additional
checks are necessary there.

Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Wenbin Yao <quic_wenbyao@quicinc.com>
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Aleksandrs Vinarskis <alex.vinarskis@gmail.com>
Link: https://lore.kernel.org/r/20250411113120.651363-2-quic_wenbyao@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c