Skip to content

Commit 62842d2

Browse files
Sakari Ailusherbertx
authored andcommitted
crypto: drivers - 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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 99d9edf commit 62842d2

8 files changed

Lines changed: 0 additions & 8 deletions

File tree

drivers/crypto/ccree/cc_pm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,5 @@ int cc_pm_get(struct device *dev)
7777

7878
void cc_pm_put_suspend(struct device *dev)
7979
{
80-
pm_runtime_mark_last_busy(dev);
8180
pm_runtime_put_autosuspend(dev);
8281
}

drivers/crypto/hisilicon/qm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,6 @@ static void qm_pm_put_sync(struct hisi_qm *qm)
912912
if (!test_bit(QM_SUPPORT_RPM, &qm->caps))
913913
return;
914914

915-
pm_runtime_mark_last_busy(dev);
916915
pm_runtime_put_autosuspend(dev);
917916
}
918917

drivers/crypto/omap-aes-gcm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ static void omap_aes_gcm_finish_req(struct omap_aes_dev *dd, int ret)
3838

3939
crypto_finalize_aead_request(dd->engine, req, ret);
4040

41-
pm_runtime_mark_last_busy(dd->dev);
4241
pm_runtime_put_autosuspend(dd->dev);
4342
}
4443

drivers/crypto/omap-aes.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ static void omap_aes_finish_req(struct omap_aes_dev *dd, int err)
400400

401401
crypto_finalize_skcipher_request(dd->engine, req, err);
402402

403-
pm_runtime_mark_last_busy(dd->dev);
404403
pm_runtime_put_autosuspend(dd->dev);
405404
}
406405

drivers/crypto/omap-des.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ static void omap_des_finish_req(struct omap_des_dev *dd, int err)
489489

490490
crypto_finalize_skcipher_request(dd->engine, req, err);
491491

492-
pm_runtime_mark_last_busy(dd->dev);
493492
pm_runtime_put_autosuspend(dd->dev);
494493
}
495494

drivers/crypto/omap-sham.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,6 @@ static void omap_sham_finish_req(struct ahash_request *req, int err)
11671167
dd->flags &= ~(BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) |
11681168
BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY));
11691169

1170-
pm_runtime_mark_last_busy(dd->dev);
11711170
pm_runtime_put_autosuspend(dd->dev);
11721171

11731172
ctx->offset = 0;

drivers/crypto/stm32/stm32-cryp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ static void stm32_cryp_finish_req(struct stm32_cryp *cryp, int err)
851851
if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp))))
852852
stm32_cryp_get_iv(cryp);
853853

854-
pm_runtime_mark_last_busy(cryp->dev);
855854
pm_runtime_put_autosuspend(cryp->dev);
856855

857856
if (is_gcm(cryp) || is_ccm(cryp))

drivers/crypto/stm32/stm32-hash.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,6 @@ static void stm32_hash_unprepare_request(struct ahash_request *req)
13731373
*preg++ = stm32_hash_read(hdev, HASH_CSR(i));
13741374

13751375
pm_runtime:
1376-
pm_runtime_mark_last_busy(hdev->dev);
13771376
pm_runtime_put_autosuspend(hdev->dev);
13781377
}
13791378

0 commit comments

Comments
 (0)