]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pata_ep93xx: fix deferred probing
authorSergey Shtylyov <s.shtylyov@omprussia.ru>
Sat, 20 Mar 2021 20:32:38 +0000 (23:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:47 +0000 (16:15 +0200)
commit65bff47cd80db4260cda82673e907079600404da
tree7fc56f640b73bda8ab5341763c994321a3b5e18e
parent16c3ce907e9801dd2f2c35a56d924f679323be22
pata_ep93xx: fix deferred probing

[ Upstream commit 5c8121262484d99bffb598f39a0df445cecd8efb ]

The driver overrides the error codes returned by platform_get_irq() to
-ENXIO, so if it returns -EPROBE_DEFER, the driver would fail the probe
permanently instead of the deferred probing.  Propagate the error code
upstream, as it should have been done from the start...

Fixes: 2fff27512600 ("PATA host controller driver for ep93xx")
Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Link: https://lore.kernel.org/r/509fda88-2e0d-2cc7-f411-695d7e94b136@omprussia.ru
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/pata_ep93xx.c