]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom: qmp-combo: register a typec mux to change the QMPPHY_MODE
authorNeil Armstrong <neil.armstrong@linaro.org>
Thu, 7 Aug 2025 16:33:23 +0000 (18:33 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 20 Aug 2025 16:49:09 +0000 (22:19 +0530)
commit896277138c1344cf9f5c415298f048ee29da274d
tree1348083ae7011613150c6314a29598b623de90aa
parentdd331112c0adaebbc8fc767fc805da4a641576db
phy: qcom: qmp-combo: register a typec mux to change the QMPPHY_MODE

Register a typec mux in order to change the PHY mode on the Type-C
mux events depending on the mode and the svid when in Altmode setup.

The DisplayPort phy should be left enabled if is still powered on
by the DRM DisplayPort controller, so bail out until the DisplayPort
PHY is not powered off.

The Type-C Mode/SVID only changes on plug/unplug, and USB SAFE states
will be set in between of USB-Only, Combo and DisplayPort Only so
this will leave enough time to the DRM DisplayPort controller to
turn of the DisplayPort PHY.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
[konrad: renaming, rewording, bug fixes]
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on Lenovo Thinkpad T14S
Link: https://lore.kernel.org/r/20250807-topic-4ln_dp_respin-v4-5-43272d6eca92@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c