Message ID | 20231122-imx-csis-v1-0-0617368eb996@ideasonboard.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1312784vqb; Wed, 22 Nov 2023 05:14:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqKo8W6FG4ywfhgAXbSnWKiUOO/mqLdhfLMPePdgXP3yXj7jvyuWzmf3AKOR3sk4bD1Bob X-Received: by 2002:a17:902:ec84:b0:1cf:7d38:b6a6 with SMTP id x4-20020a170902ec8400b001cf7d38b6a6mr661104plg.57.1700658859663; Wed, 22 Nov 2023 05:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700658859; cv=none; d=google.com; s=arc-20160816; b=ntKso0jkobSQB3tCU0wjYO4ZwHSMNxZZMBa54p3rNHmwAeOr29zaC/3SHtOFMIINqV zxAboI9qv+gvo3Iv/fMAKuBWrNvykWASNQihWDZdsdXFoMGA01p1V3sFA2PtczdLtYx4 wrXwAuym4Q3eI3mMXgRXLWe/E47FdaG2hU1UtIsxmQIeNIEHSnaB0Y9N9E3yO778NUEL aTIkag5cqZhV9Vyb4Mh+3Et4uNjSh48URGaHW+kmpG7JOawv9dPa8XxfdegJ0+wtDjgw pcvvnnqha/EzYl8/oiIOtc/1oxHc6m6kq4l9j6JRt4hGunIK7UCiaieglkA2JHeHC1B9 i1NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=Lwj63SANKrIBkSn324FbqhOS6BHVGa3uZZa81Q9CQ68=; fh=7dkMOs5/tPCl/heSmN/G4SnIn36MQ9Q1x2sCPQaV5HQ=; b=yztHAEwwxKbhyARr1HkN10F5+kMkOwzXEy0LU/R+Ygd5QsV83A2Sz8drzj12W43mC7 k70xAm3XDrNBCbzbXKHh3qqrz92H57fl+sBZ37lHyoYniPo4JdU7zaK+eESm25w9j8h8 Ku5kFR7XCOtnEowLxbWBR1U+2h6I4TmCikKQIUTgpLR3PXP465fxgLlzp3L7LKyVVwAc VY8RumXxmjYJWxKFSX3Rr4CJduGWNC8bT2Q5jBj0hTnupJENAvmiwgZn/COWHOSSfZAw tdZdaB3IHQP0T0JS/ptxieDCz2BmuOtlhodpLzl8ktIeJN22hZfodTlweppj01Buxxgr La3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=dkEJTgDp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q5-20020a170902bd8500b001c9d9050b37si11926892pls.260.2023.11.22.05.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 05:14:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=dkEJTgDp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6968E81DE21B; Wed, 22 Nov 2023 05:14:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343629AbjKVNOT (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Wed, 22 Nov 2023 08:14:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbjKVNOS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Nov 2023 08:14:18 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D03F9A; Wed, 22 Nov 2023 05:14:14 -0800 (PST) Received: from [127.0.1.1] (91-158-149-209.elisa-laajakaista.fi [91.158.149.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0E50A276; Wed, 22 Nov 2023 14:13:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1700658820; bh=xUp1lgq1XJQ0yPFO/RbO43/4PZtMpFPBohbQDo/f+A8=; h=From:Subject:Date:To:Cc:From; b=dkEJTgDpEU0HfTgvsJ1uVzNYn0a6ZMbzKZP6BWcffECOhtLeyjIRk3upTC2XXe3LG FXxb11913gKBMg4dlefMRrdujdAjV2qlfMYkakzylR4eZKxjjr24Y0Q2qOs+ixxuTS ToB3aXezYG2YyeMjxLYzoI+ES3h3A7wM1xHbXqCg= From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Subject: [PATCH 0/2] media: imx-mipi-csis: csis clock fixes Date: Wed, 22 Nov 2023 15:13:47 +0200 Message-Id: <20231122-imx-csis-v1-0-0617368eb996@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIv+XWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDQyMj3czcCt3k4sxiXXPLFCMDw5QUU8MkSyWg8oKi1LTMCrBR0bG1tQB R9wWfWgAAAA== To: Kieran Bingham <kieran.bingham@ideasonboard.com>, Rui Miguel Silva <rmfrfs@gmail.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Martin Kepplinger <martink@posteo.de>, Purism Kernel Team <kernel@puri.sm>, Mauro Carvalho Chehab <mchehab@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com> Cc: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=612; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=xUp1lgq1XJQ0yPFO/RbO43/4PZtMpFPBohbQDo/f+A8=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBlXf6eANEcYpo9fhJrOO1DodWQTpcIxD8I1dgYm JKjiwHqtaiJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZV3+ngAKCRD6PaqMvJYe 9TEJD/9hB869O9DsFhXVeUTS1/P8og9vzsRKOAq134o4gQqN4Jp5dSpeJQ+6Br4GcNry0jLlhy6 HCznF78fbSFdDk2WjzrmOdoBIrdCCWSb7JVGmLRZJIMmBJnEgXTxdLbuilDLZO8b/hq0o2OkOtO YRMz9ASGshHD18sx9b0Uy5/n+7pL6gM+0WQG0kYpK+mqtbHFdBXKt/4JcYi5i78ruSgDiruphko mc4FlDLGcJ8cP0Uzrbg/NkAESBI48ElrOiPiM9hGuuGCp2wW6joPnKQ62yDVFvwmTifWxYIP+n5 5yojuAKcabZtQYK4EN48m75apyKkHE9wqogSJ+lPlKMg78Wc6U5ZqkGNPrFJb9xK6E6F6TeRUmz oXFZC0wTZFbe1AdLk0dAPBMMI/9T64vtg+BbuOt8VxrSWZKH9GOmoHQq2IiSjnQqTUHey5At4l7 BPpAIXbTbTppN23ejnKby1Ev02uYd0jQJXON8GqA33I2SZ70cPr6Hq+hhfYx++6t+9IYCUwun7X SoIbnKlDb/RqqUhOZZlx+UjXOzQjYdP+KGJxiYofSLWOQ/whdPN/43/amRDVrM7sKrvU5CWO5pq RgghuyPHGhxKUtVNoJfq3EPvagRAa6mxf+5ZWrMI4q+8JPAP2RYvq9gEewsBAtbRkhHX+I8WpAi I5F/IreZV71tlug== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 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_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 05:14:18 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783270064760912344 X-GMAIL-MSGID: 1783270064760912344 |
Series |
media: imx-mipi-csis: csis clock fixes
|
|
Message
Tomi Valkeinen
Nov. 22, 2023, 1:13 p.m. UTC
Two fixes to the csis driver: One to fix remove() another to only enable
the clocks when needed.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
---
Tomi Valkeinen (2):
media: imx-mipi-csis: Fix clock handling in remove()
media: imx-mipi-csis: Drop extra clock enable at probe()
drivers/media/platform/nxp/imx-mipi-csis.c | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
---
base-commit: 1865913dd590ca6d5e3207b15099a1210dd62f29
change-id: 20231122-imx-csis-79d201dd51b9
Best regards,
Comments
Hi Tomi, On Wed, Nov 22, 2023 at 10:14 AM Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> wrote: > > Two fixes to the csis driver: One to fix remove() another to only enable > the clocks when needed. > > Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> > --- > Tomi Valkeinen (2): > media: imx-mipi-csis: Fix clock handling in remove() > media: imx-mipi-csis: Drop extra clock enable at probe() Shouldn't both patches contain a Fixes tag?
On 22/11/2023 15:21, Fabio Estevam wrote: > Hi Tomi, > > On Wed, Nov 22, 2023 at 10:14 AM Tomi Valkeinen > <tomi.valkeinen@ideasonboard.com> wrote: >> >> Two fixes to the csis driver: One to fix remove() another to only enable >> the clocks when needed. >> >> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> >> --- >> Tomi Valkeinen (2): >> media: imx-mipi-csis: Fix clock handling in remove() >> media: imx-mipi-csis: Drop extra clock enable at probe() > > Shouldn't both patches contain a Fixes tag? Indeed, yes, I'll add that. Tomi
On 22/11/2023 15:21, Fabio Estevam wrote: > Hi Tomi, > > On Wed, Nov 22, 2023 at 10:14 AM Tomi Valkeinen > <tomi.valkeinen@ideasonboard.com> wrote: >> >> Two fixes to the csis driver: One to fix remove() another to only enable >> the clocks when needed. >> >> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> >> --- >> Tomi Valkeinen (2): >> media: imx-mipi-csis: Fix clock handling in remove() >> media: imx-mipi-csis: Drop extra clock enable at probe() > > Shouldn't both patches contain a Fixes tag? I think the issue is there in the original commit adding the driver: 7807063b862b ("media: staging/imx7: add MIPI CSI-2 receiver subdev for i.MX7") However, the driver has changed along the way, and I'm not sure if the original one had an actual bug. Nevertheless, the same pattern (wrt. clocks and runtime) is there in the original one, and I think that pattern is not correct even if it wouldn't have caused any visible issue. So I'll add that commit as Fixes-tag, but if someone with more knowledge about the driver can verify this, that'd be great. Tomi
On Wed, Nov 22, 2023 at 03:44:33PM +0200, Tomi Valkeinen wrote: > On 22/11/2023 15:21, Fabio Estevam wrote: > > On Wed, Nov 22, 2023 at 10:14 AM Tomi Valkeinen wrote: > >> > >> Two fixes to the csis driver: One to fix remove() another to only enable > >> the clocks when needed. > >> > >> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> > >> --- > >> Tomi Valkeinen (2): > >> media: imx-mipi-csis: Fix clock handling in remove() > >> media: imx-mipi-csis: Drop extra clock enable at probe() > > > > Shouldn't both patches contain a Fixes tag? > > I think the issue is there in the original commit adding the driver: > > 7807063b862b ("media: staging/imx7: add MIPI CSI-2 receiver subdev for > i.MX7") > > However, the driver has changed along the way, and I'm not sure if the > original one had an actual bug. Nevertheless, the same pattern (wrt. > clocks and runtime) is there in the original one, and I think that > pattern is not correct even if it wouldn't have caused any visible issue. > > So I'll add that commit as Fixes-tag, but if someone with more knowledge > about the driver can verify this, that'd be great. Sounds fine to me. I assume you'll send a v2.