Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3796953rwa; Tue, 23 Aug 2022 10:14:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4KmOdyamWSYmii3qOetebTziBSiKUdtSROGwj+WbBY7r0Vgnpgg46w/p7bs3DOWcgmoG7S X-Received: by 2002:a17:902:cccc:b0:172:72e0:faeb with SMTP id z12-20020a170902cccc00b0017272e0faebmr24599988ple.123.1661274855373; Tue, 23 Aug 2022 10:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661274855; cv=none; d=google.com; s=arc-20160816; b=Ro8XWHsBpXwFKPMgk5EzDplZg7t9+kUzdpqBrHwd9WQWGPxDTpb0jUWF8KpjAJ5JUN WwTrENx0qxOD6ZX6rfRgRMNuqvoIjif5UFdbVtb6uK5b/8WKk726aGDriyPrsg+wmuEs TYoMCDZ9Hb4eZNN0Be/fcrBRf0PY/Vdg68nnwV8k+HwuSa0Ae0nNIWi4Ut2CGgtXlqnq pd7roiX/DyBNuOTcgOyS+dp6+o4EBgB20QXWZOJsx8rP43ZqmyaCao4Gc4I0Z+bK7Esx 5rTc66lus36olphWz/G1J6u9dWFEjYXPptKRN8mRPAW9muASDu7XinNOX2ssslKSGvxO 88qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TeRgGaj5EBLVHEye9i22KKLHsO+1HkIH42z/FqT2v48=; b=cJ+xAlSduDfRSVndC4Z7+MQOwl0+OAFIOEIoT7WR6V1WaDkQIoQ+HRtb7n4+BOi8BR utXoBVdTV33QPuWtYLdKiJllZqjv/nQGLiUuuu0ce2AJBmS5YYEK/9WLGNGPJPPEP78A IStHNy9TzCL6HWlZpzuZo8j3IKUn9mscNTllQ/Iu4T3tMmodeEqfPw4g1CuoHFvrm9vK FM1a1EwV6G1OenoV8poGQXyxps9maGHo9rk6+0LWMCG3/0Hk0TVND7Bt2g29G1IBBYuh oKOEHFJHgoUJ/tUGDpsUNb//q+cgi397skwqomL/flDTdRil4S0uZZVgZI9MiE1cygQC zpmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc17-20020a17090b3b9100b001fae017547fsi15960084pjb.37.2022.08.23.10.14.04; Tue, 23 Aug 2022 10:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244992AbiHWQiH (ORCPT + 99 others); Tue, 23 Aug 2022 12:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245045AbiHWQh2 (ORCPT ); Tue, 23 Aug 2022 12:37:28 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8E04D7CF1 for ; Tue, 23 Aug 2022 07:45:01 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oQV99-0004jZ-Jk; Tue, 23 Aug 2022 16:44:51 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oQV98-0007MY-Tu; Tue, 23 Aug 2022 16:44:50 +0200 Date: Tue, 23 Aug 2022 16:44:50 +0200 From: Marco Felsch To: Sakari Ailus Cc: mchehab@kernel.org, laurent.pinchart+renesas@ideasonboard.com, jacopo+renesas@jmondi.org, akinobu.mita@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 3/4] media: mt9m111: fix device power usage Message-ID: <20220823144450.ctjmby53prjw5qis@pengutronix.de> References: <20220818144712.997477-1-m.felsch@pengutronix.de> <20220818144712.997477-3-m.felsch@pengutronix.de> <20220822075426.qjgxue7sjehazga4@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org Hi Sakari, On 22-08-22, Sakari Ailus wrote: > On Mon, Aug 22, 2022 at 09:54:26AM +0200, Marco Felsch wrote: > > Hi Sakari, > > > > On 22-08-22, Sakari Ailus wrote: > > > Hi Marco, > > > > > > On Thu, Aug 18, 2022 at 04:47:11PM +0200, Marco Felsch wrote: > > > > Currently the driver turn off the power after probe and toggle it during > > > > .stream by using the .s_power callback. This is problematic since other > > > > callbacks like .set_fmt accessing the hardware as well which will fail. > > > > So in the end the default format is the only supported format. > > > > > > It'd be much better to add runtime PM support to the driver instead. > > > > I got your point, but didn't have the time for it right now, I will drop > > the patch from my v2. > > The API is different but generally involves doing more or less the same > what this and the 4th patch do together. I know :) as soon as I got feedback on my TC35 series [1] I give it a try and change it to dev-pm. [1] https://lore.kernel.org/linux-media/20220818143307.967150-1-m.felsch@pengutronix.de/T/#t Regards, Marco > > -- > Sakari Ailus >