net: phy: qcom: qca807x fix condition for DAC_DSP_BIAS_CURRENT
Subsystems (5)
PATCH 1/1 net: phy: qcom: qca807x fix condition for DAC_DSP_BIAS_CURRENT
From: George Moussalem <[email protected]>
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.
--- drivers/net/phy/qcom/qca807x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/qcom/qca807x.c +1 -1
@@ -774,7 +774,7 @@ static int qca807x_config_init(struct phy_device *phydev) control_dac &= ~QCA807X_CONTROL_DAC_MASK ;if (!priv->dac_full_amplitude) control_dac |=QCA807X_CONTROL_DAC_DSP_AMPLITUDE ; -if (!priv->dac_full_amplitude) +if (!priv->dac_full_bias_current) control_dac |=QCA807X_CONTROL_DAC_DSP_BIAS_CURRENT ;if (!priv->dac_disable_bias_current_tweak) control_dac |=QCA807X_CONTROL_DAC_BIAS_CURRENT_TWEAK ;
Signature · 1 line
2.47.1
Quoted 10 lines · Christian Marangi
From: George Moussalem <[email protected]>
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.
Fixes d1cb613efbd3 ("net: phy: qcom: add support for QCA807x PHY Family")Signed-off-by George Moussalem <[email protected]>Signed-off-by Christian Marangi <[email protected]>
Andrew
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Wed, 19 Feb 2025 14:09:21 +0100 you wrote:
From: George Moussalem <[email protected]>
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.
Quoted 6 lines
Fixes d1cb613efbd3 ("net: phy: qcom: add support for QCA807x PHY Family")Signed-off-by George Moussalem <[email protected]>Signed-off-by Christian Marangi <[email protected]>[...]
Here is the summary with links:
- [net] net: phy: qcom: qca807x fix condition for DAC_DSP_BIAS_CURRENT
https://git.kernel.org/netdev/net/c/992ee3ed6e9f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html