]> git.baikalelectronics.ru Git - kernel.git/commit
sata_highbank: fix deferred probing
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sun, 14 Mar 2021 20:34:27 +0000 (23:34 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 May 2021 21:17:46 +0000 (15:17 -0600)
commitab85920ee2fe052d7f0e46fb47040dcf6581f5dc
treefd54d66ae21e404e024dda2f7bfb696e4fa80569
parent364e6820b852ed75b5674a141c36f9220297943e
sata_highbank: fix deferred probing

The driver overrides the error codes returned by platform_get_irq() to
-EINVAL, so if it returns -EPROBE_DEFER, the driver would fail the probe
permanently instead of the deferred probing. Switch to propagating the
error code upstream, still checking/overriding IRQ0 as libata regards it
as "no IRQ" (thus polling) anyway...

Fixes: a76810429260 ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Link: https://lore.kernel.org/r/105b456d-1199-f6e9-ceb7-ffc5ba551d1a@omprussia.ru
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/sata_highbank.c