FAILED: Patch "media: i2c: ov01a10: Fix test-pattern disabling" failed to apply to 6.12-stable tree
Subsystems (4)
Sasha Levin
maintainerThe patch below does not apply to the 6.12-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 409fb57c1b3deada4b8e153eb6344afb3c2dfb9c Mon Sep 17 00:00:00 2001
From: Hans de Goede <[email protected]>
Date: Tue, 14 Oct 2025 19:40:14 +0200
Subject: [PATCH] media: i2c: ov01a10: Fix test-pattern disabling
When the test-pattern control gets set to 0 (Disabled) 0 should be written to the test-pattern register, rather then doing nothing.
Fixes 0827b58dabff ("media: i2c: add ov01a10 image sensor driver")
Signed-off-by Hans de Goede <[email protected]>
Reviewed-by Mehdi Djait <[email protected]>
Reviewed-by Bingbu Cao <[email protected]>
Signed-off-by Sakari Ailus <[email protected]>
Signed-off-by Hans Verkuil <[email protected]>
--- drivers/media/i2c/ov01a10.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/media/i2c/ov01a10.c +4 -7
@@ -249,9 +249,8 @@ static const struct ov01a10_reg sensor_1280x800_setting[] = {static const char *const ov01a10_test_pattern_menu[] = {"Disabled" ,"Color Bar" , -"Top-Bottom Darker Color Bar" , -"Right-Left Darker Color Bar" , -"Color Bar type 4" , +"Left-Right Darker Color Bar" , +"Bottom-Top Darker Color Bar" , };static const s64 link_freq_menu_items[] = {
@@ -406,10 +405,8 @@ static int ov01a10_update_digital_gain(struct ov01a10 *ov01a10, u32 d_gain)static int ov01a10_test_pattern (struct ov01a10 *ov01a10,u32 pattern) { -if (!pattern) -return 0 ; - - pattern = (pattern -1 ) |OV01A10_TEST_PATTERN_ENABLE ; +if (pattern) + pattern |=OV01A10_TEST_PATTERN_ENABLE ;return ov01a10_write_reg (ov01a10,OV01A10_REG_TEST_PATTERN ,1 , pattern); }
Signature · 1 line
2.51.0