]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit259dd1c0fb159445182bc4c0199a5fc4d0a98764
tree008af9056657737673d022cd630a84f77091acdc
parentb999f85f529e172d37cea722b515051e612b8ab3
media: amphion: try to wakeup vpu core to avoid failure

[ Upstream commit 676f5294c30a16e97162aeecb6bde7b31e308049 ]

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: 60bbaa0b159d ("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