From cb6cdf3a82807158315b34a17942041f011491e7 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Wed, 10 Dec 2025 21:22:42 +0300 Subject: [PATCH] qla2x00t, qla2x00t-32gbit: Port to Linux kernel v6.19 Support for the following changes in the Linux kernel v6.19: - 383d89699c50 ("treewide: Drop pci_save_state() after pci_restore_state()") --- qla2x00t-32gbit/qla_os.c | 2 ++ qla2x00t/qla_os.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index 827412a72..319d6ba2b 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -8029,10 +8029,12 @@ qla2xxx_pci_slot_reset(struct pci_dev *pdev) pci_restore_state(pdev); +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0) /* pci_restore_state() clears the saved_state flag of the device * save restored state which resets saved_state flag */ pci_save_state(pdev); +#endif if (ha->mem_only) rc = pci_enable_device_mem(pdev); diff --git a/qla2x00t/qla_os.c b/qla2x00t/qla_os.c index f4ce5704d..db3dc939d 100644 --- a/qla2x00t/qla_os.c +++ b/qla2x00t/qla_os.c @@ -4692,10 +4692,12 @@ qla2xxx_pci_slot_reset(struct pci_dev *pdev) pci_restore_state(pdev); +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 19, 0) /* pci_restore_state() clears the saved_state flag of the device * save restored state which resets saved_state flag */ pci_save_state(pdev); +#endif if (ha->mem_only) rc = pci_enable_device_mem(pdev);