media: amphion: try to wakeup vpu core to avoid failure
authorMing Qian <ming.qian@nxp.com>
Fri, 18 Nov 2022 08:51:29 +0000 (08:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:17 +0000 (13:32 +0100)
commit1ca1405d52c843e4914e95880ac306473208c9f7
tree008af9056657737673d022cd630a84f77091acdc
parent5100ab6744e7fcc557f38cf5170e61222ec0b0f8
media: amphion: try to wakeup vpu core to avoid failure

[ Upstream commit 082744433f7b96db7214a98202ed96f367684693 ]

firmware should be waked up by start or configure command,
but there is a very small chance that firmware failed to wakeup.
in such case, try to wakeup firmware again by sending a noop command

Fixes: 6de8d628df6e ("media: amphion: add v4l2 m2m vpu decoder stateful driver")
Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/amphion/vpu.h
drivers/media/platform/amphion/vpu_cmds.c
drivers/media/platform/amphion/vpu_malone.c
drivers/media/platform/amphion/vpu_windsor.c