]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: drivers - Remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 4 Jul 2025 07:54:02 +0000 (10:54 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Jul 2025 10:51:59 +0000 (20:51 +1000)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_pm.c
drivers/crypto/hisilicon/qm.c
drivers/crypto/omap-aes-gcm.c
drivers/crypto/omap-aes.c
drivers/crypto/omap-des.c
drivers/crypto/omap-sham.c
drivers/crypto/stm32/stm32-cryp.c
drivers/crypto/stm32/stm32-hash.c

index 6124fbbbed946f0a730cbc3a44331f9fb3613303..bbd118f8de0eaba3dbaffaeeb12dd5c9fc1cc5ba 100644 (file)
@@ -77,6 +77,5 @@ int cc_pm_get(struct device *dev)
 
 void cc_pm_put_suspend(struct device *dev)
 {
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 }
index 7c41f9593d039157ad900ee9fcc00e137d2ec169..2e4ee7ecfdfbb695d2b61c51fade7dabd6c46333 100644 (file)
@@ -912,7 +912,6 @@ static void qm_pm_put_sync(struct hisi_qm *qm)
        if (!test_bit(QM_SUPPORT_RPM, &qm->caps))
                return;
 
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_autosuspend(dev);
 }
 
index c498950402e8978cbfbca22899c0701010bd1e92..1f4586509ca41296c59b691df73410034c7cc9d8 100644 (file)
@@ -38,7 +38,6 @@ static void omap_aes_gcm_finish_req(struct omap_aes_dev *dd, int ret)
 
        crypto_finalize_aead_request(dd->engine, req, ret);
 
-       pm_runtime_mark_last_busy(dd->dev);
        pm_runtime_put_autosuspend(dd->dev);
 }
 
index 1ecf5f6ac04e8a44d4a500b847ce4740391b233e..244e24e52987e41ee114a66b1f4e7a9fe394f999 100644 (file)
@@ -400,7 +400,6 @@ static void omap_aes_finish_req(struct omap_aes_dev *dd, int err)
 
        crypto_finalize_skcipher_request(dd->engine, req, err);
 
-       pm_runtime_mark_last_busy(dd->dev);
        pm_runtime_put_autosuspend(dd->dev);
 }
 
index a099460d5f215631061b9e57ef38adbf5de66b1f..9c5538ae17db2b6655a1114cb450567de658e950 100644 (file)
@@ -489,7 +489,6 @@ static void omap_des_finish_req(struct omap_des_dev *dd, int err)
 
        crypto_finalize_skcipher_request(dd->engine, req, err);
 
-       pm_runtime_mark_last_busy(dd->dev);
        pm_runtime_put_autosuspend(dd->dev);
 }
 
index 56f192cb976dc3df173b5fe32e0512002fca94c6..6328e8026b91e7391906b62c66dc028a95597ed6 100644 (file)
@@ -1167,7 +1167,6 @@ static void omap_sham_finish_req(struct ahash_request *req, int err)
        dd->flags &= ~(BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) |
                        BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY));
 
-       pm_runtime_mark_last_busy(dd->dev);
        pm_runtime_put_autosuspend(dd->dev);
 
        ctx->offset = 0;
index 5ce88e7a8f657f851a7d6e6130843e11596d97d8..a89b4c5d62a09475b9ff3708067872e24811686b 100644 (file)
@@ -851,7 +851,6 @@ static void stm32_cryp_finish_req(struct stm32_cryp *cryp, int err)
        if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp))))
                stm32_cryp_get_iv(cryp);
 
-       pm_runtime_mark_last_busy(cryp->dev);
        pm_runtime_put_autosuspend(cryp->dev);
 
        if (is_gcm(cryp) || is_ccm(cryp))
index 768b27de47378615652be8e1331104d0cd3c3bec..a4436728b0dba4a2205088d920f2d53ee501f93a 100644 (file)
@@ -1373,7 +1373,6 @@ static void stm32_hash_unprepare_request(struct ahash_request *req)
                *preg++ = stm32_hash_read(hdev, HASH_CSR(i));
 
 pm_runtime:
-       pm_runtime_mark_last_busy(hdev->dev);
        pm_runtime_put_autosuspend(hdev->dev);
 }