Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4010493pxb; Fri, 11 Feb 2022 12:53:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRUJpadBW1SCLFLBD65Zzq/DlB5w3ivRza11hCmBnfSN3FvE4vAsr96mmV1TYkzFJ5lSQL X-Received: by 2002:a05:6a00:b4a:: with SMTP id p10mr3356978pfo.14.1644612827553; Fri, 11 Feb 2022 12:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644612827; cv=none; d=google.com; s=arc-20160816; b=gsiqwGCUrXKvjDZ6KrZ1g3tHAoPISMQWGM6fUWm0or/v7FFFs9iy0ItCcoT/VMimGj QXchfhXF6Two1B4jdz2vtwX+B40ZC1pPgBF5BU9w/F5+iJ1PfIB0CzHvDmIch+ZSGj2L 3w2bCF2hNB9ILFPyC5cmG97bBpO71nd3w3ZaHjs9gfjqym/G1gj2gVCCQlbEBuRvXAg8 l/FGk7C4ULKIDn+Ci2lJW1mULhrYrKpvD1B6OVvq13ud5US3g5URZFWivszGi9cZPqYk 7nd3flIBRM7Rpyzk0zVjqi5Cssnsx2t6hR+hTjcnF4MgnHy4qHF3SHvqO7Nhd6ouSiZj RqMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=L2X8DF81KY87wGHZfFCxWVmkiZl6H3JBIqW51Fq+Q+s=; b=MI+cgNVYdzuKv/2JqcyTQlXnvc1xdrmXQ8QvXftlZnZHz7Idryb1cx18t2siJIWt6D wj/B19Z1rHzJ9Mcbfl//UZs2Wp+xu5eoV5iWgNW6uViej2EP/7GT7ncR/E9x+EJHQ02q H8r21iR+Qi3OwUkuaLSCiZTY6VC8vrZle2t53G0s2ACy3asztqNO7JczF0oymTUkSAbW BNPlLb1krDts+3AQ9CY1kjmQUodmPqrPQ322N3CY/EPfh/l0RVS/1mqNTVEMvzM/UFTk 0jXFPgBUHKs2YPVH5lwwrvw6C2bpV8JTJgOkBAfMgreDVfIh4OKhT30ANCOfjhJT9foU HtAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=JB70Htnv; dkim=pass header.i=@tq-group.com header.s=key1 header.b="AQQ/jmM2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12si5314138plr.568.2022.02.11.12.53.32; Fri, 11 Feb 2022 12:53:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=JB70Htnv; dkim=pass header.i=@tq-group.com header.s=key1 header.b="AQQ/jmM2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350837AbiBKO2Z (ORCPT + 99 others); Fri, 11 Feb 2022 09:28:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245277AbiBKO2J (ORCPT ); Fri, 11 Feb 2022 09:28:09 -0500 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FD6119A; Fri, 11 Feb 2022 06:28:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1644589687; x=1676125687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L2X8DF81KY87wGHZfFCxWVmkiZl6H3JBIqW51Fq+Q+s=; b=JB70HtnvyRDow7m3EiIRoXkHq7yXxb6yJYhVxpYNvIabYOhqksqBK6wf UOIR1Q/9VAuCllN1w6eWd0g62DYZi3nfSN62n9oMubNuMzdFuqjmA+zJG kMzXYGLd0eDnJA0MKKIEOieWAMsSLJ7j0euveeBZjmm/fC2qyrcRTHvp8 moGgxfFv/geHmMgbWvJJAuTRfkICFmw5l6cGdzQuMDbhm4QXdzOMNDU5f xLmWZs34tBHcPBZKtbOQxvPS3JNOa1b1TrDOnbkuuKv86w2UnQbA10Kq3 rJ3xWqViUHKD+l6blODXRrUG0mP14JC9NVaqlz71Fk5NmKBi9oljhUgxf Q==; X-IronPort-AV: E=Sophos;i="5.88,361,1635199200"; d="scan'208";a="22042289" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 11 Feb 2022 15:28:02 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 11 Feb 2022 15:28:02 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 11 Feb 2022 15:28:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1644589682; x=1676125682; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L2X8DF81KY87wGHZfFCxWVmkiZl6H3JBIqW51Fq+Q+s=; b=AQQ/jmM2b6G6621xGtJRFdUkpkIUBMfkoKWi+0BlF7GNY79CHxWBXCMr 05r50VwBIcDI3/RX7bbbuAwueFqfLCN5Sj+RwvXDTf2q/D0KKVVwaql1J kstRV4V4UHEkS4LHWWlqva1CGflJiJasAV8IRS9FiVmlvZLLl63FDyr+a 2Yzbv/b3X36wZ6ESViq0d/D5q71/Vaj1Mgy2GeJwvf1SaPYY+k/YkoO3x JxP5fTTFPwYMMYgVMFtoNvyjKBWQdsvsZ09yjihlN1e5vdGTuSPgkEyjN LmXDDTMd9kAo93CONTcLp/3xiPhJ2FMfzWFP38HkdqeP6aILOTbCWWRpO Q==; X-IronPort-AV: E=Sophos;i="5.88,361,1635199200"; d="scan'208";a="22042288" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 11 Feb 2022 15:28:02 +0100 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 22875280075; Fri, 11 Feb 2022 15:28:02 +0100 (CET) From: Alexander Stein To: Steve Longerbeam , Philipp Zabel , Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rui Miguel Silva , Laurent Pinchart , Dorota Czaplejewicz Cc: Alexander Stein , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/9] media: imx: imx7_media-csi: Add support for additional Bayer patterns Date: Fri, 11 Feb 2022 15:27:49 +0100 Message-Id: <20220211142752.779952-7-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220211142752.779952-1-alexander.stein@ew.tq-group.com> References: <20220211142752.779952-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org imx7_csi_configure() allows configuring these Bayer patterns when starting a stream. So allow these in link_validate() as well. Reviewed-by: Laurent Pinchart Signed-off-by: Alexander Stein --- Changes in v2: * Added Reviewed-by: Laurent Pinchart drivers/staging/media/imx/imx7-media-csi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index 173dd014c2d6..9c4b72c99be9 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -1004,6 +1004,18 @@ static int imx7_csi_pad_link_validate(struct v4l2_subdev *sd, case V4L2_PIX_FMT_SGBRG8: case V4L2_PIX_FMT_SGRBG8: case V4L2_PIX_FMT_SRGGB8: + case V4L2_PIX_FMT_SBGGR10: + case V4L2_PIX_FMT_SGBRG10: + case V4L2_PIX_FMT_SGRBG10: + case V4L2_PIX_FMT_SRGGB10: + case V4L2_PIX_FMT_SBGGR12: + case V4L2_PIX_FMT_SGBRG12: + case V4L2_PIX_FMT_SGRBG12: + case V4L2_PIX_FMT_SRGGB12: + case V4L2_PIX_FMT_SBGGR14: + case V4L2_PIX_FMT_SGBRG14: + case V4L2_PIX_FMT_SGRBG14: + case V4L2_PIX_FMT_SRGGB14: case V4L2_PIX_FMT_SBGGR16: case V4L2_PIX_FMT_SGBRG16: case V4L2_PIX_FMT_SGRBG16: -- 2.25.1