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: stable@vger.kernel.org Fixes: d1cb613 ("net: phy: qcom: add support for QCA807x PHY Family") Signed-off-by: George Moussalem <george.moussalem@outlook.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20250219130923.7216-1-ansuelsmth@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 27eddbf commit 992ee3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)