Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sakari Ailus and committed by
Herbert Xu
62842d29 99d9edf6

-8
-1
drivers/crypto/ccree/cc_pm.c
··· 77 77 78 78 void cc_pm_put_suspend(struct device *dev) 79 79 { 80 - pm_runtime_mark_last_busy(dev); 81 80 pm_runtime_put_autosuspend(dev); 82 81 }
-1
drivers/crypto/hisilicon/qm.c
··· 912 912 if (!test_bit(QM_SUPPORT_RPM, &qm->caps)) 913 913 return; 914 914 915 - pm_runtime_mark_last_busy(dev); 916 915 pm_runtime_put_autosuspend(dev); 917 916 } 918 917
-1
drivers/crypto/omap-aes-gcm.c
··· 38 38 39 39 crypto_finalize_aead_request(dd->engine, req, ret); 40 40 41 - pm_runtime_mark_last_busy(dd->dev); 42 41 pm_runtime_put_autosuspend(dd->dev); 43 42 } 44 43
-1
drivers/crypto/omap-aes.c
··· 400 400 401 401 crypto_finalize_skcipher_request(dd->engine, req, err); 402 402 403 - pm_runtime_mark_last_busy(dd->dev); 404 403 pm_runtime_put_autosuspend(dd->dev); 405 404 } 406 405
-1
drivers/crypto/omap-des.c
··· 489 489 490 490 crypto_finalize_skcipher_request(dd->engine, req, err); 491 491 492 - pm_runtime_mark_last_busy(dd->dev); 493 492 pm_runtime_put_autosuspend(dd->dev); 494 493 } 495 494
-1
drivers/crypto/omap-sham.c
··· 1167 1167 dd->flags &= ~(BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) | 1168 1168 BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY)); 1169 1169 1170 - pm_runtime_mark_last_busy(dd->dev); 1171 1170 pm_runtime_put_autosuspend(dd->dev); 1172 1171 1173 1172 ctx->offset = 0;
-1
drivers/crypto/stm32/stm32-cryp.c
··· 851 851 if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp)))) 852 852 stm32_cryp_get_iv(cryp); 853 853 854 - pm_runtime_mark_last_busy(cryp->dev); 855 854 pm_runtime_put_autosuspend(cryp->dev); 856 855 857 856 if (is_gcm(cryp) || is_ccm(cryp))
-1
drivers/crypto/stm32/stm32-hash.c
··· 1373 1373 *preg++ = stm32_hash_read(hdev, HASH_CSR(i)); 1374 1374 1375 1375 pm_runtime: 1376 - pm_runtime_mark_last_busy(hdev->dev); 1377 1376 pm_runtime_put_autosuspend(hdev->dev); 1378 1377 } 1379 1378