From: Jung Zhao Date: Mon, 27 Mar 2017 06:00:08 +0000 (+0800) Subject: video: rockchip: vpu: clear mmu status when vpu reset X-Git-Tag: firefly_0821_release~194 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68e343df50cbd084f8a32a9f707b68e1d75303f3;p=firefly-linux-kernel-4.4.55.git video: rockchip: vpu: clear mmu status when vpu reset Change-Id: I9c8f02e5275b2a5e286b4306a2390b8cbfdcbbe5 Signed-off-by: Jung Zhao --- diff --git a/drivers/video/rockchip/vcodec/vcodec_service.c b/drivers/video/rockchip/vcodec/vcodec_service.c index 55f39a4fbc35..5fba743e63b4 100644 --- a/drivers/video/rockchip/vcodec/vcodec_service.c +++ b/drivers/video/rockchip/vcodec/vcodec_service.c @@ -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);