Skip to content

Commit c2df53c

Browse files
Sergey Shtylyovstorulf
authored andcommitted
mmc: sunxi: fix deferred probing
The driver overrides the error codes and IRQ0 returned by platform_get_irq() to -EINVAL, so if it returns -EPROBE_DEFER, the driver will fail the probe permanently instead of the deferred probing. Switch to propagating the error codes upstream. Since commit ce753ad ("platform: finally disallow IRQ0 in platform_get_irq() and its ilk") IRQ0 is no longer returned by those APIs, so we now can safely ignore it... Fixes: 2408a08 ("mmc: sunxi-mmc: Handle return value of platform_get_irq") Cc: [email protected] # v5.19+ Signed-off-by: Sergey Shtylyov <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 5b067d7 commit c2df53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mmc/host/sunxi-mmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,8 +1350,8 @@ static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,
13501350
return ret;
13511351

13521352
host->irq = platform_get_irq(pdev, 0);
1353-
if (host->irq <= 0) {
1354-
ret = -EINVAL;
1353+
if (host->irq < 0) {
1354+
ret = host->irq;
13551355
goto error_disable_mmc;
13561356
}
13571357

0 commit comments

Comments
 (0)