]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: pmic_glink_altmode: Fix TBT->SAFE->!TBT transition
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Tue, 17 Mar 2026 14:14:40 +0000 (15:14 +0100)
committerBjorn Andersson <andersson@kernel.org>
Thu, 19 Mar 2026 02:51:11 +0000 (21:51 -0500)
commita343fb1e03cfc9f6dc83a5efb2a8d33e9cdaf6b9
treeee7e72c88cae381678abda76cad8d8f0a5ba432e
parentd487085006109e5981e059476818243759d2e925
soc: qcom: pmic_glink_altmode: Fix TBT->SAFE->!TBT transition

Similar to the case of commit d48708500610 ("soc: qcom:
pmic_glink_altmode: Fix SVID=DP && unconnected edge case"), leaving the
TBT altmode makes pmic_glink_altmode report a SVID=TBT && mux_ctrl=0
message.

Said commit reordered the check such that the SVID is processed before
checking for NO_CONN. Rework this to take into account valid values of
mux_ctrl first and hopefully solve this for good..

Fixes: d48708500610 ("soc: qcom: pmic_glink_altmode: Fix SVID=DP && unconnected edge case")
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260317-topic-tbt_pg_fixup-v1-1-325b8647bc82@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/pmic_glink_altmode.c