From 0a7a6f15011326260483289cc452b565384144ac Mon Sep 17 00:00:00 2001 From: Gaurav Kashyap Date: Wed, 15 Mar 2023 11:30:04 -0700 Subject: [PATCH] qcedev: vote for crypto clocks during module close When qcedev module is exiting, it disconnects SPS. At this times, crypto clocks need to be turned on or it will cause a synchronous abort. Tests: rmmod on the qcedev module. Change-Id: I1721fe408392ef81b07a6c08d2196b2413ba2b2f Signed-off-by: Gaurav Kashyap Signed-off-by: Nageswara reddy Karnati --- drivers/crypto/msm/qcedev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/msm/qcedev.c b/drivers/crypto/msm/qcedev.c index d81ce43e3fd6a..12117d6ee7aff 100644 --- a/drivers/crypto/msm/qcedev.c +++ b/drivers/crypto/msm/qcedev.c @@ -2163,8 +2163,11 @@ static int qcedev_remove(struct platform_device *pdev) podev = platform_get_drvdata(pdev); if (!podev) return 0; + + qcedev_ce_high_bw_req(podev, true); if (podev->qce) qce_close(podev->qce); + qcedev_ce_high_bw_req(podev, false); if (podev->icc_path) icc_put(podev->icc_path);