From: Heiner Kallweit <hkallweit1@gmail.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
David Miller <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>, Andrew Lunn <andrew@lunn.ch>,
Russell King - ARM Linux <linux@armlinux.org.uk>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: [PATCH net-next v2 3/3] net: phy: remove phy_driver_is_genphy_10g
Date: Sat, 14 Jun 2025 22:32:47 +0200 [thread overview]
Message-ID: <49b0589a-9604-4ee9-add5-28fbbbe2c2f3@gmail.com> (raw)
In-Reply-To: <5778e86e-dd54-4388-b824-6132729ad481@gmail.com>
Remove now unused function phy_driver_is_genphy_10g().
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/phy_device.c | 23 -----------------------
include/linux/phy.h | 2 --
2 files changed, 25 deletions(-)
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index c132ae977..e2b5d9016 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -1706,29 +1706,6 @@ struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
}
EXPORT_SYMBOL(phy_attach);
-static bool phy_driver_is_genphy_kind(struct phy_device *phydev,
- struct device_driver *driver)
-{
- struct device *d = &phydev->mdio.dev;
- bool ret = false;
-
- if (!phydev->drv)
- return ret;
-
- get_device(d);
- ret = d->driver == driver;
- put_device(d);
-
- return ret;
-}
-
-bool phy_driver_is_genphy_10g(struct phy_device *phydev)
-{
- return phy_driver_is_genphy_kind(phydev,
- &genphy_c45_driver.mdiodrv.driver);
-}
-EXPORT_SYMBOL_GPL(phy_driver_is_genphy_10g);
-
/**
* phy_detach - detach a PHY device from its network device
* @phydev: target phy_device struct
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 43852e711..2347e5ecc 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -2109,6 +2109,4 @@ module_exit(phy_module_exit)
#define module_phy_driver(__phy_drivers) \
phy_module_driver(__phy_drivers, ARRAY_SIZE(__phy_drivers))
-bool phy_driver_is_genphy_10g(struct phy_device *phydev);
-
#endif /* __PHY_H */
--
2.49.0
next prev parent reply other threads:[~2025-06-14 20:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-14 20:29 [PATCH net-next v2 0/3] net: phy: remove phy_driver_is_genphy and phy_driver_is_genphy_10g Heiner Kallweit
2025-06-14 20:30 ` [PATCH net-next v2 1/3] net: phy: add flag is_genphy_driven to struct phy_device Heiner Kallweit
2025-06-16 9:52 ` Russell King (Oracle)
2025-06-14 20:31 ` [PATCH net-next v2 2/3] net: phy: improve phy_driver_is_genphy Heiner Kallweit
2025-06-16 9:53 ` Russell King (Oracle)
2025-06-14 20:32 ` Heiner Kallweit [this message]
2025-06-16 9:54 ` [PATCH net-next v2 3/3] net: phy: remove phy_driver_is_genphy_10g Russell King (Oracle)
2025-06-17 1:40 ` [PATCH net-next v2 0/3] net: phy: remove phy_driver_is_genphy and phy_driver_is_genphy_10g patchwork-bot+netdevbpf
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=49b0589a-9604-4ee9-add5-28fbbbe2c2f3@gmail.com \
--to=hkallweit1@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).