ixgbe: register a mdiobus
Most dsa devices expect a 'struct mii_bus' pointer to talk to switches via the MII interface. While this works for dsa devices, it will not work safely with Linux PHYs in all configurations since the firmware of the ixgbe device may be polling some PHY addresses in the background. Signed-off-by: Stephen Douthit <stephend@silicom-usa.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
1fb3a7a75e
commit
8fa10ef012
@@ -12,6 +12,7 @@
|
||||
#include <linux/aer.h>
|
||||
#include <linux/if_vlan.h>
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/phy.h>
|
||||
|
||||
#include <linux/timecounter.h>
|
||||
#include <linux/net_tstamp.h>
|
||||
@@ -561,6 +562,7 @@ struct ixgbe_adapter {
|
||||
struct net_device *netdev;
|
||||
struct bpf_prog *xdp_prog;
|
||||
struct pci_dev *pdev;
|
||||
struct mii_bus *mii_bus;
|
||||
|
||||
unsigned long state;
|
||||
|
||||
|
Reference in New Issue
Block a user