]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pata_rb532_cf: fix deferred probing
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Mon, 15 Mar 2021 11:46:53 +0000 (14:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:59:31 +0000 (16:59 +0200)
commit9abb3adaf2982cb090ad15dc617586a0e9c8d774
tree3a71a33095ea880c2786b791e71213d70809f518
parent076081f9c332a1faf135c16c93f71543181404eb
pata_rb532_cf: fix deferred probing

[ Upstream commit 2d3a62fbae8e5badc2342388f65ab2191c209cc0 ]

The driver overrides the error codes returned by platform_get_irq() to
-ENOENT, 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: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Link: https://lore.kernel.org/r/771ced55-3efb-21f5-f21c-b99920aae611@omprussia.ru
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/pata_rb532_cf.c