summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
diff options
context:
space:
mode:
authorWong Vee Khee <vee.khee.wong@intel.com>2021-02-17 17:57:05 +0800
committerDavid S. Miller <davem@davemloft.net>2021-02-17 14:25:50 -0800
commit20e07e2c3cf310578ef19fb4f1e64dc9832abd9d (patch)
tree9054e5fa327e18c5d6590ec682ab575775eecb69 /drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
parent41f1a01bb6c678681147f52180a7c20b0e12e137 (diff)
downloadlinux-20e07e2c3cf310578ef19fb4f1e64dc9832abd9d.tar.bz2
net: stmmac: Add PCI bus info to ethtool driver query output
This patch populates the PCI bus info in the ethtool driver query data. Users will be able to view PCI bus info using 'ethtool -i <interface>'. Signed-off-by: Wong Vee Khee <vee.khee.wong@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
index 1c9c67b641a2..751dfdeec41c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
@@ -236,6 +236,7 @@ static int intel_mgbe_common_data(struct pci_dev *pdev,
int ret;
int i;
+ plat->pdev = pdev;
plat->phy_addr = -1;
plat->clk_csr = 5;
plat->has_gmac = 0;