From patchwork Sun Sep 29 13:43:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13815119 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 A7C8CCF6499 for ; Sun, 29 Sep 2024 13:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=2y7McZ42E8gy16NKhXrJ2XiQ0cnYriMYRINUefO2kiE=; b=w2TX8VTRGAUTdKGwMvzMgUIaPm ba9CmoXCtRJ41nDBtfnnbQn91ZBXEssPzyoA3ArCmSWGW/AqAXsOUXBssvQOxRmKYz+7CaQxB8oxY 8iETFYBdmtXbKzdvNS3DdNVzS5/rjWjbHvj5FIsUIVyrj8cY/SdILO89jGiuc+QjlbIiqY4GWYVG7 DMPgz5DCdDVTVcH/7UKLSPX+oPeCMGmoCAlCCjipiTp4mPbMU/Poav68EHVqoqSf+Eco1ygVIHtVI ov2sKlokuL620aaeiDMDSNb2itM+S0Vhx9kt2NJ67GMPXuk9hEiEzpwdxdoDg8Ifq6aAGpkjTz6iD NgfpuTDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suuEd-0000000Eq1F-1qHr; Sun, 29 Sep 2024 13:45:15 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suuDO-0000000Epif-1tuX for linux-arm-kernel@lists.infradead.org; Sun, 29 Sep 2024 13:44:00 +0000 Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AA820B3; Sun, 29 Sep 2024 15:42:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1727617346; bh=inAw3f7g7F3IY2IUkhvyADvA2yVM55yNgSiBz0oXYM4=; h=From:To:Cc:Subject:Date:From; b=X92iHOh48Tso/ejvdM04wgkdGsyPTGos0/OhqFcjyuZEGkvpzSAvqZqutSuEnTt1x LW0AxFrYAJFqy+Eg8A66Gt65AxVsPfj2+UQko7+at+kqbofvH/SLf9AuuY6GtIrLLJ pXXCji005Ndm3hw9bP3Foz/8Wit0EKQL+soiaCrk= From: Laurent Pinchart To: rmfrfs@gmail.com, martink@posteo.de, kernel@puri.sm, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: guoniu.zhou@oss.nxp.com, imx@lists.linux.dev, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] media: imx8mq-mipi-csi2: Simplify power management handling Date: Sun, 29 Sep 2024 16:43:51 +0300 Message-ID: <20240929134354.20735-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_064358_656832_89BD30BA X-CRM114-Status: UNSURE ( 5.54 ) 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 Hello, This small patch series is a reaction to "[PATCH] media: nxp: imx8mq-mipi-csi2: Fix CSI clocks always enabled issue" ([1]). Instead of making the PM handling more complex, I think it can be greatly simplified. I have only compile-tested the patches. Guoniu, could you give this a try ? [1] https://lore.kernel.org/r/20240929101635.1648234-1-guoniu.zhou@oss.nxp.com Laurent Pinchart (3): media: imx8mq-mipi-csi2: Drop stream stop/restart at suspend/resume time media: imx8mq-mipi-csi2: Drop ST_SUSPENDED guard media: imx8mq-mipi-csi2: Drop system suspend/resume handlers drivers/media/platform/nxp/imx8mq-mipi-csi2.c | 113 ++---------------- 1 file changed, 10 insertions(+), 103 deletions(-) base-commit: 81ee62e8d09ee3c7107d11c8bbfd64073ab601ad Tested-by: Martin Kepplinger-Novaković