Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6710702rwb; Tue, 15 Nov 2022 02:35:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vQf96tz0EAoXr5yJxHM15UDUc8sVOY1i8tubxeIzzKOfP+H6JcebzV4TmJI0l21K9pAP5 X-Received: by 2002:a17:902:e413:b0:186:9cf4:e53b with SMTP id m19-20020a170902e41300b001869cf4e53bmr3428621ple.50.1668508517745; Tue, 15 Nov 2022 02:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668508517; cv=none; d=google.com; s=arc-20160816; b=rGdhGl0duZcUfVUygHTbI3fz0o/vLD9H6/VC1p8kEZHDQmwWRSCsg2OGgLjMkWcHKj wwu2mHE3kinmzRYkz1T1Amh6rO5eF6BjQnEhmfl8YoHBQahtiWGPx1heHGFRL0Zrdtxo zfIIUMv5xjsmS82i6eYvNkq2JJlimV6y43n0UMLTyBwJsYALDiry6+2E3KyCeKZo2egx 8BKyKxnd2NQt79eGnokd1STJp0iZDGsRYM7xPpP/xLSQN5bpEKVKHvH+wkWCTgWFKEAo RA/tY9JRE3ZSeJkmzViRDTaavn99QF5Rbl06XmfXdHzfWl1yQ5oyFvmRe0JkIsToRXjy gdEg== 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 :dkim-signature; bh=s1Qw8uKWDXVG3mn+1lbe8MUKFNzigWkLGZ+Sj9Y4uZM=; b=OF1yzKnZvgWqSPjRwsqPOQ1VU19fQVcnCGRlLvCADyviL4Uj9TLuaZJI5ky+GcdLZ0 nPnQ+U2S08rvXoUhGNuHXAKTxiNjxwK8VDri8bGBwYrdJ8vdNkuN44sRSQ/NcwDdFl5V 9ziO1axYarcdgO+IQmnJVsJxd49j+mZefQsEoOF2VeKnQfm9mgovGKqOIhws7siLTGG8 gM2ou8QkNQTxN032NjACxdup4zFLuO/9h74RYjgZ0vE3bwusp107HdKoriPIwBdqixK+ Det4qOr2uU65BPq5qFF8zUuikFEgBN3Ow/DoPiXxfGASyblY0XCJ9j/xO7jXrBgkqFta Mwow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=lYybNmBa; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z10-20020a63e10a000000b0044a82d20079si10959839pgh.526.2022.11.15.02.35.06; Tue, 15 Nov 2022 02:35:17 -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=@cirrus.com header.s=PODMain02222019 header.b=lYybNmBa; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238278AbiKOKPS (ORCPT + 89 others); Tue, 15 Nov 2022 05:15:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238383AbiKOKO6 (ORCPT ); Tue, 15 Nov 2022 05:14:58 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3D917E2E for ; Tue, 15 Nov 2022 02:14:52 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AF8Hj8c031896; Tue, 15 Nov 2022 04:14:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=s1Qw8uKWDXVG3mn+1lbe8MUKFNzigWkLGZ+Sj9Y4uZM=; b=lYybNmBawgPOfP+6sap0zx5MEO17FZkXuCwbrwZVOGB4toQ5igr+8ErNcMedw5MPI/mb tH3NXV0+f2qkRAYzb44RvGovqUT5QucJbzYcGsAx0ehfYnpSJyCn3pV8qDi0MHZzWGIW +SLEamTtBUVVQyNiM0ylCTXfHNXNR7C4hrReD/vUXLntIIh9nxCz4X1EsCDX1ikSCVnQ 7G80ljdcAGj49a+EqVp54EobbBgI2QlvRmXIODbTXPRUXVNTatB26tNdPi0xYY+DDyLM KpqX60M5kqTWXJM6i1je7553cEeMobexE7gRANolU+12kTV5LTc5qTpRDC3VNoDkb5Wu xg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3kv73yg398-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Nov 2022 04:14:43 -0600 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Tue, 15 Nov 2022 04:14:41 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Tue, 15 Nov 2022 04:14:41 -0600 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 6FEB5B12; Tue, 15 Nov 2022 10:14:41 +0000 (UTC) Date: Tue, 15 Nov 2022 10:14:41 +0000 From: Charles Keepax To: Pierre-Louis Bossart CC: , , , , , Subject: Re: [PATCH 3/4] soundwire: debugfs: Switch to sdw_read_no_pm Message-ID: <20221115101441.GL10437@ediswmail.ad.cirrus.com> References: <20221114102956.914468-1-ckeepax@opensource.cirrus.com> <20221114102956.914468-4-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: _R82frNhOQOY7HML5SsZmlzICTjlQfby X-Proofpoint-GUID: _R82frNhOQOY7HML5SsZmlzICTjlQfby X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 On Mon, Nov 14, 2022 at 10:14:19AM -0600, Pierre-Louis Bossart wrote: > > > On 11/14/22 04:29, Charles Keepax wrote: > > It is rather inefficient to be constantly enabling/disabling the PM > > runtime as we print out each individual register, switch to holding a PM > > runtime reference across the whole register output. > > the change is good, but technically the pm_runtime resume happens for > the first read and suspend with a delay if use_autosuspend() is enabled, > so presumably we'll see the same number of resume/suspend with the > existing code and the suggested change. > > Maybe update the commit message to mention that we constantly change > reference counts, as you did in the next patch? Yeah agree, I will respin the commit message. Thanks, Charles