Skip to content

Commit c2ac67b

Browse files
Sakari AilusUlf Hansson
authored andcommitted
mmc: Remove redundant pm_runtime_mark_last_busy() calls
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Link: https://lore.kernel.org/r/20250704075434.3220506-1-sakari.ailus@linux.intel.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 16e3dea commit c2ac67b

11 files changed

Lines changed: 0 additions & 16 deletions

File tree

drivers/mmc/core/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,6 @@ void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx)
882882
WARN_ON(ctx && host->claimer != ctx);
883883

884884
mmc_release_host(host);
885-
pm_runtime_mark_last_busy(&card->dev);
886885
pm_runtime_put_autosuspend(&card->dev);
887886
}
888887
EXPORT_SYMBOL(mmc_put_card);

drivers/mmc/host/atmel-mci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ static int atmci_regs_show(struct seq_file *s, void *v)
542542
memcpy_fromio(buf, host->regs, ATMCI_REGS_SIZE);
543543
spin_unlock_bh(&host->lock);
544544

545-
pm_runtime_mark_last_busy(dev);
546545
pm_runtime_put_autosuspend(dev);
547546

548547
seq_printf(s, "MR:\t0x%08x%s%s ",
@@ -2568,7 +2567,6 @@ static int atmci_probe(struct platform_device *pdev)
25682567
dev_info(dev, "Atmel MCI controller at 0x%08lx irq %d, %u slots\n",
25692568
host->mapbase, irq, nr_slots);
25702569

2571-
pm_runtime_mark_last_busy(dev);
25722570
pm_runtime_put_autosuspend(dev);
25732571

25742572
return 0;

drivers/mmc/host/mmci.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,6 @@ static void mmci_enable_sdio_irq(struct mmc_host *mmc, int enable)
20822082
spin_unlock_irqrestore(&host->lock, flags);
20832083

20842084
if (!enable) {
2085-
pm_runtime_mark_last_busy(mmc_dev(mmc));
20862085
pm_runtime_put_autosuspend(mmc_dev(mmc));
20872086
}
20882087
}

drivers/mmc/host/omap_hsmmc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,6 @@ static int mmc_regs_show(struct seq_file *s, void *data)
16631663
seq_printf(s, "CAPA:\t\t0x%08x\n",
16641664
OMAP_HSMMC_READ(host->base, CAPA));
16651665

1666-
pm_runtime_mark_last_busy(host->dev);
16671666
pm_runtime_put_autosuspend(host->dev);
16681667

16691668
return 0;
@@ -1954,7 +1953,6 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
19541953
}
19551954

19561955
omap_hsmmc_debugfs(mmc);
1957-
pm_runtime_mark_last_busy(host->dev);
19581956
pm_runtime_put_autosuspend(host->dev);
19591957

19601958
return 0;
@@ -2031,7 +2029,6 @@ static int omap_hsmmc_resume(struct device *dev)
20312029
if (!(host->mmc->pm_flags & MMC_PM_KEEP_POWER))
20322030
omap_hsmmc_conf_bus_power(host);
20332031

2034-
pm_runtime_mark_last_busy(host->dev);
20352032
pm_runtime_put_autosuspend(host->dev);
20362033
return 0;
20372034
}

drivers/mmc/host/sdhci-esdhc-imx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,6 @@ static int sdhci_esdhc_resume(struct device *dev)
21082108
esdhc_is_usdhc(imx_data))
21092109
sdhc_esdhc_tuning_restore(host);
21102110

2111-
pm_runtime_mark_last_busy(dev);
21122111
pm_runtime_put_autosuspend(dev);
21132112

21142113
return ret;

drivers/mmc/host/sdhci-msm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2764,7 +2764,6 @@ static int sdhci_msm_probe(struct platform_device *pdev)
27642764
if (ret)
27652765
goto pm_runtime_disable;
27662766

2767-
pm_runtime_mark_last_busy(&pdev->dev);
27682767
pm_runtime_put_autosuspend(&pdev->dev);
27692768

27702769
return 0;

drivers/mmc/host/sdhci-omap.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,6 @@ static int sdhci_omap_probe(struct platform_device *pdev)
13701370
host->mmc->pm_caps |= MMC_PM_KEEP_POWER | MMC_PM_WAKE_SDIO_IRQ;
13711371
}
13721372

1373-
pm_runtime_mark_last_busy(dev);
13741373
pm_runtime_put_autosuspend(dev);
13751374

13761375
return 0;
@@ -1379,7 +1378,6 @@ static int sdhci_omap_probe(struct platform_device *pdev)
13791378
sdhci_cleanup_host(host);
13801379

13811380
err_rpm_put:
1382-
pm_runtime_mark_last_busy(dev);
13831381
pm_runtime_put_autosuspend(dev);
13841382
err_rpm_disable:
13851383
pm_runtime_dont_use_autosuspend(dev);

drivers/mmc/host/sdhci-pxav3.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ static int sdhci_pxav3_suspend(struct device *dev)
494494
if (host->tuning_mode != SDHCI_TUNING_MODE_3)
495495
mmc_retune_needed(host->mmc);
496496
ret = sdhci_suspend_host(host);
497-
pm_runtime_mark_last_busy(dev);
498497
pm_runtime_put_autosuspend(dev);
499498

500499
return ret;
@@ -507,7 +506,6 @@ static int sdhci_pxav3_resume(struct device *dev)
507506

508507
pm_runtime_get_sync(dev);
509508
ret = sdhci_resume_host(host);
510-
pm_runtime_mark_last_busy(dev);
511509
pm_runtime_put_autosuspend(dev);
512510

513511
return ret;

drivers/mmc/host/sdhci-sprd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ static int sdhci_sprd_probe(struct platform_device *pdev)
863863
if (ret)
864864
goto err_cleanup_host;
865865

866-
pm_runtime_mark_last_busy(&pdev->dev);
867866
pm_runtime_put_autosuspend(&pdev->dev);
868867

869868
return 0;

drivers/mmc/host/sdhci_am654.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,6 @@ static int sdhci_am654_probe(struct platform_device *pdev)
989989
/* Setting up autosuspend */
990990
pm_runtime_set_autosuspend_delay(dev, SDHCI_AM654_AUTOSUSPEND_DELAY);
991991
pm_runtime_use_autosuspend(dev);
992-
pm_runtime_mark_last_busy(dev);
993992
pm_runtime_put_autosuspend(dev);
994993
return 0;
995994

0 commit comments

Comments
 (0)