public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] media: i2c: imx290: check for availability in probe()
@ 2024-08-07  8:10 Benjamin Bara
  2024-08-07  8:10 ` [PATCH 1/2] media: v4l2-cci: Allow "empty read" Benjamin Bara
  2024-08-07  8:10 ` [PATCH 2/2] media: i2c: imx290: Check for availability in probe() Benjamin Bara
  0 siblings, 2 replies; 13+ messages in thread
From: Benjamin Bara @ 2024-08-07  8:10 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Manivannan Sadhasivam, Sakari Ailus
  Cc: Hans de Goede, Laurent Pinchart, linux-media, linux-kernel,
	Benjamin Bara

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@skidata.com>


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-08-07 12:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07  8:10 [PATCH 0/2] media: i2c: imx290: check for availability in probe() Benjamin Bara
2024-08-07  8:10 ` [PATCH 1/2] media: v4l2-cci: Allow "empty read" Benjamin Bara
2024-08-07  8:10 ` [PATCH 2/2] media: i2c: imx290: Check for availability in probe() Benjamin Bara
2024-08-07  8:33   ` Alexander Stein
2024-08-07  8:43     ` Sakari Ailus
2024-08-07  8:50       ` Benjamin Bara
2024-08-07  8:47     ` Benjamin Bara
2024-08-07  9:49       ` Laurent Pinchart
2024-08-07 11:07         ` Benjamin Bara
2024-08-07 12:12           ` Alexander Stein
2024-08-07 12:16             ` Laurent Pinchart
2024-08-07 12:39               ` Alexander Stein
2024-08-07 12:40                 ` Alexander Stein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox