media: rcar-csi2: restart CSI-2 link if error is detected
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 11 Apr 2019 20:30:58 +0000 (16:30 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 8 May 2019 17:59:21 +0000 (13:59 -0400)
commit4ab44ff0841b9a825f9875623d24809d29e37a10
tree6b3fda39cded5e45ca46c1b902269f91ae3788be
parentdd6e2a981bfe83aa4a493143fd8cf1edcda6c091
media: rcar-csi2: restart CSI-2 link if error is detected

Restart the CSI-2 link if the CSI-2 receiver detects an error during
reception. The driver did nothing when a link error happened and the
data flow simply stopped without the user knowing why.

Change the driver to try and recover from errors by restarting the link
and informing the user that something is not right. For obvious reasons
it's not possible to recover from all errors (video source disconnected
for example) but in such cases the user is at least informed of the
error and the same behavior of the stopped data flow is retained.

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