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

Commit bf0c00ee authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "crypto: msm: Remove bw_reaper_timer while in suspend mode"

parents 96e9bb57 241469a6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4938,6 +4938,8 @@ static int _qcrypto_suspend(struct platform_device *pdev, pm_message_t state)
	if (ret)
		return ret;
	else {
		cancel_work_sync(&pengine->bw_allocate_ws);
		del_timer_sync(&pengine->bw_reaper_timer);
		if (qce_pm_table.suspend)
			qce_pm_table.suspend(pengine->qce);
		return 0;
@@ -4968,6 +4970,9 @@ static int _qcrypto_resume(struct platform_device *pdev)
		if (qce_pm_table.resume)
			qce_pm_table.resume(pengine->qce);

		init_timer(&(pengine->bw_reaper_timer));
		qcrypto_bw_set_timeout(pengine);

		qcrypto_ce_set_bus(pengine, true);

		spin_lock_irqsave(&cp->lock, flags);