From patchwork Thu Mar 16 14:38:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13177753 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 B7CF5C7618E for ; Thu, 16 Mar 2023 14:39:35 +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: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:In-Reply-To:References: List-Owner; bh=8PbQkPRv2iQ1hBvpJ50uYdxZzrPdZcyEa2bFEDxUQ6k=; b=Tv7vgybQzD44pE LqrHzoGzMMxbqzD3wWTcYm3ShTLh1Ks6l/e4oU0bBjHxTdJIyiBYzUxxJ9a2A9YQSzJcHuJtQFBbw lsqS1aWb6nqYszFm8y/pSAatzfdOqDDlFTUXQ0T21iyX/TH7XbRfeDjOTlp0tMQudSXK6bHNL0awT w/k2/5qQLgNHBtPIsif70mTKctMPMTO22GzvoODdgWeW87mZnK831ysds5zlTdvTlmNUZ77+gHI15 SugJvlLWUrZMAE+fKFKTbmzrIRj6jAC+HVvaL5/F0c5TVVBQO9UsHkWP/FseLwbeSeC4aFFMPmTCx aoq6TXke71PGkpPpdF0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcokb-00Gi1n-0V; Thu, 16 Mar 2023 14:38:41 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcokW-00Gi0e-1s for linux-arm-kernel@lists.infradead.org; Thu, 16 Mar 2023 14:38:38 +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=1678977516; x=1710513516; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UMzb03NhjG2Ncc6/pCDgUgivpELG9yRnaliMyFrDCwo=; b=NyChY7j1W7n4H8Z7HvJcBDXcMmOyAT7AFLP6lMvtQUmCzw6C1VUXx1hV EPQJksBPjOz18gAbdOfhDYXsoEoqGpCR+TFedcuDzOqqYUwZfg9Jxsk1m 3Xdj6x/RdV8SWfknWVdONK1isswEsF5tYPK3t7zFNkrlEoQREsgME9/vn Qb14/Vu+eEyYMW0tjXHR5EdTLTmCv0HsMgYngyT0u3zkZcXbvBmGz5m+0 fYoP6FCAI3i5HYjK04ZBh9IfquyCmVnjvPMEHWHuBFFbVD9QGNe7DhjhJ 1KlPGWjjLoF+gzjiZU+PITlgTim5oOaDWPHGCguakPslUp7JEJ0W6GrBa w==; X-IronPort-AV: E=Sophos;i="5.98,265,1673910000"; d="scan'208";a="29742382" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 16 Mar 2023 15:38:34 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 16 Mar 2023 15:38:34 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 16 Mar 2023 15:38:34 +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=1678977514; x=1710513514; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=UMzb03NhjG2Ncc6/pCDgUgivpELG9yRnaliMyFrDCwo=; b=S7ScZKcAyBDsgkzkLnt3GYT1Cx+J4zMwWOBvRhb1zNlSWsi1EtmcDFOZ 1QK523UGsL2UGRaFLtutJHil2o2HChFYSIjJhMyKXDkE22ow2vzZT1u28 LXSGrsJCLHzP3VXCL7TJg8dpQM0UfnTf80SagSDTbMCWBN8qRIikGNTgq c2hxwbkw6FYy0lXahb64KF83Lz3g9j7Ktifj4ZeOXV7ra7LF8RRUuG3b8 fKtXdpnxM437FA+t+ICmuFCuHVMhryK4MUZ0e+3MQT+uIXqKT9IUK+/vW L8UMm1wFen4UYk10vQ2WWw28OgSGGP95+AHvpAFxwx5PXmQQLsuPOAXOY w==; X-IronPort-AV: E=Sophos;i="5.98,265,1673910000"; d="scan'208";a="29742381" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 Mar 2023 15:38:34 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (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 E389B280056; Thu, 16 Mar 2023 15:38:33 +0100 (CET) From: Alexander Stein To: Rui Miguel Silva , Laurent Pinchart , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Alexander Stein , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/3] imx7-media-csi: small cleanup Date: Thu, 16 Mar 2023 15:38:26 +0100 Message-Id: <20230316143829.499039-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230316_073837_086531_33647D17 X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. 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 Hi all, this is a small series for 7mx-media-csi cleanup. Namely early return when invalid v4l2_buf_type is passed. Also init v4l2_field during initialization. Regards, Alexander Alexander Stein (3): media: imx: imx7-media-csi: Fix mbus framefmt field init media: imx: imx7-media-csi: Fail on invalid type in VIDIOC_G_SELECTION media: imx: imx7-media-csi: Fail for non video-capture formats drivers/media/platform/nxp/imx7-media-csi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)