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>
Cette révision appartient à :
Gaurav Kashyap
2023-03-14 11:24:00 -07:00
révisé par Gerrit - the friendly Code Review server
Parent 08b81d2108
révision 53d80a5fca

Voir le fichier

@@ -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);