mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
net: revert partially applied PHY topology series
The series is causing issues with PHY drivers built as modules. Since it was only partially applied and the merge window has opened let's revert and try again for v6.11. Revert6916e461e7("net: phy: Introduce ethernet link topology representation") Revert0ec5ed6c13("net: sfp: pass the phy_device when disconnecting an sfp module's PHY") Reverte75e4e074c("net: phy: add helpers to handle sfp phy connect/disconnect") Revertfdd353965b("net: sfp: Add helper to return the SFP bus name") Revert841942bc62("net: ethtool: Allow passing a phy index for some commands") Link: https://lore.kernel.org/all/171242462917.4000.9759453824684907063.git-patchwork-notify@kernel.org/ Link: https://lore.kernel.org/all/20240507102822.2023826-1-maxime.chevallier@bootlin.com/ Link: https://lore.kernel.org/r/20240513154156.104281-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -158,7 +158,6 @@
|
||||
#include <net/page_pool/types.h>
|
||||
#include <net/page_pool/helpers.h>
|
||||
#include <net/rps.h>
|
||||
#include <linux/phy_link_topology_core.h>
|
||||
|
||||
#include "dev.h"
|
||||
#include "net-sysfs.h"
|
||||
@@ -10998,12 +10997,6 @@ struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,
|
||||
#ifdef CONFIG_NET_SCHED
|
||||
hash_init(dev->qdisc_hash);
|
||||
#endif
|
||||
dev->link_topo = phy_link_topo_create(dev);
|
||||
if (IS_ERR(dev->link_topo)) {
|
||||
dev->link_topo = NULL;
|
||||
goto free_all;
|
||||
}
|
||||
|
||||
dev->priv_flags = IFF_XMIT_DST_RELEASE | IFF_XMIT_DST_RELEASE_PERM;
|
||||
setup(dev);
|
||||
|
||||
@@ -11092,8 +11085,6 @@ void free_netdev(struct net_device *dev)
|
||||
free_percpu(dev->xdp_bulkq);
|
||||
dev->xdp_bulkq = NULL;
|
||||
|
||||
phy_link_topo_destroy(dev->link_topo);
|
||||
|
||||
/* Compatibility with error handling in drivers */
|
||||
if (dev->reg_state == NETREG_UNINITIALIZED ||
|
||||
dev->reg_state == NETREG_DUMMY) {
|
||||
|
||||
Reference in New Issue
Block a user