mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 18:41:23 +00:00
media: staging: tegra-vde: Reset VDE regardless of memory client resetting failure
A failed memory client reset doesn't prevent VDE from resetting, hence reset VDE regardless of preceding memory client resetting failure. 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>
This commit is contained in:
parent
fc6c19fb71
commit
f956aec08d
@ -901,15 +901,12 @@ static int tegra_vde_ioctl_decode_h264(struct tegra_vde *vde,
|
||||
* the whole system.
|
||||
*/
|
||||
err = reset_control_assert(vde->rst_mc);
|
||||
if (!err) {
|
||||
err = reset_control_assert(vde->rst);
|
||||
if (err)
|
||||
dev_err(dev,
|
||||
"DEC end: Failed to assert HW reset: %d\n",
|
||||
err);
|
||||
} else {
|
||||
if (err)
|
||||
dev_err(dev, "DEC end: Failed to assert MC reset: %d\n", err);
|
||||
}
|
||||
|
||||
err = reset_control_assert(vde->rst);
|
||||
if (err)
|
||||
dev_err(dev, "DEC end: Failed to assert HW reset: %d\n", err);
|
||||
|
||||
put_runtime_pm:
|
||||
pm_runtime_mark_last_busy(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user