From patchwork Fri Feb 11 14:27:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12743500 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A3FDC433EF for ; Fri, 11 Feb 2022 14:31:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Bgd7VmjBvVneA9CieJ2Di9yB+LNzacpq9rbHLlCM8LY=; b=Wus2LRqFZKxNS0 xrp7EDLZEdFzp6mJlZ8pTxSEk6LOzzVfH92y3qvzRnLQWC3oiZQj8wzPiBEmV9Vu4MbpW71W4Mmse BO6P/8BBURtMu6/nXn+wkuC/IAWKzA+kpVf7njbMW8/CV9Ngc/mrZ1M2XIBcA1pAN5yp2YH8Ol2Ef liBn6PiMyXF32jOSn732WmFUb8bvQBB4lWfHpMWum5I6NfZlnKSMwjN3kGRZFU2uKdxlUJrYcz37p bZBlf+8GpbKYH/kMkvaWjOnRqFniLnmocc7w7R1o4lzk/LORUt5m/MT99Uvm+SfLNq9Cd3GGOj03m v1lDdRD6+NKs+WPGcM3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIWvo-007ZDH-UE; Fri, 11 Feb 2022 14:29:53 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIWuC-007YO4-IT for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 14:28:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1644589692; x=1676125692; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=L2X8DF81KY87wGHZfFCxWVmkiZl6H3JBIqW51Fq+Q+s=; b=jr4/8IARtYR8CIBOwaqID9hNXKs0HPP5TX9hYBjbVwXBNypPSN0UzueL 61c57/MpFYugRAXVH2d16vefvO4Fjdtnm0YxOQyLAacvIRRDhQRV6DMOf 41pKszy+IkMZq6vtqUEIBZE9lYba+08TThZSuwkA0bGZa6DzLWmPzwIs5 x+0EGoSqlJlYbPvUtBFwTXfS6IuFJNbtiIDFNBmaeZMbV/XTtR0VXX/ru OwEbiws0k5l5bc0pNqXnNIU5E+hkSWIyGnbtpsDmvUU7W0TwzbijlSuBf vI0v55/OE0iQVk2DGAXzZqJXhFrmLQGXl9T06MkotfuQKXg84HRktjxWe 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_062812_948612_0A6DF755 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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: