diff mbox series

[v2,1/4] media: ov2740: Debug log chip ID

Message ID 20241220114317.21219-1-hdegoede@redhat.com (mailing list archive)
State New
Headers show
Series [v2,1/4] media: ov2740: Debug log chip ID | expand

Commit Message

Hans de Goede Dec. 20, 2024, 11:43 a.m. UTC
Calling the identify function may get delayed till the first stream-on,
add a dev_dbg() to it so that we know when it has run. This is useful
to debug bring-up problems related to regulators / clks / GPIOs.

Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Tested-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
- Prefix chip-id with "0x" when logging it as it is logged in hex
---
 drivers/media/i2c/ov2740.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c
index c484b753a718..a79e478342dd 100644
--- a/drivers/media/i2c/ov2740.c
+++ b/drivers/media/i2c/ov2740.c
@@ -644,6 +644,8 @@  static int ov2740_identify_module(struct ov2740 *ov2740)
 		return -ENXIO;
 	}
 
+	dev_dbg(&client->dev, "chip id: 0x%x\n", val);
+
 	ov2740->identified = true;
 
 	return 0;