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 <quic_gaurkash@quicinc.com>
This commit is contained in:
Gaurav Kashyap
2023-03-14 11:24:00 -07:00
committed by Gerrit - the friendly Code Review server
parent 08b81d2108
commit 53d80a5fca

View File

@@ -2685,8 +2685,11 @@ static int qcedev_remove(struct platform_device *pdev)
podev = platform_get_drvdata(pdev); podev = platform_get_drvdata(pdev);
if (!podev) if (!podev)
return 0; return 0;
qcedev_ce_high_bw_req(podev, true);
if (podev->qce) if (podev->qce)
qce_close(podev->qce); qce_close(podev->qce);
qcedev_ce_high_bw_req(podev, false);
if (podev->icc_path) if (podev->icc_path)
icc_put(podev->icc_path); icc_put(podev->icc_path);