From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Christian Marangi <ansuelsmth@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [net-next PATCH v3 02/13] net: phy: at803x: move disable WOL to specific at8031 probe
Date: Thu, 7 Dec 2023 10:47:38 +0000 [thread overview]
Message-ID: <ZXGiysQvYXb9YJBT@shell.armlinux.org.uk> (raw)
In-Reply-To: <20231206235728.6985-3-ansuelsmth@gmail.com>
On Thu, Dec 07, 2023 at 12:57:17AM +0100, Christian Marangi wrote:
> Move the WOL disable call to specific at8031 probe to make at803x_probe
> more generic and drop extra check for PHY ID.
>
> Keep the same previous behaviour by first calling at803x_probe and then
> disabling WOL.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
> ---
> drivers/net/phy/at803x.c | 29 +++++++++++++++++++----------
> 1 file changed, 19 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c
> index ef203b0807e5..85302d96d133 100644
> --- a/drivers/net/phy/at803x.c
> +++ b/drivers/net/phy/at803x.c
> @@ -886,15 +886,6 @@ static int at803x_probe(struct phy_device *phydev)
> priv->is_fiber = true;
> break;
> }
> -
> - /* Disable WoL in 1588 register which is enabled
> - * by default
> - */
> - ret = phy_modify_mmd(phydev, MDIO_MMD_PCS,
> - AT803X_PHY_MMD3_WOL_CTRL,
> - AT803X_WOL_EN, 0);
> - if (ret)
> - return ret;
> }
>
> return 0;
> @@ -1591,6 +1582,24 @@ static int at803x_cable_test_start(struct phy_device *phydev)
> return 0;
> }
>
> +static int at8031_probe(struct phy_device *phydev)
> +{
> + int ret;
> +
> + ret = at803x_probe(phydev);
> + if (ret)
> + return ret;
> +
> + /* Disable WoL in 1588 register which is enabled
> + * by default
> + */
> + ret = phy_modify_mmd(phydev, MDIO_MMD_PCS,
> + AT803X_PHY_MMD3_WOL_CTRL,
> + AT803X_WOL_EN, 0);
> +
> + return ret;
return phy_modify_mmd(...) ?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2023-12-07 10:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-06 23:57 [net-next PATCH v3 00/13] net: phy: at803x: cleanup Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 01/13] net: phy: at803x: fix passing the wrong reference for config_intr Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 02/13] net: phy: at803x: move disable WOL to specific at8031 probe Christian Marangi
2023-12-07 10:47 ` Russell King (Oracle) [this message]
2023-12-06 23:57 ` [net-next PATCH v3 03/13] net: phy: at803x: raname hw_stats functions to qca83xx specific name Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 04/13] net: phy: at803x: move qca83xx specific check in dedicated functions Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 05/13] net: phy: at803x: move specific DT option for at8031 to specific probe Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 06/13] net: phy: at803x: move specific at8031 probe mode check to dedicated probe Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 07/13] net: phy: at803x: move specific at8031 config_init to dedicated function Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 08/13] net: phy: at803x: move specific at8031 WOL bits " Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 09/13] net: phy: at803x: move specific at8031 config_intr " Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 10/13] net: phy: at803x: make at8031 related DT functions name more specific Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 11/13] net: phy: at803x: move at8031 functions in dedicated section Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 12/13] net: phy: at803x: move at8035 specific DT parse to dedicated probe Christian Marangi
2023-12-06 23:57 ` [net-next PATCH v3 13/13] net: phy: at803x: drop specific PHY ID check from cable test functions Christian Marangi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZXGiysQvYXb9YJBT@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andrew@lunn.ch \
--cc=ansuelsmth@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.