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()")
This commit is contained in:
Gleb Chesnokov
2025-12-10 21:42:47 +03:00
parent 12c870abe9
commit cb6cdf3a82
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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);
+2
View File
@@ -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);