Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3948b57b authored by David S. Miller's avatar David S. Miller
Browse files


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: default avatarDavid S. Miller <davem@davemloft.net>
parents b3fd8220 833521eb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -6640,12 +6640,17 @@ static int e1000e_pm_thaw(struct device *dev)
static int e1000e_pm_suspend(struct device *dev)
{
	struct pci_dev *pdev = to_pci_dev(dev);
	int rc;

	e1000e_flush_lpic(pdev);

	e1000e_pm_freeze(dev);

	return __e1000_shutdown(pdev, false);
	rc = __e1000_shutdown(pdev, false);
	if (rc)
		e1000e_pm_thaw(dev);

	return rc;
}

static int e1000e_pm_resume(struct device *dev)
+6 −6
Original line number Diff line number Diff line
@@ -6469,7 +6469,7 @@ static void igb_set_default_mac_filter(struct igb_adapter *adapter)
	igb_rar_set_index(adapter, 0);
}

int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
static int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
			      const u8 queue)
{
	struct e1000_hw *hw = &adapter->hw;
@@ -6499,7 +6499,7 @@ int igb_add_mac_filter(struct igb_adapter *adapter, const u8 *addr,
	return -ENOSPC;
}

int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
static int igb_del_mac_filter(struct igb_adapter *adapter, const u8 *addr,
			      const u8 queue)
{
	struct e1000_hw *hw = &adapter->hw;
@@ -6552,7 +6552,7 @@ static int igb_uc_unsync(struct net_device *netdev, const unsigned char *addr)
	return 0;
}

int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
static int igb_set_vf_mac_filter(struct igb_adapter *adapter, const int vf,
				 const u32 info, const u8 *addr)
{
	struct pci_dev *pdev = adapter->pdev;