[PATCH v2] pata_ep93xx: fix deferred probing

From
Sergey Shtylyov <hidden>
Date
2021-03-20 20:33:18
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 <redacted>

---
This patch is against the 'master' branch of Jens Axboe's 'linux-block.git'
repo.

Changes in version 2:
- split off the part fixing up IRQ0 case, adjusted the description accordingly.

 drivers/ata/pata_ep93xx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-block/drivers/ata/pata_ep93xx.c
===================================================================
--- linux-block.orig/drivers/ata/pata_ep93xx.c
+++ linux-block/drivers/ata/pata_ep93xx.c
@@ -928,7 +928,7 @@ static int ep93xx_pata_probe(struct plat
 	/* INT[3] (IRQ_EP93XX_EXT3) line connected as pull down */
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0) {
-		err = -ENXIO;
+		err = irq;
 		goto err_rel_gpio;
 	}
 
Thread (4 messages) 4 messages, 3 authors, last reply 2021-05-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help