[libcamera-devel,v1,0/2] Raspberry Pi: Timeout error handling
mbox series

Message ID 20220916100517.12446-1-naush@raspberrypi.com
Headers show
Series
  • Raspberry Pi: Timeout error handling
Related show

Message

Naushir Patuck Sept. 16, 2022, 10:05 a.m. UTC
Hi,

This small series attempts to improve our timeout handling.  We have been getting
more and more reports of ov5647 seemingly hitting the Unicam timeout condition,
likely due to a sensor fault. There is no error handling as such, simply a log
message indicating a timeout occurred, then an application gets stalled.

This series improves the timeout handling by putting the pipeline handler in
an error state, and cancelling any outstanding/future requests. The application
can then make a decision on what to do (either close down or attempt a restart)
when these requests come back as cancelled when it was not expecting this.

Thanks,
Naush

Naushir Patuck (2):
  pipeline: raspberrypi: Add an error state
  pipeline: raspberrypi: Improve Unicam timeout handling

 .../pipeline/raspberrypi/raspberrypi.cpp      | 29 ++++++++++++++-----
 1 file changed, 21 insertions(+), 8 deletions(-)