From 53d80a5fca153e316064d8b18c04a97c4c4c4142 Mon Sep 17 00:00:00 2001 From: Gaurav Kashyap Date: Tue, 14 Mar 2023 11:24:00 -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 --- crypto-qti/qcedev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crypto-qti/qcedev.c b/crypto-qti/qcedev.c index b2cca25d79..082dee38e3 100644 --- a/crypto-qti/qcedev.c +++ b/crypto-qti/qcedev.c @@ -2685,8 +2685,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);