Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom: qmp-combo: store DP phy power state

Switching the PHY Mode requires the DisplayPort PHY to be powered off,
keep track of the DisplayPort phy power state.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@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-3-43272d6eca92@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Neil Armstrong and committed by
Vinod Koul
86390472 5daf1bbc

+5
+5
drivers/phy/qualcomm/phy-qcom-qmp-combo.c
··· 1853 1853 unsigned int dp_aux_cfg; 1854 1854 struct phy_configure_opts_dp dp_opts; 1855 1855 unsigned int dp_init_count; 1856 + bool dp_powered_on; 1856 1857 1857 1858 struct clk_fixed_rate pipe_clk_fixed; 1858 1859 struct clk_hw dp_link_hw; ··· 3134 3133 /* Configure link rate, swing, etc. */ 3135 3134 cfg->configure_dp_phy(qmp); 3136 3135 3136 + qmp->dp_powered_on = true; 3137 + 3137 3138 mutex_unlock(&qmp->phy_mutex); 3138 3139 3139 3140 return 0; ··· 3149 3146 3150 3147 /* Assert DP PHY power down */ 3151 3148 writel(DP_PHY_PD_CTL_PSR_PWRDN, qmp->dp_dp_phy + QSERDES_DP_PHY_PD_CTL); 3149 + 3150 + qmp->dp_powered_on = false; 3152 3151 3153 3152 mutex_unlock(&qmp->phy_mutex); 3154 3153