Skip to content

Commit 3948b57

Browse files
committed
Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue
Jeff Kirsher says: ==================== 1GbE Intel Wired LAN Driver Updates 2017-06-07 This series contains a fix for e1000e and igb. Colin Ian King fixes sparse warnings in igb by making functions static. Chris Wilson provides a fix for a previous commit which is causing an issue during suspend "e1000e_pm_suspend()", where we need to run e1000e_pm_thaw() if __e1000_shutdown() is unsuccessful. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents b3fd822 + 833521e commit 3948b57

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

drivers/net/ethernet/intel/e1000e/netdev.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6640,12 +6640,17 @@ static int e1000e_pm_thaw(struct device *dev)
66406640
static int e1000e_pm_suspend(struct device *dev)
66416641
{
66426642
struct pci_dev *pdev = to_pci_dev(dev);
6643+
int rc;
66436644

66446645
e1000e_flush_lpic(pdev);
66456646

66466647
e1000e_pm_freeze(dev);
66476648

6648-
return __e1000_shutdown(pdev, false);
6649+
rc = __e1000_shutdown(pdev, false);
6650+
if (rc)
6651+
e1000e_pm_thaw(dev);
6652+
6653+
return rc;
66496654
}
66506655

66516656
static int e1000e_pm_resume(struct device *dev)

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6469,8 +6469,8 @@ static void igb_set_default_mac_filter(struct igb_adapter *adapter)
64696469
igb_rar_set_index(adapter, 0);
64706470
}
64716471

6472-
int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6473-
const u8 queue)
6472+
static int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6473+
const u8 queue)
64746474
{
64756475
struct e1000_hw *hw = &adapter->hw;
64766476
int rar_entries = hw->mac.rar_entry_count -
@@ -6499,8 +6499,8 @@ int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
64996499
return -ENOSPC;
65006500
}
65016501

6502-
int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6503-
const u8 queue)
6502+
static int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
6503+
const u8 queue)
65046504
{
65056505
struct e1000_hw *hw = &adapter->hw;
65066506
int rar_entries = hw->mac.rar_entry_count -
@@ -6552,8 +6552,8 @@ static int igb_uc_unsync(struct net_device *netdev, const unsigned char *addr)
65526552
return 0;
65536553
}
65546554

6555-
int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
6556-
const u32 info, const u8 *addr)
6555+
static int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
6556+
const u32 info, const u8 *addr)
65576557
{
65586558
struct pci_dev *pdev = adapter->pdev;
65596559
struct vf_data_storage *vf_data = &adapter->vf_data[vf];

0 commit comments

Comments
 (0)