mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user