Skip to content

Commit 0c4dc0f

Browse files
Sergey ShtylyovUlf Hansson
authored andcommitted
mmc: mtk-sd: fix deferred probing
The driver overrides the error codes 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. Fixes: 2084890 ("mmc: mediatek: Add Mediatek MMC driver") Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Link: https://lore.kernel.org/r/20230617203622.6812-4-s.shtylyov@omp.ru Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent b8ada54 commit 0c4dc0f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mmc/host/mtk-sd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
26802680

26812681
host->irq = platform_get_irq(pdev, 0);
26822682
if (host->irq < 0) {
2683-
ret = -EINVAL;
2683+
ret = host->irq;
26842684
goto host_free;
26852685
}
26862686

0 commit comments

Comments
 (0)