WSL2-Linux-Kernel/drivers/scsi/hisi_sas
Sergey Shtylyov 6c11dc0604 scsi: hisi_sas: Fix IRQ checks
Commit df2d8213d9 ("hisi_sas: use platform_get_irq()") failed to take
into account that irq_of_parse_and_map() and platform_get_irq() have a
different way of indicating an error: the former returns 0 and the latter
returns a negative error code. Fix up the IRQ checks!

Link: https://lore.kernel.org/r/810f26d3-908b-1d6b-dc5c-40019726baca@omprussia.ru
Fixes: df2d8213d9 ("hisi_sas: use platform_get_irq()")
Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-04-13 00:16:42 -04:00
..
Kconfig scsi: hisi_sas: Enable debugfs support by default 2021-01-26 23:02:11 -05:00
Makefile
hisi_sas.h scsi: hisi_sas: Directly snapshot registers when executing a reset 2021-04-12 23:21:26 -04:00
hisi_sas_main.c scsi: hisi_sas: Print SATA device SAS address for soft reset failure 2021-04-12 23:21:26 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Fix IRQ checks 2021-04-13 00:16:42 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Remove deferred probe check in hisi_sas_v2_probe() 2021-01-26 23:02:11 -05:00
hisi_sas_v3_hw.c scsi: hisi_sas: Warn in v3 hw channel interrupt handler when status reg cleared 2021-04-12 23:21:26 -04:00