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

Commit 684829b2 authored by Zhen Kong's avatar Zhen Kong
Browse files

crypto: msm: Add device wakeup initialization for qcrypto driver



Add device wakeup initialization function for qcrypto driver, so pm
wakeup can work.

Change-Id: I26899aaa8ac0dae08a174696ddc130c494c9301b
Signed-off-by: default avatarZhen Kong <zkong@codeaurora.org>
parent 512860c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1050,6 +1050,7 @@ static void _qcrypto_remove_engine(struct crypto_engine *pengine)
	cancel_work_sync(&pengine->bw_reaper_ws);
	cancel_work_sync(&pengine->bw_allocate_ws);
	del_timer_sync(&pengine->bw_reaper_timer);
	device_init_wakeup(&pengine->pdev->dev, false);

	if (pengine->bus_scale_handle != 0)
		msm_bus_scale_unregister_client(pengine->bus_scale_handle);
@@ -4497,6 +4498,7 @@ static int _qcrypto_probe(struct platform_device *pdev)
	pengine->active_seq = 0;
	pengine->last_active_seq = 0;
	pengine->check_flag = false;
	device_init_wakeup(&pengine->pdev->dev, true);

	tasklet_init(&pengine->done_tasklet, req_done, (unsigned long)pengine);
	crypto_init_queue(&pengine->req_queue, MSM_QCRYPTO_REQ_QUEUE_LENGTH);