Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dbfffa02 authored by Gaurav Kashyap's avatar Gaurav Kashyap Committed by Nageswara reddy Karnati
Browse files

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: default avatarGaurav Kashyap <quic_gaurkash@quicinc.com>
Signed-off-by: default avatarNageswara reddy Karnati <quic_nkarnati@quicinc.com>
parent 944584e1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2283,8 +2283,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->platform_support.bus_scale_table != NULL)
		msm_bus_scale_unregister_client(podev->bus_scale_handle);