video: rockchip: vpu: clear mmu status when vpu reset

Change-Id: I9c8f02e5275b2a5e286b4306a2390b8cbfdcbbe5
Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
This commit is contained in:
Jung Zhao
2017-03-27 14:00:08 +08:00
committed by Huang, Tao
parent b73eddef6e
commit 68e343df50

View File

@@ -682,6 +682,7 @@ static void vpu_reset(struct vpu_subdev_data *data)
_vpu_reset(data);
if (data->mmu_dev && test_bit(MMU_ACTIVATED, &data->state)) {
clear_bit(MMU_ACTIVATED, &data->state);
if (atomic_read(&pservice->enabled)) {
/* Need to reset iommu */
vcodec_iommu_detach(data->iommu_info);