Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2141571rwa; Mon, 22 Aug 2022 02:56:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR68mZp+gFGExTHhWrFhZYIjksRW1cWYzp4dgXHSoZTOCJ3qmP6xMRaVKEXOUyjQrxE6jUt5 X-Received: by 2002:a17:907:7f26:b0:73c:b69a:c7c5 with SMTP id qf38-20020a1709077f2600b0073cb69ac7c5mr10204867ejc.165.1661162171882; Mon, 22 Aug 2022 02:56:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661162171; cv=none; d=google.com; s=arc-20160816; b=axXcqteR8v8Ujxod8HOZ01ULloP5j6FTaT1xFtOgeAjF5fORrxckk9VRnftDnxyLtN unQlZCQq6ZrZpzwYuWM06B03cbQo9TAVJ3KH9kwJZJh+YkJhSBKMBcPsoE6LFcY7y+1s ktCjOKQRQ9W9bkdEdV95GxEszZGPLVEI139RoHV5PR09ZRMfEzI9Ez21Jjfka/vyEOke Pi5opLDrK8vG4D3kZaKWo1nJ8LhHviINTevEkL7SmudXT7VjVvVCTOjZcXOCFAQnQPYm Q9zHA63hZpZCyZk0yWtdmmmKMGSAzlUXN5JUq6kbJZ8dmyXrwIj1qDzCAytaluQP9VNK nAjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iXkxxU1p7Y63ZoNfFTEQ7yl816VJbaC7Pi6UXIGAiF0=; b=TsTZxxioVdBvbpA1tTYdUNLOu4bctEZOGNKkqUto5hjWjUFLYBIPeheHS8kDZq1r+4 YUD2dHB1XrgoZBshuql6YtxTQpxn5L1NDxjbp/ra3dTQJJcE3qXKOyKf3ew34pwIJe+c NoXUp6FqthJ6JvHha2TTf3OXmo6uh7pz53NAtgKJq4B93P2BSZKOWDljlpClt89JdqGK WrZEdwHnqiVpjyxo/y4tx0jww+DSe9lt47uUErRbbIOcbX77TEBncxnhY4hcbRyadPg0 7XRS2cc99NqBDWTke2oqHMClsXCHYTFuZjMheCasMfaZZKP/S3OvP4WkMiyA1cKwAVW8 vXsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c28ifSh3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc1-20020a1709078a0100b00734b96e0c80si9937544ejc.690.2022.08.22.02.55.46; Mon, 22 Aug 2022 02:56:11 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=c28ifSh3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233315AbiHVJTU (ORCPT + 99 others); Mon, 22 Aug 2022 05:19:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233034AbiHVJSy (ORCPT ); Mon, 22 Aug 2022 05:18:54 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D52BAB49F; Mon, 22 Aug 2022 02:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661159927; x=1692695927; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PODeVLuIX9g0BxkQuwOWxZfhH1PA5lu7oTDDA6VcGDY=; b=c28ifSh33/npFdtCxASSDUnnvKUIOOKZZCyhPFV+cFgxC0Fn9PJr7sLK l9fTRE/jhAECfsHAKyK/KzgaDdES+Kw8AAoEpgnvxJKtxNK50mmjIEQoB Uyobwd/vKehQDrHlA8Dx0tY7ybChLDJQmdfYGCGnZelQ8Vb4Ae3T1SSo9 qP8qT/h3ItO+F60WM5ebVJAmyIkTQXBW9EblXTjkcD+JJCOdJ+fCbYBrV mfgWWt3HEXsvAlQbpg1EUd1oSUBo+I+4S0E2+uzwMRyAj9TwQ6HY953M8 4DMBRpdGcGRJdzDlxR+usJfj9uKCZskiid9IjKRxBUq9UOuMimsUp3S8p A==; X-IronPort-AV: E=McAfee;i="6500,9779,10446"; a="355097453" X-IronPort-AV: E=Sophos;i="5.93,254,1654585200"; d="scan'208";a="355097453" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 02:18:45 -0700 X-IronPort-AV: E=Sophos;i="5.93,254,1654585200"; d="scan'208";a="641961795" Received: from punajuuri.fi.intel.com (HELO paasikivi.fi.intel.com) ([10.237.72.43]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2022 02:18:43 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 77AA020656; Mon, 22 Aug 2022 12:18:41 +0300 (EEST) Date: Mon, 22 Aug 2022 09:18:41 +0000 From: Sakari Ailus To: Marco Felsch 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: 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: <20220822075426.qjgxue7sjehazga4@pengutronix.de> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Sakari Ailus