OSDN Git Service

remoteproc: core: Do pm_relax when in RPROC_OFFLINE state
authorMaria Yu <quic_aiquny@quicinc.com>
Tue, 6 Dec 2022 01:59:57 +0000 (09:59 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 7 Dec 2022 18:20:55 +0000 (11:20 -0700)
commit11c7f9e3131ad14b27a957496088fa488b153a48
treed20c9cd666f31cedb664593fee2c9a2399269b24
parent7ff5d60f18bba5cbaf17b2926aa9da44d5beca01
remoteproc: core: Do pm_relax when in RPROC_OFFLINE state

Make sure that pm_relax() happens even when the remoteproc
is stopped before the crash handler work is scheduled.

Signed-off-by: Maria Yu <quic_aiquny@quicinc.com>
Cc: stable <stable@vger.kernel.org>
Fixes: a781e5aa5911 ("remoteproc: core: Prevent system suspend during remoteproc recovery")
Link: https://lore.kernel.org/r/20221206015957.2616-2-quic_aiquny@quicinc.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/remoteproc_core.c