linux/drivers/scsi/lpfc
Lukas Wunner fa2274bb17 treewide: Drop pci_save_state() after pci_restore_state()
commit 383d89699c upstream.

In 2009, commit c82f63e411 ("PCI: check saved state before restore")
changed the behavior of pci_restore_state() such that it became necessary
to call pci_save_state() afterwards, lest recovery from subsequent PCI
errors fails.

The commit has just been reverted and so all the pci_save_state() after
pci_restore_state() calls that have accumulated in the tree are now
superfluous.  Drop them.

Two drivers chose a different approach to achieve the same result:
drivers/scsi/ipr.c and drivers/net/ethernet/intel/e1000e/netdev.c set the
pci_dev's "state_saved" flag to true before calling pci_restore_state().
Drop this as well.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>  # qat
Link: https://patch.msgid.link/c2b28cc4defa1b743cf1dedee23c455be98b397a.1760274044.git.lukas@wunner.de
Cc: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-02-11 13:41:45 +01:00
..
lpfc.h scsi: lpfc: Copyright updates for 14.4.0.11 patches 2025-09-16 22:20:00 -04:00
lpfc_attr.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
lpfc_attr.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_bsg.c scsi: lpfc: Use secs_to_jiffies() instead of msecs_to_jiffies() 2025-04-28 21:28:36 -04:00
lpfc_bsg.h scsi: lpfc: Copyright updates for 14.4.0.7 patches 2025-01-02 15:01:23 -05:00
lpfc_compat.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_crtn.h scsi: lpfc: Copyright updates for 14.4.0.6 patches 2024-11-02 21:45:25 -04:00
lpfc_ct.c scsi: lpfc: Copyright updates for 14.4.0.10 patches 2025-06-23 13:10:34 -04:00
lpfc_debugfs.c scsi: lpfc: Convert debugfs directory counts from atomic to unsigned int 2025-09-16 22:20:00 -04:00
lpfc_debugfs.h scsi: lpfc: Copyright updates for 14.4.0.11 patches 2025-09-16 22:20:00 -04:00
lpfc_disc.h scsi: lpfc: Change lpfc_nodelist save_flags member into a bitmask 2025-01-02 15:01:22 -05:00
lpfc_els.c scsi: lpfc: Fix reusing an ndlp that is marked NLP_DROPPED during FLOGI 2026-01-02 12:57:00 +01:00
lpfc_hbadisc.c scsi: lpfc: Fix reusing an ndlp that is marked NLP_DROPPED during FLOGI 2026-01-02 12:57:00 +01:00
lpfc_hw.h scsi: lpfc: Copyright updates for 14.4.0.11 patches 2025-09-16 22:20:00 -04:00
lpfc_hw4.h scsi: fc: Avoid -Wflex-array-member-not-at-end warnings 2025-08-30 21:42:19 -04:00
lpfc_ids.h scsi: lpfc: Copyright updates for 14.2.0.5 patches 2022-07-07 17:21:44 -04:00
lpfc_init.c treewide: Drop pci_save_state() after pci_restore_state() 2026-02-11 13:41:45 +01:00
lpfc_logmsg.h scsi: lpfc: Introduce LOG_NODE_VERBOSE messaging flag 2023-10-13 16:58:27 -04:00
lpfc_mbox.c scsi: lpfc: Restrict the REG_FCFI MAM field to FCoE adapters only 2025-01-02 15:01:22 -05:00
lpfc_mem.c scsi: lpfc: Copyright updates for 14.2.0.16 patches 2023-11-15 09:52:58 -05:00
lpfc_nl.h scsi: lpfc: Revise copyright for new company language 2018-07-10 22:15:09 -04:00
lpfc_nportdisc.c scsi: lpfc: Copyright updates for 14.4.0.11 patches 2025-09-16 22:20:00 -04:00
lpfc_nvme.c scsi: lpfc: use min() to improve code 2025-08-19 22:25:06 -04:00
lpfc_nvme.h scsi: lpfc: Copyright updates for 14.2.0.0 patches 2022-03-15 13:51:50 -04:00
lpfc_nvmet.c scsi: lpfc: Fix buffer free/clear order in deferred receive path 2025-08-30 21:11:35 -04:00
lpfc_scsi.c scsi: lpfc: Check return status of lpfc_reset_flush_io_context during TGT_RESET 2025-09-16 22:19:59 -04:00
lpfc_scsi.h scsi: lpfc: Copyright updates for 14.4.0.2 patches 2024-05-06 21:53:58 -04:00
lpfc_sli.c Merge patch series "Update lpfc to revision 14.4.0.11" 2025-09-16 22:20:57 -04:00
lpfc_sli.h scsi: lpfc: Copyright updates for 14.4.0.1 patches 2024-03-10 18:56:44 -04:00
lpfc_sli4.h scsi: lpfc: Copyright updates for 14.4.0.10 patches 2025-06-23 13:10:34 -04:00
lpfc_version.h scsi: lpfc: Update lpfc version to 14.4.0.11 2025-09-16 22:20:00 -04:00
lpfc_vmid.c scsi: lpfc: convert timeouts to secs_to_jiffies() 2025-01-12 20:21:03 -08:00
lpfc_vport.c scsi: lpfc: Fix wrong function reference in a comment 2025-08-05 21:57:13 -04:00
lpfc_vport.h scsi: lpfc: Copyright updates for 14.2.0.6 patches 2022-08-31 23:39:58 -04:00
Makefile scsi: lpfc: Commonize VMID code location 2022-05-19 20:24:56 -04:00