]> git.baikalelectronics.ru Git - kernel.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>
Wed, 14 Jul 2021 14:53:21 +0000 (16:53 +0200)
commit82851a67cf3deb8682da2fd300f8569af55cfb5b
treeeeb95170ec6d1b456d52158022585510adea28b0
parent3efd55489441b170f0e2b623fa04437d595760b9
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: 078368fed622 ("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