]> git.ipfire.org Git - thirdparty/linux.git/commit
phy: qcom: qmp-usbc: Add USB/DP exclude handling
authorXiangxu Yin <xiangxu.yin@oss.qualcomm.com>
Mon, 15 Dec 2025 12:42:06 +0000 (20:42 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Dec 2025 17:41:05 +0000 (23:11 +0530)
commit8e7670f7465d46bfa72980b310d39491a3a944d6
tree1f074b9ecd9ac96aa9d0de7d75b88d85cd7dd128
parentf3198fde573be23de1a8196bc5ebb0abe9c7e02f
phy: qcom: qmp-usbc: Add USB/DP exclude handling

When both USB and DP PHY modes are enabled simultaneously on the same
QMP USBC PHY, it can lead to hardware misconfiguration and undefined
behavior. This happens because the PHY resources are not designed to
operate in both modes at the same time.

To prevent this, introduce a mutual exclusion check between USB and DP
PHY modes.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Xiangxu Yin <xiangxu.yin@oss.qualcomm.com>
Link: https://patch.msgid.link/20251215-add-displayport-support-for-qcs615-platform-v8-10-cbc72c88a44e@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c