]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: ov08x40: Log chip ID when identifying the chip
authorHans de Goede <hdegoede@redhat.com>
Sat, 1 Mar 2025 11:48:30 +0000 (12:48 +0100)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 4 Mar 2025 12:35:33 +0000 (13:35 +0100)
Debug log the chip ID after successfully identifying the chip, this is
useful to see if the identification is done on probe() time or if it is
delayed till the first stream on.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/ov08x40.c

index a4790e68f523e0661a34a88abe15d5a1ce7972cc..cf0e41fc30719d7071187d65f59f2ce8bb0a2855 100644 (file)
@@ -1955,6 +1955,7 @@ static int ov08x40_identify_module(struct ov08x40 *ov08x)
                return -ENXIO;
        }
 
+       dev_dbg(&client->dev, "chip id 0x%x\n", val);
        ov08x->identified = true;
 
        return 0;