Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3954535rwb; Mon, 16 Jan 2023 15:51:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsqwl2I+BWBhJ66bR/WXUyYn0Wt7s5gudyCaiFYCsviPUX6Pg/k+/3vVlL+oTaQSd9jpcvb X-Received: by 2002:a17:906:3291:b0:86f:356e:ba43 with SMTP id 17-20020a170906329100b0086f356eba43mr773806ejw.18.1673913109558; Mon, 16 Jan 2023 15:51:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673913109; cv=pass; d=google.com; s=arc-20160816; b=EiF5Qqs7350NIYrQJVjf+/uoPXGuGPZHbbozryk6IOga6b31hpli/Nc66GmF7eIPc5 SSyOZhRfrcPn5QasFf3fJMyvs5xct+tluydVQ5xg11eIpuSvfe4f7SWHQU4vpqLV1xZT OyYPZ+JcIte13m1rpNpzpdcCPxTaUYdlDnf6yjyEpeG1U9YYHTWPKkonP/0XoyEGCp6q 0umSUb0RjooxxVp6kOzv80cAtb2WZ/chawY21id7Jj8ryXjDHaS2dkx1KFanSWF38Cc8 ixkPQPemeUbYvATJrqzzoibNsaVlwyfGsdVkuVVPaqBx0v3l8OE3CVPcriMeut/krjCh LF8A== ARC-Message-Signature: i=2; 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 :dkim-signature; bh=Spx/m+y6IQTXG2/ImI2Ltvhjm/XLr6qXWNR6waNDMSU=; b=Xgwm20i9ab2BHM3AsttalNQtLG8kgAKtayGX+cIiuz9aELXVQy0xPJrHzfYNOm36El 4+k4lX0sivJaGHcIJu30JJLXzRtLEQMUUzHlaYMLKc4/HdrQtC7Su9x3RO0sv3m/nDum 6RubkOzoJSBDtZpaFD2skIVQXn+FYUakx7YYXzNss9hHo9HjPUrFT+FF1vSG7xM1ZPRB 5/YU02M0zjv0cnXKHQs5uXTGdxJXom3rPDSjl7WWCpnom/vQBljT+jCJG3AWdbwk5NXw ieKaWG6mwfsjbGLapHRXv3b/yggtwVIybBngp0YDpp/uyByed8Smfe91SlvtU4nD7FKX Yecg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=FJZFBTcB; dkim=pass header.i=@iki.fi header.s=meesny header.b=lic720AH; arc=pass (i=1); 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 g6-20020a1709065d0600b008718d601cfesi2039832ejt.474.2023.01.16.15.51.37; Mon, 16 Jan 2023 15:51:49 -0800 (PST) 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=@iki.fi header.s=lahtoruutu header.b=FJZFBTcB; dkim=pass header.i=@iki.fi header.s=meesny header.b=lic720AH; arc=pass (i=1); 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 S233671AbjAPWQW (ORCPT + 50 others); Mon, 16 Jan 2023 17:16:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235157AbjAPWP6 (ORCPT ); Mon, 16 Jan 2023 17:15:58 -0500 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D7C6279A9; Mon, 16 Jan 2023 14:15:47 -0800 (PST) Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lahtoruutu.iki.fi (Postfix) with ESMTPS id 8D61D1B00229; Tue, 17 Jan 2023 00:15:45 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1673907345; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Spx/m+y6IQTXG2/ImI2Ltvhjm/XLr6qXWNR6waNDMSU=; b=FJZFBTcBJuV4qVjDaaJSme2TO70+BVoLo9ooMiDCwbf0GBUeX1J0qUe9qLlwwVLMCs18A1 IEad29ZieP/wXyeq6KtSy6VEgee6DXn2xlYcuHTte6v+ocdfx6ezJFWSb9ulC5UbE/4/nv sY+jbFxdYz+HBC4Rk3C/vrxsHOUcOrzWRdnU+xdu0o7gcQbnmdKsCi8WCGVRw/NOeY2Og2 XJfxMvQ7uw8T3o6+hi1739fIJCdneBxvmtDaPIsVVkl1rZsCXw1tIYrkUuSjVI2tQ5Amxw QKomR9+awMiP65OQsQweRTbDBGgxxFWNKrjMk1IpraJsYXesr3NpSnryiya2WQ== Received: from hillosipuli.retiisi.eu (82-181-192-243.bb.dnainternet.fi [82.181.192.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by meesny.iki.fi (Postfix) with ESMTPSA id 1FF2720174; Tue, 17 Jan 2023 00:14:24 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1673907264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Spx/m+y6IQTXG2/ImI2Ltvhjm/XLr6qXWNR6waNDMSU=; b=lic720AH2W9TQd3tzimJlTprlQe0RglzVlrXqvLSe1V8INI4bMFdA9Vhy0MISszx8hfCu3 gk6LkiPBQdN6LSDKudoYGwoyS7mDz2kZJtBRu+cHtiFtj6m816z+ikH45MK0fYNZc07KWq Jd8kFnH/KHF+mzaW3EFiqGw//3jWhyA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1673907264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Spx/m+y6IQTXG2/ImI2Ltvhjm/XLr6qXWNR6waNDMSU=; b=YNHPecA5uhPtoWK+SbGvIiJ9EqmqsVw8T6z/1CMkW00a64+VC9t9IlbI8doLp4qpGnnrnt UcgtcKR7Kqryh/lsVS2BEWDthaJ7IsZlzwW+/ynOwxnXPeJfvSO/86tEdtTccN5QELYxOQ Dh541ngLiqiJKvo2ZQtiMw+dfQOLw3I= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1673907264; a=rsa-sha256; cv=none; b=MkIPuGznRw0iD7dbhb/lBe1ScveNqP1y/HcziCWU+07kywNeubk9P3ExoWFaymp//PS7DA OXgPQCqOyAWlgYUzdERSVUmOc3ET07xqV5zt1/ixqeRPMF1LeOD2W7RxUXaXcQYSa0QPsW kCFOkkw48pcRS2ulx3CK5vNwbThIkgk= Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 8C8F9634C92; Tue, 17 Jan 2023 00:14:23 +0200 (EET) Date: Tue, 17 Jan 2023 00:14:23 +0200 From: Sakari Ailus To: Marco Felsch Cc: Sakari Ailus , 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> <20220823144450.ctjmby53prjw5qis@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220823144450.ctjmby53prjw5qis@pengutronix.de> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 Hi Marco, On Tue, Aug 23, 2022 at 04:44:50PM +0200, Marco Felsch wrote: > 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. What's the status of this set? These are nice improvements but I was expecting v2. Thanks. -- Sakari Ailus