From patchwork Tue Mar 7 15:00:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 90268 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1pZYvq-00Cz7b-T2; Tue, 07 Mar 2023 15:08:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjCGPIs (ORCPT + 1 other); Tue, 7 Mar 2023 10:08:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjCGPIS (ORCPT ); Tue, 7 Mar 2023 10:08:18 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A78C39B91; Tue, 7 Mar 2023 07:02:09 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id D11ABFDA7F; Tue, 7 Mar 2023 07:01:26 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zk4AQkC5ppIp; Tue, 7 Mar 2023 07:01:26 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678201286; bh=G4oLX3QKgPPsLbIKc+SYmXlS7UOyLkBBHTW6vmCxneQ=; h=From:To:Cc:Subject:Date:From; b=FkvgUUhIWpx2fCXAGrJIVT3XReSAH7qd0NU3RVYcS3RmOUqou1whWIVVH9imfRVpb B/iKw0oxTk2gRKH2tG0hnbFZLZzOe7sm4phXRlaMvuRKLpk55HLp1/jn251SHeDgzF lbXqh2OkGHgtDFzIH593rhRuuq2FhRXtoeh4w70xT0DoxlYL73zettJGej8WdJ7ml0 Y5dXfr7eA8kwllSEd0eTuXa5eMPT/yA2yeSOwUxQ+fO7eW0yi6a3u1NsTWgCTGaHBq KB+p8hiT22W5NU5qPQMOOAMQRAktoHLMoZAdPt8EaOoC+OkuVvLppC4gLvNP46DiUG I7jQn/cX0eLpg== To: laurent.pinchart@ideasonboard.com, slongerbeam@gmail.com, p.zabel@pengutronix.de, mchehab@kernel.org, gregkh@linuxfoundation.org, shawnguo@kernel.org Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@puri.sm, Martin Kepplinger Subject: [PATCH v2 0/2] media: imx: imx8mq-mipi-csi2: Use V4L2 subdev state Date: Tue, 7 Mar 2023 16:00:45 +0100 Message-Id: <20230307150047.1486186-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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-media@vger.kernel.org X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no hi Laurent and all interested, this is driver simplifications and cleanups for the imx8mq mipi csi receiver. Remaining TODO is: * moving the driver into media/platform/nxp * getting rid of the internal "state" variable * autosuspend at the end of probe() thanks for your time when looking at this, martin revision history ---------------- v2: thank you, Laurent: * properly unlock the subdev state * fix pm hunk in probe() * add patch to "inline hs_settle" v1: initial patch: https://lore.kernel.org/linux-media/41417ffce644975b3be0d52fb7ac584b3a7c3b1b.camel@puri.sm/T/#t Martin Kepplinger (2): media: imx: imx8mq-mipi-csi2: Use V4L2 subdev active state media: imx: imx8mq-mipi-csi2: remove unneeded state variable and function drivers/staging/media/imx/imx8mq-mipi-csi2.c | 153 +++++++------------ 1 file changed, 59 insertions(+), 94 deletions(-)