linux/drivers/net/ethernet/intel/ixgbe
Yongxin Liu debb9df311 ixgbe: fix unbalanced device enable/disable in suspend/resume
pci_disable_device() called in __ixgbe_shutdown() decreases
dev->enable_cnt by 1. pci_enable_device_mem() which increases
dev->enable_cnt by 1, was removed from ixgbe_resume() in commit
6f82b25587 ("ixgbe: use generic power management"). This caused
unbalanced increase/decrease. So add pci_enable_device_mem() back.

Fix the following call trace.

  ixgbe 0000:17:00.1: disabling already-disabled device
  Call Trace:
   __ixgbe_shutdown+0x10a/0x1e0 [ixgbe]
   ixgbe_suspend+0x32/0x70 [ixgbe]
   pci_pm_suspend+0x87/0x160
   ? pci_pm_freeze+0xd0/0xd0
   dpm_run_callback+0x42/0x170
   __device_suspend+0x114/0x460
   async_suspend+0x1f/0xa0
   async_run_entry_fn+0x3c/0xf0
   process_one_work+0x1dd/0x410
   worker_thread+0x34/0x3f0
   ? cancel_delayed_work+0x90/0x90
   kthread+0x14c/0x170
   ? kthread_park+0x90/0x90
   ret_from_fork+0x1f/0x30

Fixes: 6f82b25587 ("ixgbe: use generic power management")
Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-04-13 11:49:11 -07:00
..
ixgbe.h ixgbe: store the result of ixgbe_rx_offset() onto ixgbe_ring 2021-02-12 10:40:03 -08:00
ixgbe_82598.c ethernet/intel: Convert fallthrough code comments 2020-07-01 13:47:43 -07:00
ixgbe_82599.c ethernet/intel: Convert fallthrough code comments 2020-07-01 13:47:43 -07:00
ixgbe_common.c ethernet/intel: Convert fallthrough code comments 2020-07-01 13:47:43 -07:00
ixgbe_common.h
ixgbe_dcb.c
ixgbe_dcb.h
ixgbe_dcb_82598.c
ixgbe_dcb_82598.h
ixgbe_dcb_82599.c
ixgbe_dcb_82599.h
ixgbe_dcb_nl.c
ixgbe_debugfs.c
ixgbe_ethtool.c ixgbe: add pause frame stats 2020-09-15 13:26:29 -07:00
ixgbe_fcoe.c scsi: fcoe: Fix I/O path allocation 2020-08-17 21:52:39 -04:00
ixgbe_fcoe.h
ixgbe_ipsec.c ixgbe: fail to create xfrm offload of IPsec tunnel mode SA 2021-03-04 11:05:05 -08:00
ixgbe_ipsec.h
ixgbe_lib.c net: remove napi_hash_del() from driver-facing API 2020-09-10 13:08:46 -07:00
ixgbe_main.c ixgbe: fix unbalanced device enable/disable in suspend/resume 2021-04-13 11:49:11 -07:00
ixgbe_mbx.c
ixgbe_mbx.h
ixgbe_model.h
ixgbe_phy.c ixgbe: fix probing of multi-port devices with one MDIO 2020-10-18 13:01:22 -07:00
ixgbe_phy.h
ixgbe_ptp.c ethernet/intel: Convert fallthrough code comments 2020-07-01 13:47:43 -07:00
ixgbe_sriov.c ixgbe: use eth_zero_addr() to clear mac address 2020-07-30 11:40:08 -07:00
ixgbe_sriov.h
ixgbe_sysfs.c
ixgbe_txrx_common.h xsk: i40e: ice: ixgbe: mlx5: Pass buffer pool to driver instead of umem 2020-08-31 21:15:03 +02:00
ixgbe_type.h
ixgbe_x540.c net: remove unneeded break 2020-10-20 10:28:21 -07:00
ixgbe_x540.h
ixgbe_x550.c ethernet/intel: Convert fallthrough code comments 2020-07-01 13:47:43 -07:00
ixgbe_xsk.c xsk: i40e: ice: ixgbe: mlx5: Test for dma_need_sync earlier for better performance 2020-08-31 21:15:04 +02:00
Makefile