[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <757e9a32-9b35-4818-b41b-09eaac97eb8d@yoseli.org>
Date: Fri, 14 Mar 2025 10:00:31 +0100
From: Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>
To: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Catalin Popescu <catalin.popescu@...ca-geosystems.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] net: phy: dp83826: Fix TX data voltage support
Hi there !
On 3/3/25 6:05 PM, Jean-Michel Hautbois wrote:
> When CONFIG_OF_MDIO is not set, the cfg_dac_minus and cfg_dac_plus are
> not set in dp83826_of_init(). This leads to a bad behavior in
> dp83826_config_init: the phy initialization fails, after
> MII_DP83826_VOD_CFG1 and MII_DP83826_VOD_CFG2 are set.
>
> Fix it by setting the default value for both variables.
>
> Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning")
>
> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@...eli.org>
> ---
> drivers/net/phy/dp83822.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c
> index 6599feca1967d705331d6e354205a2485ea962f2..88c49e8fe13e20e97191cddcd0885a6e075ae326 100644
> --- a/drivers/net/phy/dp83822.c
> +++ b/drivers/net/phy/dp83822.c
> @@ -854,6 +854,10 @@ static int dp83822_of_init(struct phy_device *phydev)
>
> static void dp83826_of_init(struct phy_device *phydev)
> {
> + struct dp83822_private *dp83822 = phydev->priv;
> +
> + dp83822->cfg_dac_minus = DP83826_CFG_DAC_MINUS_DEFAULT;
> + dp83822->cfg_dac_plus = DP83826_CFG_DAC_PLUS_DEFAULT;
> }
> #endif /* CONFIG_OF_MDIO */
>
>
Gentle ping to know if this patch is ok (patch 2/2 is not) and if so,
should I repost a v2 maybe ?
Thanks !
JM
Powered by blists - more mailing lists