diff options
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index e819f1997550..ff9f9f1725e3 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -4320,6 +4320,8 @@ static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, | |||
4320 | data->phy_id = adapter->hw.phy.addr; | 4320 | data->phy_id = adapter->hw.phy.addr; |
4321 | break; | 4321 | break; |
4322 | case SIOCGMIIREG: | 4322 | case SIOCGMIIREG: |
4323 | e1000_phy_read_status(adapter); | ||
4324 | |||
4323 | switch (data->reg_num & 0x1F) { | 4325 | switch (data->reg_num & 0x1F) { |
4324 | case MII_BMCR: | 4326 | case MII_BMCR: |
4325 | data->val_out = adapter->phy_regs.bmcr; | 4327 | data->val_out = adapter->phy_regs.bmcr; |