[PATCH 0/2] media: i2c: imx290: check for availability in probe()

From: Benjamin Bara
Date: Wed Aug 07 2024 - 04:11:03 EST


Hi!

First commit is optional and just adds the possibility to do a
cci_read() without caring about the read value. If not wanted, I can
remove it.

Second commit tries to communicate with the sensor (reading back the
STANDBY register) to find out if the sensor is available at probe time.
Currently, the first device communication is happening after the v4l2
subdev is initialized - and the communication errors are then basically
ignored.

thanks & regards
Benjamin

---
Benjamin Bara (2):
media: v4l2-cci: Allow "empty read"
media: i2c: imx290: Check for availability in probe()

drivers/media/i2c/imx290.c | 5 +++++
drivers/media/v4l2-core/v4l2-cci.c | 5 ++++-
include/media/v4l2-cci.h | 2 +-
3 files changed, 10 insertions(+), 2 deletions(-)
---
base-commit: eec5d86d5bac6b3e972eb9c1898af3c08303c52d
change-id: 20240807-imx290-avail-85795c27d988

Best regards,
--
Benjamin Bara <benjamin.bara@xxxxxxxxxxx>