Skip to content

Commit

Permalink
remoteproc: qcom: pas: Mark devices as wakeup capable
Browse files Browse the repository at this point in the history
device_wakeup_enable() on its own is not capable of setting
device as wakeup capable, it needs to be used in conjunction
with device_set_wakeup_capable(). The device_init_wakeup()
calls both these functions on the device passed.

Fixes: a781e5a ("remoteproc: core: Prevent system suspend during remoteproc recovery")
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1657022900-2049-4-git-send-email-quic_sibis@quicinc.com
  • Loading branch information
Siddharth Gupta authored and andersson committed Jul 18, 2022
1 parent 5ddf596 commit dc86c12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/remoteproc/qcom_q6v5_pas.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,9 @@ static int adsp_probe(struct platform_device *pdev)
adsp->decrypt_shutdown = desc->decrypt_shutdown;
platform_set_drvdata(pdev, adsp);

device_wakeup_enable(adsp->dev);
ret = device_init_wakeup(adsp->dev, true);
if (ret)
goto free_rproc;

ret = adsp_alloc_memory_region(adsp);
if (ret)
Expand Down

0 comments on commit dc86c12

Please sign in to comment.