]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: ov2740: Debug log chip ID
authorHans de Goede <hdegoede@redhat.com>
Thu, 28 Nov 2024 15:23:35 +0000 (16:23 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 19 Dec 2024 11:50:17 +0000 (12:50 +0100)
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 <hdegoede@redhat.com>
Tested-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ov2740.c

index c484b753a718c3130d6325dd11141824ada288c4..e671075453c5bd2e48f2230cbb2240b97a2ecacc 100644 (file)
@@ -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;