OSDN Git Service

media: allegro: fix reset if WAKEUP has not been set properly
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:27 +0000 (16:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 20 Mar 2020 08:13:17 +0000 (09:13 +0100)
commitdfba38c841855536730bb577b02a42ec2f2bda4d
tree9feb40346ebab15f6bc253c9d8d222fab7e7ea12
parentc32c815503fa3bfae575cf92648685c30796f448
media: allegro: fix reset if WAKEUP has not been set properly

The Zynq UltraScale+ Devices Register Reference states that the WAKEUP
bit "should be set to 0 after the MCU sleep status bit gets back to 0."
If this is not done, the mcu is not going to sleep on reset and fail the
reset.

Set WAKEUP to 0 before triggering a reset to make sure that the reset is
successful.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c