]> git.baikalelectronics.ru Git - kernel.git/commit
ata: libahci_platform: fix IRQ check
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Mon, 15 Mar 2021 20:15:06 +0000 (23:15 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 31 Mar 2021 02:24:20 +0000 (20:24 -0600)
commit414e516e3d99e29d631e0a18c47684c07107abd5
tree9d61175d1fbab78bbe4484d958d161e918d13355
parentce1f748af60c0bc06d0af3fa91931830a5c421bf
ata: libahci_platform: fix IRQ check

Iff platform_get_irq() returns 0, ahci_platform_init_host() would return 0
early (as if the call was successful). Override IRQ0 with -EINVAL instead
as the 'libata' regards 0 as "no IRQ" (thus polling) anyway...

Fixes: d9fcb2710bd7 ("ata: libahci: properly propagate return value of platform_get_irq()")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Link: https://lore.kernel.org/r/4448c8cc-331f-2915-0e17-38ea34e251c8@omprussia.ru
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libahci_platform.c