From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E84513C8E2; Wed, 5 Feb 2025 15:02:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738767760; cv=none; b=EhHEVoO3NUzlIJqyNNjRL8dl9AqU/dzeWFr0BYLQKGL4aw8n5ACfsZFT0xtZcfM8H6iWLBHKG4Bv2U0EhSPpd1rafxyFBy3DP+/bbRbgqRiexwtr6p8pBJLIyqOGsF+su10BSF5GDJXEfr16queB3/JVIUFlDcP1KWh81lDiDPw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738767760; c=relaxed/simple; bh=HMo+CYNxsScGgd/kBtM7H9C0YJcTXLK/MpsfUYJaazM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=srs4xa7IXyFudckWwQEDHGDFBdcBgOZHDB9G7hb07V4rjd0Z+0+LQ+Rwx1AmUvoGdm+6oWaNmz2spU1tljLHjcnmWQt3t+LY23jWZMm+vMuhHL3eFAKC8RQ8M8FON8i5bA4STey2f/jltwSodlA5GQ+3q94Bdyvmi6RsWYmTDg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B16A92G2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="B16A92G2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDCDEC4CED1; Wed, 5 Feb 2025 15:02:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738767760; bh=HMo+CYNxsScGgd/kBtM7H9C0YJcTXLK/MpsfUYJaazM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B16A92G2JEVyRs3WIGexjoQ6VtDmy5BLOEjg5YUCFt69ICmgRQcB8q9v0b495gBDq Mnn+vnIqUPTi63BsDak+s8OzZCDUYwb6guJg3FFKyWOufCzkOEyuShIw/ScSwsH7Si zkzuMAmAJVFQq4iWqLEkt9mGwfY6zR9Q7NqLWjls= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dave Stevenson , Kieran Bingham , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 6.13 450/623] media: i2c: ov9282: Correct the exposure offset Date: Wed, 5 Feb 2025 14:43:12 +0100 Message-ID: <20250205134513.431989228@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205134456.221272033@linuxfoundation.org> References: <20250205134456.221272033@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dave Stevenson [ Upstream commit feaf4154d69657af2bf96e6e66cca794f88b1a61 ] The datasheet lists that "Maximum exposure time is frame length -25 row periods, where frame length is set by registers {0x380E, 0x380F}". However this driver had OV9282_EXPOSURE_OFFSET set to 12 which allowed that restriction to be violated, and would result in very under-exposed images. Correct the offset. Fixes: 14ea315bbeb7 ("media: i2c: Add ov9282 camera sensor driver") Signed-off-by: Dave Stevenson Reviewed-by: Kieran Bingham Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ov9282.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov9282.c b/drivers/media/i2c/ov9282.c index 9f52af6f047f3..87e5d7ce5a47e 100644 --- a/drivers/media/i2c/ov9282.c +++ b/drivers/media/i2c/ov9282.c @@ -40,7 +40,7 @@ /* Exposure control */ #define OV9282_REG_EXPOSURE 0x3500 #define OV9282_EXPOSURE_MIN 1 -#define OV9282_EXPOSURE_OFFSET 12 +#define OV9282_EXPOSURE_OFFSET 25 #define OV9282_EXPOSURE_STEP 1 #define OV9282_EXPOSURE_DEFAULT 0x0282 -- 2.39.5