Commit c917748
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: dbf9bfe ("[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>1 parent c13e733 commit c917748
1 file changed
+17
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | 296 | | |
305 | 297 | | |
306 | 298 | | |
| |||
1031 | 1023 | | |
1032 | 1024 | | |
1033 | 1025 | | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | 1026 | | |
1049 | 1027 | | |
1050 | 1028 | | |
1051 | 1029 | | |
1052 | 1030 | | |
1053 | 1031 | | |
1054 | | - | |
| 1032 | + | |
| 1033 | + | |
1055 | 1034 | | |
1056 | 1035 | | |
1057 | | - | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1058 | 1043 | | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
| 1044 | + | |
| 1045 | + | |
1065 | 1046 | | |
| 1047 | + | |
| 1048 | + | |
1066 | 1049 | | |
1067 | 1050 | | |
1068 | | - | |
1069 | 1051 | | |
1070 | 1052 | | |
1071 | 1053 | | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
1075 | 1058 | | |
1076 | 1059 | | |
1077 | 1060 | | |
| |||
0 commit comments