]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: pm8001: Setup IRQs on resume
authorDamien Le Moal <dlemoal@kernel.org>
Mon, 11 Sep 2023 23:27:36 +0000 (08:27 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Sep 2023 00:08:40 +0000 (20:08 -0400)
commitc91774818b041ed290df29fb1dc0725be9b12e83
tree7f56454207e8df6e3727ce3cafb386930d37335d
parentc13e7331745852d0dd7c35eabbe181cbd5b01172
scsi: pm8001: Setup IRQs on resume

The function pm8001_pci_resume() only calls pm8001_request_irq() without
calling pm8001_setup_irq(). This causes the IRQ allocation to fail, which
leads all drives being removed from the system.

Fix this issue by integrating the code for pm8001_setup_irq() directly
inside pm8001_request_irq() so that MSI-X setup is performed both during
normal initialization and resume operations.

Fixes: dbf9bfe61571 ("[SCSI] pm8001: add SAS/SATA HBA driver")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230911232745.325149-2-dlemoal@kernel.org
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_init.c