From: Paolo Abeni <pabeni@redhat.com>
To: Heiner Kallweit <hkallweit1@gmail.com>,
Linus Walleij <linus.walleij@linaro.org>,
Eric Dumazet <edumazet@google.com>,
David Miller <davem@davemloft.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Simon Horman <horms@kernel.org>,
Siddharth Vadapalli <s-vadapalli@ti.com>,
Roger Quadros <rogerq@kernel.org>,
Jakub Kicinski <kuba@kernel.org>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH net-next] net: ethernet: ti: davinci_emac: remove member phy_id from struct emac_platform_data
Date: Wed, 11 Feb 2026 10:10:46 +0100 [thread overview]
Message-ID: <76522b83-682b-4cba-bdb4-d4a922a49973@redhat.com> (raw)
In-Reply-To: <5bc19909-0fc7-485c-a573-4819eeea5b5d@gmail.com>
On 2/6/26 10:53 PM, Heiner Kallweit wrote:
> b4aed01de486 ("ARM: davinci: Delete DM646x board files") removed the
> last user of member phy_id. So let's remove phy_id.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/ethernet/ti/davinci_emac.c | 24 ++++++++++--------------
> include/linux/davinci_emac.h | 9 ---------
> 2 files changed, 10 insertions(+), 23 deletions(-)
>
> diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
> index ed8116fb05e..df51441a2b8 100644
> --- a/drivers/net/ethernet/ti/davinci_emac.c
> +++ b/drivers/net/ethernet/ti/davinci_emac.c
> @@ -329,7 +329,6 @@ struct emac_priv {
> u32 mac_hash2;
> u32 multicast_hash_cnt[EMAC_NUM_MULTICAST_BITS];
> u32 rx_addr_type;
> - const char *phy_id;
> struct device_node *phy_node;
> spinlock_t lock;
> /*platform specific members*/
> @@ -1418,6 +1417,7 @@ static int emac_dev_open(struct net_device *ndev)
> struct emac_priv *priv = netdev_priv(ndev);
> struct phy_device *phydev = NULL;
> struct device *phy = NULL;
> + const char *phy_id = NULL;
>
> ret = pm_runtime_resume_and_get(&priv->pdev->dev);
> if (ret < 0) {
> @@ -1502,8 +1502,8 @@ static int emac_dev_open(struct net_device *ndev)
> }
> }
>
> - /* use the first phy on the bus if pdata did not give us a phy id */
> - if (!phydev && !priv->phy_id) {
> + /* use the first phy on the bus */
> + if (!phydev) {
AFAICS emac_dev_open() is invoked also on resume, and priv->phy_id could
be not NULL at that point, the new code could lead to a different
behavior. I think it's worthy to at least mention it in the commit message.
/P
prev parent reply other threads:[~2026-02-11 9:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 21:53 [PATCH net-next] net: ethernet: ti: davinci_emac: remove member phy_id from struct emac_platform_data Heiner Kallweit
2026-02-11 9:10 ` Paolo Abeni [this message]
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=76522b83-682b-4cba-bdb4-d4a922a49973@redhat.com \
--to=pabeni@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-omap@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rogerq@kernel.org \
--cc=s-vadapalli@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox