Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6771660rwb; Tue, 15 Nov 2022 03:34:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bbNJyQSKi2+X0XmIrz3X0dWpgpkZ3BCYPnNSYqY6q2elmCMbRifZrfsBKTOakytq7/ESE X-Received: by 2002:a17:903:428d:b0:186:a98c:4ab8 with SMTP id ju13-20020a170903428d00b00186a98c4ab8mr3625103plb.118.1668512059420; Tue, 15 Nov 2022 03:34:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668512059; cv=none; d=google.com; s=arc-20160816; b=LGftDLx0WbGWRuE4H0TzoXf7M5+nKkfKn60cJWHPCqZUgnG9qwub3RmQYaRgb24EE0 WVHVWjZfhV+lCSW3gbn2rjQBIjNoXeGbO64w/UajKpIBmRzoozFrU95wLxUVSXxLqtxJ ONTXEZ2t9VzQykLSLZkYSuLIHmqeEzOh3VjA7XZwjYiK8AolsDQNa7rixw3QfHQn2aOD CpAMpTwoAY+fMsu4lRO0eIkae/frAHA7T+vtmW5gRHozsHz+qZVtLJEd7lHcQmA+PF4i YXnmmN0sgSSCBCUUHdsHSft08du2JNpEHbj7RKV6EC6w71R7CTdqqTg5SFp333x2AUtI 6T0A== 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=2x2KTIo3F9QQ0/tOccOJnv6JdTKJV/3DthcEWssm0Ho=; b=FZNTRODzngrdhTKD0wSu1Fp/Y+Qmu+JKU5/Rz8zP3aAjl61SFTwh+2HiiuRG960AQL S4XjGDTomK0NL3VEbLQ+1NbDVaO22p+cgxxPFR/QLN+aOO6hO7zNE3RpbWYZWXHasHC2 XGgoziwDRd1QNeEla+0r4ZF08vngppSiCgWklqmNrqLe51V6O8+76k776AAebbt5Dakw BB4NNtr1MadDDOc/gyYqoRbgJ1UF4iQOcAaelb3IIfZvxAPAEBjWSycWdObHrtwKd5A9 jy91zlDUy63Tsl9s7KzBtNXhsOzskzbk+Elh0qB8L6D7+8bLyl8m7ZSvTTA6rAuJgaLV m/dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=L2d+s6PV; 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 ip6-20020a17090b314600b0020d2d54066csi11455565pjb.171.2022.11.15.03.34.07; Tue, 15 Nov 2022 03:34:19 -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=L2d+s6PV; 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 S229492AbiKOLHT (ORCPT + 90 others); Tue, 15 Nov 2022 06:07:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbiKOLGk (ORCPT ); Tue, 15 Nov 2022 06:06:40 -0500 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AE9527B2B for ; Tue, 15 Nov 2022 03:05:36 -0800 (PST) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AF7rHTp020835; Tue, 15 Nov 2022 05:05:22 -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=2x2KTIo3F9QQ0/tOccOJnv6JdTKJV/3DthcEWssm0Ho=; b=L2d+s6PVoTVuroXBYRCmzkcJuZVgfyVLo9/UwQ4I/KwGp5dLmwp4FURSp4jd208/cX/v +oy0WYgtbLzff+Q91hIZLWl32jeXAkdIZofG6lWK6S2Z1hJue48tBKFDvr58Ul/oXcdo uhU2W1wquzHrKPCvMaUtKfJl6Mm+Op/FMidlaAR5I9rDdzWsdi30OdEbxEpkWenYb6Bz yQOhn8LPw5bHjuV1WRA+tRrFRZ7C6ox9X7K3XtMA72rNZqATlCC0kcKPNXiXVLPFfKxQ gaIG6mkfdVlfmUlp7Hf6TBRWIGp0iPW2R6lgbdhOT+z4rPmmgfhpoidTaTvpWx7irSXV rQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3kv6s7r5rg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Nov 2022 05:05:22 -0600 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) 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 05:05:20 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Tue, 15 Nov 2022 05:05:20 -0600 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 8179646B; Tue, 15 Nov 2022 11:05:20 +0000 (UTC) Date: Tue, 15 Nov 2022 11:05:20 +0000 From: Charles Keepax To: Pierre-Louis Bossart CC: , , , , , Subject: Re: [PATCH 4/4] soundwire: stream: Move remaining register accesses over to no_pm Message-ID: <20221115110520.GN10437@ediswmail.ad.cirrus.com> References: <20221114102956.914468-1-ckeepax@opensource.cirrus.com> <20221114102956.914468-5-ckeepax@opensource.cirrus.com> <9d701845-7ad1-046c-b7c2-dd2a131212c8@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <9d701845-7ad1-046c-b7c2-dd2a131212c8@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: 2S5Z971K2I_ceiIg4jLzNBFZ4UNi9K9B X-Proofpoint-GUID: 2S5Z971K2I_ceiIg4jLzNBFZ4UNi9K9B 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:04:55AM -0600, Pierre-Louis Bossart wrote: > > > On 11/14/22 04:29, Charles Keepax wrote: > > There is no need to play with the runtime reference everytime a register > > is accessed. All the remaining "pm" style register accesses trace back > > to 4 functions: > > > > sdw_prepare_stream > > sdw_deprepare_stream > > sdw_enable_stream > > sdw_disable_stream > > > > Any sensible implementation will need to hold a runtime reference > > across all those functions, it makes no sense to be allowing the > > device/bus to suspend whilst streams are being prepared/enabled. And > > certainly in the case of the all existing users, they all call these > > functions from hw_params/prepare/trigger/hw_free callbacks in ALSA, > > which will have already runtime resumed all the audio devices > > associated during the open callback. > > > > Signed-off-by: Charles Keepax > > I tend to agree with this one, and if this ever fails that would point > to a miss at a higher-level we'd need to address. Exactly my concern here is the core is trying to be helpful, but really it is just going to be hiding bugs in the callers. Thanks, Charles