On Thu Nov 28 16:23:35 2024 +0100, Hans de Goede wrote:
> 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 <hdego...@redhat.com>
> Tested-by: Stanislaw Gruszka <stanislaw.grus...@linux.intel.com>
> Reviewed-by: Ricardo Ribalda <riba...@chromium.org>
> Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+hua...@kernel.org>

Patch committed.

Thanks,
Mauro Carvalho Chehab

 drivers/media/i2c/ov2740.c | 2 ++
 1 file changed, 2 insertions(+)

---

diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c
index c484b753a718..e671075453c5 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;

Reply via email to