Skip to content

Commit 40e46f8

Browse files
author
Ulf Hansson
committed
mmc: Merge branch fixes into next
Merge the mmc fixes for v6.4-rc[n] into the next branch, to allow them to get tested together with the new mmc changes that are targeted for v6.5. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2 parents 4711c6a + 413db49 commit 40e46f8

13 files changed

Lines changed: 23 additions & 18 deletions

File tree

drivers/mmc/host/bcm2835.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,8 +1403,8 @@ static int bcm2835_probe(struct platform_device *pdev)
14031403
host->max_clk = clk_get_rate(clk);
14041404

14051405
host->irq = platform_get_irq(pdev, 0);
1406-
if (host->irq <= 0) {
1407-
ret = -EINVAL;
1406+
if (host->irq < 0) {
1407+
ret = host->irq;
14081408
goto err;
14091409
}
14101410

drivers/mmc/host/litex_mmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ static struct platform_driver litex_mmc_driver = {
649649
.driver = {
650650
.name = "litex-mmc",
651651
.of_match_table = litex_match,
652+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
652653
},
653654
};
654655
module_platform_driver(litex_mmc_driver);

drivers/mmc/host/meson-gx-mmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,8 +1186,8 @@ static int meson_mmc_probe(struct platform_device *pdev)
11861186
return PTR_ERR(host->regs);
11871187

11881188
host->irq = platform_get_irq(pdev, 0);
1189-
if (host->irq <= 0)
1190-
return -EINVAL;
1189+
if (host->irq < 0)
1190+
return host->irq;
11911191

11921192
cd_irq = platform_get_irq_optional(pdev, 1);
11931193
mmc_gpio_set_cd_irq(mmc, cd_irq);

drivers/mmc/host/mtk-sd.c

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

27252725
host->irq = platform_get_irq(pdev, 0);
27262726
if (host->irq < 0) {
2727-
ret = -EINVAL;
2727+
ret = host->irq;
27282728
goto host_free;
27292729
}
27302730

drivers/mmc/host/mvsdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ static int mvsd_probe(struct platform_device *pdev)
704704
}
705705
irq = platform_get_irq(pdev, 0);
706706
if (irq < 0)
707-
return -ENXIO;
707+
return irq;
708708

709709
mmc = mmc_alloc_host(sizeof(struct mvsd_host), &pdev->dev);
710710
if (!mmc) {

drivers/mmc/host/omap.c

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

13441344
irq = platform_get_irq(pdev, 0);
13451345
if (irq < 0)
1346-
return -ENXIO;
1346+
return irq;
13471347

13481348
host->virt_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
13491349
if (IS_ERR(host->virt_base))

drivers/mmc/host/omap_hsmmc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,9 +1791,11 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
17911791
}
17921792

17931793
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1794-
irq = platform_get_irq(pdev, 0);
1795-
if (res == NULL || irq < 0)
1794+
if (!res)
17961795
return -ENXIO;
1796+
irq = platform_get_irq(pdev, 0);
1797+
if (irq < 0)
1798+
return irq;
17971799

17981800
base = devm_ioremap_resource(&pdev->dev, res);
17991801
if (IS_ERR(base))

drivers/mmc/host/owl-mmc.c

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

638638
owl_host->irq = platform_get_irq(pdev, 0);
639639
if (owl_host->irq < 0) {
640-
ret = -EINVAL;
640+
ret = owl_host->irq;
641641
goto err_release_channel;
642642
}
643643

drivers/mmc/host/sdhci-acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
829829
host->ops = &sdhci_acpi_ops_dflt;
830830
host->irq = platform_get_irq(pdev, 0);
831831
if (host->irq < 0) {
832-
err = -EINVAL;
832+
err = host->irq;
833833
goto err_free;
834834
}
835835

drivers/mmc/host/sdhci-spear.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ static int sdhci_probe(struct platform_device *pdev)
6565
host->hw_name = "sdhci";
6666
host->ops = &sdhci_pltfm_ops;
6767
host->irq = platform_get_irq(pdev, 0);
68-
if (host->irq <= 0) {
69-
ret = -EINVAL;
68+
if (host->irq < 0) {
69+
ret = host->irq;
7070
goto err_host;
7171
}
7272
host->quirks = SDHCI_QUIRK_BROKEN_ADMA;

0 commit comments

Comments
 (0)