Skip to content

Commit 992ee3e

Browse files
georgemoussalemkuba-moo
authored andcommitted
net: phy: qcom: qca807x fix condition for DAC_DSP_BIAS_CURRENT
While setting the DAC value, the wrong boolean value is evaluated to set the DSP bias current. So let's correct the conditional statement and use the right boolean value read from the DTS set in the priv. Cc: [email protected] Fixes: d1cb613 ("net: phy: qcom: add support for QCA807x PHY Family") Signed-off-by: George Moussalem <[email protected]> Signed-off-by: Christian Marangi <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 27eddbf commit 992ee3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/qcom/qca807x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ static int qca807x_config_init(struct phy_device *phydev)
774774
control_dac &= ~QCA807X_CONTROL_DAC_MASK;
775775
if (!priv->dac_full_amplitude)
776776
control_dac |= QCA807X_CONTROL_DAC_DSP_AMPLITUDE;
777-
if (!priv->dac_full_amplitude)
777+
if (!priv->dac_full_bias_current)
778778
control_dac |= QCA807X_CONTROL_DAC_DSP_BIAS_CURRENT;
779779
if (!priv->dac_disable_bias_current_tweak)
780780
control_dac |= QCA807X_CONTROL_DAC_BIAS_CURRENT_TWEAK;

0 commit comments

Comments
 (0)