]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov01a10: Only set register 0x0305 once
authorHans de Goede <hansg@kernel.org>
Tue, 14 Oct 2025 17:40:27 +0000 (19:40 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:28:49 +0000 (12:28 +0100)
Stop setting register 0x0305 to one value from mipi_data_rate_720mbps
only to override it with a different value from sensor_1280x800_setting.

Instead directly set it to 0xf4.

Signed-off-by: Hans de Goede <hansg@kernel.org>
Tested-by: Mehdi Djait <mehdi.djait@linux.intel.com> # Dell XPS 9315
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov01a10.c

index 76c75da4d7c8a2e8c24d91aefe906134ddde7e23..2480925f99576f54f4e4db1e0d7ca9f96f232f63 100644 (file)
@@ -108,7 +108,7 @@ static const struct reg_sequence mipi_data_rate_720mbps[] = {
        {0x0302, 0x00},
        {0x0303, 0x06},
        {0x0304, 0x01},
-       {0x0305, 0xe0},
+       {0x0305, 0xf4},
        {0x0306, 0x00},
        {0x0308, 0x01},
        {0x0309, 0x00},
@@ -216,7 +216,6 @@ static const struct reg_sequence ov01a10_global_setting[] = {
        {0x5200, 0x18},
        {0x5004, 0x00},
        {0x5080, 0x40},
-       {0x0305, 0xf4},
        {0x0325, 0xc2},
 };