media: rcar-csi2: Use standby mode instead of resetting
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 12 Mar 2019 23:49:30 +0000 (19:49 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 16:12:55 +0000 (12:12 -0400)
commitd245a940d97b5cd0dd4eecd9530fa9ff4c5938c6
tree39301e9738d41ab4fa80d6b5867e189368c74f35
parentffaebccddef0a6320643a9d1c911190db579c09f
media: rcar-csi2: Use standby mode instead of resetting

Later versions of the datasheet updates the reset procedure to more
closely resemble the standby mode. Update the driver to enter and exit
the standby mode instead of resetting the hardware before and after
streaming is started and stopped. This replaces the software reset
(SRST.SRST) control.

While at it break out the full start and stop procedures from
rcsi2_s_stream() into the existing helper functions.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar-vin/Kconfig
drivers/media/platform/rcar-vin/rcar-csi2.c