From patchwork Fri Feb 11 18:02:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 12743702 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 C17B9C433F5 for ; Fri, 11 Feb 2022 18:02:56 +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=FPHPZF+meqcZlzgyBCr8N4GukqH1nx+DChIWNF7Jo4c=; b=cHgKbKPjiMC4Z/ vd4eQ0JKI2yxiF0KRUEeBRvp+my/flXQSoRliKvuxI115HiPmut42J0l90nukJ5gI6su/jvnMYCeT Zkz93q5+SUdvSP6b1hWO0yqLtkTx2Ined/s+Oh9Z5opiETEomkcIXlWlDC3w9BZcWWUuyxOg7hqLq FecEGiCkW4s8d4ZatBqNFK1kYMCRe0R8H1vz/Lx7wdz2sLYlRRhAZuwSkPRBk3JyJ2vZvQ1vmlXBe VTC18NaGhI92apSEjm0DjdUOLoEZIuCYZzNppjz5FrSjMF4MAmNBbl0CmHfkg3NzFTrFGTopIZv+I SwddIj7S7LxEkOgOYozg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIaEf-008KDc-D4; Fri, 11 Feb 2022 18:01:33 +0000 Received: from relay10.mail.gandi.net ([2001:4b98:dc4:8::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIaEa-008KAh-88 for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 18:01:31 +0000 Received: (Authenticated sender: jacopo@jmondi.org) by mail.gandi.net (Postfix) with ESMTPSA id DD169240003; Fri, 11 Feb 2022 18:01:19 +0000 (UTC) From: Jacopo Mondi To: slongerbeam@gmail.com, p.zabel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, martin.kepplinger@puri.sm, rmfrfs@gmail.com, xavier.roumegue@oss.nxp.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Jacopo Mondi Subject: [PATCH 0/3] media: De-stage imx7-mipi-csis.c Date: Fri, 11 Feb 2022 19:02:13 +0100 Message-Id: <20220211180216.290133-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.35.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220211_100128_460565_36671C9B X-CRM114-Status: GOOD ( 13.21 ) 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 The imx7-mipi-csis.c driver has no obvious problems and can be destaged. Move it to a newly created drivers/media/platform/imx directory and plumb the Kconfig and build system. To make it more controversial, I'm annoyed by having the SoC identifier in the driver file name, as the same IP the driver controls is found on i.MX7 as well as i.MX8 SoCs. I'm not sure how it will look like when more CSI-2 receiver drivers will be de-staged. Currently the situation is a bit confusing, but I think, looking at the compatibles for each driver that it might be doable to remove the SoC identifiers from driver names (although I'm sure it has been attempted in the past). Anyway, I'm mostly interested in 1/3 to be able to move the driver out of staging and start adding support for other i.MX8 SoC revisions on top. Series based on the most recent media/master tree. Thanks j Jacopo Mondi (3): media: imx: De-stage imx7-mipi-csis media: imx: Rename imx7-mipi-csis.c to imx-mipi-csis.c media: imx: Remove reference to i.MX7 from driver MAINTAINERS | 2 +- drivers/media/platform/Kconfig | 1 + drivers/media/platform/Makefile | 1 + drivers/media/platform/imx/Kconfig | 23 +++++++++++++++++++ drivers/media/platform/imx/Makefile | 1 + .../platform/imx/imx-mipi-csis.c} | 10 +++++--- drivers/staging/media/imx/Makefile | 1 - 7 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 drivers/media/platform/imx/Kconfig create mode 100644 drivers/media/platform/imx/Makefile rename drivers/{staging/media/imx/imx7-mipi-csis.c => media/platform/imx/imx-mipi-csis.c} (99%) --- 2.35.0