]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Jul 2025 07:54:34 +0000 (10:54 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2025 13:54:06 +0000 (15:54 +0200)
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>
drivers/mmc/core/core.c
drivers/mmc/host/atmel-mci.c
drivers/mmc/host/mmci.c
drivers/mmc/host/omap_hsmmc.c
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-msm.c
drivers/mmc/host/sdhci-omap.c
drivers/mmc/host/sdhci-pxav3.c
drivers/mmc/host/sdhci-sprd.c
drivers/mmc/host/sdhci_am654.c
drivers/mmc/host/tmio_mmc_core.c

index a0e2dce7043435e44879b005e84ca84d46f64e5a..874c6fe92855e3535ec0ebc0254146f4b96bccc3 100644 (file)
@@ -882,7 +882,6 @@ void mmc_put_card(struct mmc_card *card, struct mmc_ctx *ctx)
        WARN_ON(ctx && host->claimer != ctx);
 
        mmc_release_host(host);
-       pm_runtime_mark_last_busy(&card->dev);
        pm_runtime_put_autosuspend(&card->dev);
 }
 EXPORT_SYMBOL(mmc_put_card);
index 381944dc74993e14f1a82096024af39a22189c1d..777342fb76576f09bb2aab5b1b55ce9347186693 100644 (file)
@@ -542,7 +542,6 @@ static int atmci_regs_show(struct seq_file *s, void *v)
        memcpy_fromio(buf, host->regs, ATMCI_REGS_SIZE);
        spin_unlock_bh(&host->lock);
 
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 
        seq_printf(s, "MR:\t0x%08x%s%s ",
@@ -2568,7 +2567,6 @@ static int atmci_probe(struct platform_device *pdev)
        dev_info(dev, "Atmel MCI controller at 0x%08lx irq %d, %u slots\n",
                 host->mapbase, irq, nr_slots);
 
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 
        return 0;
index c70c64f8adc4d32ae2793735eb00d70a25b10718..8367283647a9b2279cf3cfd9170d15fcdf46a0b4 100644 (file)
@@ -2082,7 +2082,6 @@ static void mmci_enable_sdio_irq(struct mmc_host *mmc, int enable)
        spin_unlock_irqrestore(&host->lock, flags);
 
        if (!enable) {
-               pm_runtime_mark_last_busy(mmc_dev(mmc));
                pm_runtime_put_autosuspend(mmc_dev(mmc));
        }
 }
index bf3b9f5b067c90b899b1e20f12661faa00d8997c..adc0d0b6ae377e21a0a25d0fb2efb5bc55f3f50b 100644 (file)
@@ -1663,7 +1663,6 @@ static int mmc_regs_show(struct seq_file *s, void *data)
        seq_printf(s, "CAPA:\t\t0x%08x\n",
                        OMAP_HSMMC_READ(host->base, CAPA));
 
-       pm_runtime_mark_last_busy(host->dev);
        pm_runtime_put_autosuspend(host->dev);
 
        return 0;
@@ -1954,7 +1953,6 @@ static int omap_hsmmc_probe(struct platform_device *pdev)
        }
 
        omap_hsmmc_debugfs(mmc);
-       pm_runtime_mark_last_busy(host->dev);
        pm_runtime_put_autosuspend(host->dev);
 
        return 0;
@@ -2031,7 +2029,6 @@ static int omap_hsmmc_resume(struct device *dev)
        if (!(host->mmc->pm_flags & MMC_PM_KEEP_POWER))
                omap_hsmmc_conf_bus_power(host);
 
-       pm_runtime_mark_last_busy(host->dev);
        pm_runtime_put_autosuspend(host->dev);
        return 0;
 }
index 64c27349d79f2ed9baba8c10fef972d930ef6848..a040c0896a7b30154a3a4f048c53f29d75eb3eeb 100644 (file)
@@ -2108,7 +2108,6 @@ static int sdhci_esdhc_resume(struct device *dev)
            esdhc_is_usdhc(imx_data))
                sdhc_esdhc_tuning_restore(host);
 
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 
        return ret;
index 5b97a47e55fb06bf690acc1f2ae723b347af66cc..9d8e20dc8ca11a523daf1ec1b8b7cb1935f06327 100644 (file)
@@ -2764,7 +2764,6 @@ static int sdhci_msm_probe(struct platform_device *pdev)
        if (ret)
                goto pm_runtime_disable;
 
-       pm_runtime_mark_last_busy(&pdev->dev);
        pm_runtime_put_autosuspend(&pdev->dev);
 
        return 0;
index 429d8a517fb6cd4660de7dcd4aee788c521d3eb7..cdb09605e009aa02ef6c3c93163d9c2c205b17ab 100644 (file)
@@ -1370,7 +1370,6 @@ static int sdhci_omap_probe(struct platform_device *pdev)
                host->mmc->pm_caps |= MMC_PM_KEEP_POWER | MMC_PM_WAKE_SDIO_IRQ;
        }
 
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 
        return 0;
@@ -1379,7 +1378,6 @@ err_cleanup_host:
        sdhci_cleanup_host(host);
 
 err_rpm_put:
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 err_rpm_disable:
        pm_runtime_dont_use_autosuspend(dev);
index 34abf986573ffa0847600a8964e7c1ca0be89f22..1371960e34ebbb955ba2334451ed4734041a7b1b 100644 (file)
@@ -494,7 +494,6 @@ static int sdhci_pxav3_suspend(struct device *dev)
        if (host->tuning_mode != SDHCI_TUNING_MODE_3)
                mmc_retune_needed(host->mmc);
        ret = sdhci_suspend_host(host);
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 
        return ret;
@@ -507,7 +506,6 @@ static int sdhci_pxav3_resume(struct device *dev)
 
        pm_runtime_get_sync(dev);
        ret = sdhci_resume_host(host);
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 
        return ret;
index a5dec1a0e934ee8e54a77336b2e5e0a62cd6f772..fe2fe52b23b27a6728e394910be912992a6ff6e7 100644 (file)
@@ -863,7 +863,6 @@ static int sdhci_sprd_probe(struct platform_device *pdev)
        if (ret)
                goto err_cleanup_host;
 
-       pm_runtime_mark_last_busy(&pdev->dev);
        pm_runtime_put_autosuspend(&pdev->dev);
 
        return 0;
index 86d87d8e06755360a68f53b0b2d2a21d49b3e819..e4fc345be7e5d34153c1e711676f8824c93f235c 100644 (file)
@@ -989,7 +989,6 @@ static int sdhci_am654_probe(struct platform_device *pdev)
        /* Setting up autosuspend */
        pm_runtime_set_autosuspend_delay(dev, SDHCI_AM654_AUTOSUSPEND_DELAY);
        pm_runtime_use_autosuspend(dev);
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
        return 0;
 
index 2cec463b5e00a7575109312375f567e4ee537fab..21c2f9095baca29cc04c5d5c7cd0f15c4e3f68d8 100644 (file)
@@ -160,7 +160,6 @@ static void tmio_mmc_enable_sdio_irq(struct mmc_host *mmc, int enable)
                sd_ctrl_write16(host, CTL_SDIO_IRQ_MASK, host->sdio_irq_mask);
 
                host->sdio_irq_enabled = false;
-               pm_runtime_mark_last_busy(mmc_dev(mmc));
                pm_runtime_put_autosuspend(mmc_dev(mmc));
        }
 }