LF-3685: media: cap: move s_power subdev from open to streamon
authorGuoniu.zhou <guoniu.zhou@nxp.com>
Thu, 8 Apr 2021 02:16:45 +0000 (10:16 +0800)
committerGuoniu.zhou <guoniu.zhou@nxp.com>
Fri, 9 Apr 2021 10:08:59 +0000 (18:08 +0800)
commitc58e19e0cb9c7a71ea91f90dc215949efa6a108c
tree8cdd2a597c61639de6764d9bb99540522da0418c
parent97850e95f0d509dee715907eeee0c7cd13f51f3f
LF-3685: media: cap: move s_power subdev from open to streamon

When user open video device, most of cases it will go through all video
device node registered in system. If power on subdev when open, it will
cost about 500ms due to ov5640 loading firmware. So move the operation
from open to streamon.

Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
drivers/staging/media/imx/imx8-isi-cap.c