ixgbe: add ixgbe_write_pci_cfg_word with ixgbe_removed check
authorJacob Keller <jacob.e.keller@intel.com>
Sat, 22 Feb 2014 01:23:53 +0000 (01:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 00:17:23 +0000 (17:17 -0700)
commited19231c760a5103d75d285ca5a5ba4177ec09eb
tree4822ca92b9940800831e301e513f318240c18fed
parent0c375ac1aa863495a54b3a051eead667e49ace5b
ixgbe: add ixgbe_write_pci_cfg_word with ixgbe_removed check

Inline with the current use for ixgbe_read_pci_cfg_word, create a
similar function for writing PCI config, which checks whether the
adapter has been removed first, if Live Error Recovery has been enabled.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c