|
@@ -58,7 +58,6 @@ static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset,
|
|
|
**/
|
|
|
static void ixgbe_set_pcie_completion_timeout(struct ixgbe_hw *hw)
|
|
|
{
|
|
|
- struct ixgbe_adapter *adapter = hw->back;
|
|
|
u32 gcr = IXGBE_READ_REG(hw, IXGBE_GCR);
|
|
|
u16 pcie_devctl2;
|
|
|
|
|
@@ -84,11 +83,8 @@ static void ixgbe_set_pcie_completion_timeout(struct ixgbe_hw *hw)
|
|
|
* 16ms to 55ms
|
|
|
*/
|
|
|
pcie_devctl2 = ixgbe_read_pci_cfg_word(hw, IXGBE_PCI_DEVICE_CONTROL2);
|
|
|
- if (ixgbe_removed(hw->hw_addr))
|
|
|
- return;
|
|
|
pcie_devctl2 |= IXGBE_PCI_DEVICE_CONTROL2_16ms;
|
|
|
- pci_write_config_word(adapter->pdev,
|
|
|
- IXGBE_PCI_DEVICE_CONTROL2, pcie_devctl2);
|
|
|
+ ixgbe_write_pci_cfg_word(hw, IXGBE_PCI_DEVICE_CONTROL2, pcie_devctl2);
|
|
|
out:
|
|
|
/* disable completion timeout resend */
|
|
|
gcr &= ~IXGBE_GCR_CMPL_TMOUT_RESEND;
|