[media] v4l: vsp1: Fix Suspend-to-RAM
authorSei Fumizono <sei.fumizono.jw@hitachi-solutions.com>
Sun, 15 Mar 2015 14:33:07 +0000 (11:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 6 Jul 2015 11:26:07 +0000 (08:26 -0300)
commit139c92866e34bfa4897e644b36147fc86cc7a7a1
tree755dde4bd641739f19234e34d90cb919b60c8e20
parent45008ee9295b3ae96d7413ab91871907a671ca82
[media] v4l: vsp1: Fix Suspend-to-RAM

Fix Suspend-to-RAM so that VSP1 driver continues to work after resuming.

In detail,
  - Fix the judgment of ref count in resuming.
  - Add stopping VSP1 during suspend.

[Refactor the suspend and resume code to lower suspend delay]

Signed-off-by: Sei Fumizono <sei.fumizono.jw@hitachi-solutions.com>
Signed-off-by: Yoshifumi Hosoya <yoshifumi.hosoya.wj@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_drv.c
drivers/media/platform/vsp1/vsp1_video.c
drivers/media/platform/vsp1/vsp1_video.h