mbox series

[v3,0/2] rcar-csi2: Update handling of transfer error

Message ID 20210310164527.3631395-1-niklas.soderlund+renesas@ragnatech.se
Headers show
Series rcar-csi2: Update handling of transfer error | expand

Message

Niklas Söderlund March 10, 2021, 4:45 p.m. UTC
Hello,

This series adapts the R-Car CSI-2 receiver recovery logic to match
updates in the datasheet. The later datasheets recommend that the whole
video pipeline shall be stopped if an transmission error is detected
instead of just restarting the CSI-2 receiver.

This is tested on M3-N and a fault is injected by quickly removing and
re-inserting the HDMI cable while streaming. This method does not always
hit and is time consuming. To consistently prove correctness of handling
a fake fault was introduced by a HACK and a debugfs entry.

Niklas Söderlund (2):
  rcar-vin: Stop stream when subdevice signal EOS
  rcar-csi2: Do not try to recover after transfer error

 drivers/media/platform/rcar-vin/rcar-csi2.c | 14 ++++++--------
 drivers/media/platform/rcar-vin/rcar-v4l2.c | 16 +++++++++++++++-
 2 files changed, 21 insertions(+), 9 deletions(-)