]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fm10k: implement reset_notify handler for PCIe FLR events
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 7 Jun 2016 23:08:55 +0000 (16:08 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:24 +0000 (22:04 -0800)
commit804c807e66f3cb49c54a2b05e494f8a5530f9be0
tree88dd9cfbf6489f6039ca10de217fb69065cf99cb
parent407f4353a83f7895c6f61fc63e68f7d02f59ff29
fm10k: implement reset_notify handler for PCIe FLR events

When a function level PCI reset is triggered using sysfs, it calls the
driver's .reset_notify error handler. Implement a handler based on the
now split fm10k_prepare_for_reset and fm10k_handle_reset functions, so
that we fully reset the driver when the PCI function level reset occurs.
This also ensures the reset is handled in a clean way by first disabling
all the driver bits first and then restoring them after the function
reset. Previously the stack simply performed a blind function reset and
our driver didn't take any part in the process.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 25394529
(cherry picked from commit 0593186a17d8427804be162a724a1576367e4d4c)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c