From: Hans de Goede Date: Thu, 28 Nov 2024 15:23:35 +0000 (+0100) Subject: media: ov2740: Debug log chip ID X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=47601552499d48a3c309545f857bd797baaf6aaf;p=users%2Fjedix%2Flinux-maple.git media: ov2740: Debug log chip ID 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. Signed-off-by: Hans de Goede Tested-by: Stanislaw Gruszka Reviewed-by: Ricardo Ribalda Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c index c484b753a718c..e671075453c5b 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: %x\n", val); + ov2740->identified = true; return 0;