mbox series

[v2,0/2] max9271: Fix pclk_detect silent failure

Message ID 20211104110924.248444-1-jacopo+renesas@jmondi.org (mailing list archive)
Headers show
Series max9271: Fix pclk_detect silent failure | expand

Message

Jacopo Mondi Nov. 4, 2021, 11:09 a.m. UTC
Repeatedly reading register 0x15 to validate the incoming pixel clock
causes sporadic read errors which went silently ignored, causing the camera
module to fail to start streaming.

Fix that by ignoring the read error and while at it rework the error message
handling in all functions.

v1->v2:
- Drop v1 [1/2]
- [2/2] new patch. Handle all bus access errors in the call sites

Jacopo Mondi (2):
  media: max9271: Ignore busy loop read errors
  media: max9271: Fail loud on bus errors in call sites

 drivers/media/i2c/max9271.c | 116 ++++++++++++++++++++++--------------
 1 file changed, 71 insertions(+), 45 deletions(-)

--
2.33.1