media: staging: tegra-vde: Reset memory client
authorDmitry Osipenko <digetx@gmail.com>
Sun, 20 May 2018 13:48:45 +0000 (09:48 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 28 May 2018 20:22:58 +0000 (16:22 -0400)
commitf68bbb23259e59e31ab52d240761973dfc9697d8
tree4ef122e8a2817b524f432e3525dae026ff0acf7f
parent636757ab6c93e19e2f58d3b3af1312e34eaffbab
media: staging: tegra-vde: Reset memory client

DMA requests must be blocked before resetting VDE HW, otherwise it is
possible to get a memory corruption or a machine hang. Use the reset
control provided by the Memory Controller to block DMA before resetting
the VDE HW.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/tegra-vde/tegra-vde.c