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 B831834EEE7; Fri, 21 Nov 2025 13:44:55 +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=1763732695; cv=none; b=fF8buAv3iWNqk1emzsoykIykmGBMdOtQOEAJiED1bd9Mdhb7ARMx1Gz7x4YQGtpLpKjkHmiXxqqryOUPWa4hBIcUcW4HIAQGXZlFD35CqAM593DzlYUioM8FrXrMm+V/b+1kGtjhuaDZLJDsFdXQgZHgz1pWboPTn4SoK5sirVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763732695; c=relaxed/simple; bh=0Stl4b1HPFelTDuSELirBinZL3a4d9bOmN0qoEyyE+g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VJ3tscZiw3Dtmqx0GWi25nMJS0x5gJFDE7KkYrmGN1Q/GVAy4VQrPcoFNKSbz4pC3GMfZZELibh/B7TFKYtdxeXUX6VZAP/KErJP9Ab1NwIYlnlu/H0CVbwnGN49F5QPfyL2RSCP8gkBt+qYa/+U0ek8++GC6alTzUCoY1xfdWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wUMVuVt8; 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="wUMVuVt8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D2D3C116C6; Fri, 21 Nov 2025 13:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763732695; bh=0Stl4b1HPFelTDuSELirBinZL3a4d9bOmN0qoEyyE+g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wUMVuVt8kV2kzSIdc+TkaxKtVe9NcmyXf5/r2K8LUrD3f6Gtr6oYQ0yKgBDIIsx0N G3ffNvGtEdlavinmAYrp8teGsEChGlTGn0zSuUtJtOMTFCjyIURJFpLfNQIMNhBmSn DISmK4bsoPPE9UlYeOeo0lnLCKH+DZGrblKP/Y54= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vladimir Zapolskiy , Sakari Ailus , Hans Verkuil , Sasha Levin Subject: [PATCH 6.6 204/529] media: i2c: og01a1b: Specify monochrome media bus format instead of Bayer Date: Fri, 21 Nov 2025 14:08:23 +0100 Message-ID: <20251121130238.276814458@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121130230.985163914@linuxfoundation.org> References: <20251121130230.985163914@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vladimir Zapolskiy [ Upstream commit bfbd5aa5347fbd11ade188b316b800bfb27d9e22 ] The OmniVision OG01A1B image sensor is a monochrome sensor, it supports 8-bit and 10-bit RAW output formats only. That said the planar greyscale Y8/Y10 media formats are more appropriate for the sensor instead of the originally and arbitrary selected SGRBG one, since there is no red, green or blue color components. Signed-off-by: Vladimir Zapolskiy Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/i2c/og01a1b.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/og01a1b.c b/drivers/media/i2c/og01a1b.c index 365ce56845836..9bd204911651e 100644 --- a/drivers/media/i2c/og01a1b.c +++ b/drivers/media/i2c/og01a1b.c @@ -676,7 +676,7 @@ static void og01a1b_update_pad_format(const struct og01a1b_mode *mode, { fmt->width = mode->width; fmt->height = mode->height; - fmt->code = MEDIA_BUS_FMT_SGRBG10_1X10; + fmt->code = MEDIA_BUS_FMT_Y10_1X10; fmt->field = V4L2_FIELD_NONE; } @@ -867,7 +867,7 @@ static int og01a1b_enum_mbus_code(struct v4l2_subdev *sd, if (code->index > 0) return -EINVAL; - code->code = MEDIA_BUS_FMT_SGRBG10_1X10; + code->code = MEDIA_BUS_FMT_Y10_1X10; return 0; } @@ -879,7 +879,7 @@ static int og01a1b_enum_frame_size(struct v4l2_subdev *sd, if (fse->index >= ARRAY_SIZE(supported_modes)) return -EINVAL; - if (fse->code != MEDIA_BUS_FMT_SGRBG10_1X10) + if (fse->code != MEDIA_BUS_FMT_Y10_1X10) return -EINVAL; fse->min_width = supported_modes[fse->index].width; -- 2.51.0