Skip to content

Commit 8639047

Browse files
superna9999vinodkoul
authored andcommitted
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>
1 parent 5daf1bb commit 8639047

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/phy/qualcomm/phy-qcom-qmp-combo.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,7 @@ struct qmp_combo {
18531853
unsigned int dp_aux_cfg;
18541854
struct phy_configure_opts_dp dp_opts;
18551855
unsigned int dp_init_count;
1856+
bool dp_powered_on;
18561857

18571858
struct clk_fixed_rate pipe_clk_fixed;
18581859
struct clk_hw dp_link_hw;
@@ -3133,6 +3134,8 @@ static int qmp_combo_dp_power_on(struct phy *phy)
31333134
/* Configure link rate, swing, etc. */
31343135
cfg->configure_dp_phy(qmp);
31353136

3137+
qmp->dp_powered_on = true;
3138+
31363139
mutex_unlock(&qmp->phy_mutex);
31373140

31383141
return 0;
@@ -3147,6 +3150,8 @@ static int qmp_combo_dp_power_off(struct phy *phy)
31473150
/* Assert DP PHY power down */
31483151
writel(DP_PHY_PD_CTL_PSR_PWRDN, qmp->dp_dp_phy + QSERDES_DP_PHY_PD_CTL);
31493152

3153+
qmp->dp_powered_on = false;
3154+
31503155
mutex_unlock(&qmp->phy_mutex);
31513156

31523157
return 0;

0 commit comments

Comments
 (0)