Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2061705rwa; Mon, 22 Aug 2022 01:04:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ZKNrB92FfW2FuyFsYgzWq2AwXRBHKY5GTVCg3u4wYwOl2vHC2GeT5s/NX45iRr8CfSusw X-Received: by 2002:a05:6402:206b:b0:446:ce5d:3e60 with SMTP id bd11-20020a056402206b00b00446ce5d3e60mr2335837edb.139.1661155485905; Mon, 22 Aug 2022 01:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661155485; cv=none; d=google.com; s=arc-20160816; b=ZwcC3KBC+5F+WmLsGpppOaThzZQgOT8tMwNZwauvV7zOY1TE2A7XwFn+tOYXId60h2 QbLP0T7WRZDlBj4xHiqFUt+rwSeRh4xzvXk/gaWb8eC7joqKSwtjKvn5mhbnylC8oYtv m/338CiE30No+TdCf+1yK+3FdXSM8O6BsKhugaJznrC3QzMOFVhXalFqnkjx2bfMOcyB NAt4TFbUK+AE8M3O0cQYJLhf+JKCJIkHg8jt0fuZr7H6e1U5XcSIuzG6fXMEohuet44x G6dafD8rsNnPP5E0207BChPWXGDV0V+F9ligNXRWyHQs68UWbHx3+G5H8u2ge6glD5hO lvgw== 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=MB9tO3gFu1lzXWqHOctULVrk/xXyF4tSPgHWMshoE6Y=; b=nANOV7vSNk2yEin1QV+uMsu+oEnp2leWNwf2oOOEZ419JpN440k+txrGIUMWL48KTS PJLrLDDqLCqYGpScemIppm0cmUBsWQ7gbHHFgG3yNn+iTPVId5CaCGfWSP3LfNt12ePZ ViOUiSjFuvWtWSVKFaygXfS5pJaIX156deZiyBV1fHVCiHYQYlqUI4esb2Iw7xp0KiJJ sxWodSbYpoREf4Hf+SMstQAUUlLEGHmA/FYwbDD4QF6gBIS/PjgMkCPpeQJjqlRzornc JanQ+gcQvpgf3nBX018fLwBbnIIzJDXZg9zDtFnYAs2LzGueJvtffmYhneQI7bWAqezj fRzw== 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 pk9-20020a170906d7a900b00730add8d023si7033866ejb.837.2022.08.22.01.04.20; Mon, 22 Aug 2022 01:04:45 -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 S233467AbiHVHyf (ORCPT + 99 others); Mon, 22 Aug 2022 03:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233384AbiHVHye (ORCPT ); Mon, 22 Aug 2022 03:54:34 -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 A80BF2A71F for ; Mon, 22 Aug 2022 00:54:33 -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 1oQ2GR-0001n0-BC; Mon, 22 Aug 2022 09:54:27 +0200 Received: from mfe by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1oQ2GQ-0006Af-Ue; Mon, 22 Aug 2022 09:54:26 +0200 Date: Mon, 22 Aug 2022 09:54:26 +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: <20220822075426.qjgxue7sjehazga4@pengutronix.de> References: <20220818144712.997477-1-m.felsch@pengutronix.de> <20220818144712.997477-3-m.felsch@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: > 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. Regards, Marco > > -- > Sakari Ailus >