Received: by 2002:a05:6512:23a5:0:0:0:0 with SMTP id c37csp501155lfv; Tue, 15 Feb 2022 07:30:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJydgMIJZmMMXPTEf3TQfvzFtcAB16rTSG6Q2j9NCpT4gclhVw+84VcVZ6+g9SYetg+4a/8v X-Received: by 2002:a17:906:1744:: with SMTP id d4mr3268248eje.53.1644939053182; Tue, 15 Feb 2022 07:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644939053; cv=none; d=google.com; s=arc-20160816; b=bpnDa5/rJaMywndHVGcpNhHZHjqAJDtopKD5UQFsr0L+2UFvxeRSqgesLd+glPpxLf tE8exQwC9upY0X1MIxofP7yYsprd0DSFHKudVW01JK9B70kNPTZnzL4c19up4xWdj6g0 AhCGd6OdFQ4Z0EoQHVn0+Ki848y1sXLt1LdB0txGb/X6AqRIHV5N5obxbQBUxohCWWSP ccENgtlnjfAl0ZOFV6JNktftb51FbaFx0kqJqGQb1SmLvpLjQ5/k6ThFdlrHHvdTD84u GSB0dCuKr8qc1NvWhfaSco/rm5bDU1ZT2fQ8GY0a1jp/a97y8eHwfVyD8GlL1gx9us2o GtxQ== 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=9pRI9DHKMGrjxTpdktKuGS8mctU4c81Pqefuj9Uotc8=; b=d9ozVpmdXFHomQUdEfCrInAZ9Ghh+h2aY8yLHnklU9FEkNzodQl4hNh6idVOSI6+OS 6i9Im3qEdgrZxXB/lcerbdbK74ZW275OR3ixKT3M8XkIzf7D4JEvXaU/aeg5FPIjUXrV uGCYxu286gPwYznNn6kfmWUwFZ6uaBGJBvhu1pzrjGf5+Lqu3uq5yg2nubVRjmhBVdQA nJThQYdl5pJyJFQmeFb/PLnBwP/mFbNglwTl/XJwRzWB0zh5iA0zyGT9iR005f/1N5sb xFc2xemjptDVpQmTPeSqQ7+eHOm4QaVqj6leksv8UwDsbIb/PjKhJ3HfdWaCAVhMSLwp +nFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Jp3pzaNe; 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 hq6si27348996ejc.42.2022.02.15.07.30.30; Tue, 15 Feb 2022 07:30:53 -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=Jp3pzaNe; 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 S234499AbiBOK6y (ORCPT + 99 others); Tue, 15 Feb 2022 05:58:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236813AbiBOK6x (ORCPT ); Tue, 15 Feb 2022 05:58:53 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 440DCDB4B9 for ; Tue, 15 Feb 2022 02:58:33 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21F4STA4031155; Tue, 15 Feb 2022 04:55:37 -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=9pRI9DHKMGrjxTpdktKuGS8mctU4c81Pqefuj9Uotc8=; b=Jp3pzaNepVGVVDVl+Igkfk8BlLbu+gQbUcdAqV4rmSlO7FBvUIArT6iofAI2ZVycyqDm I6ENQqlHwdhB0+AThKzsyqp5J/gYbBKgmnPAyfnOo7MEiW2wnQw35uQsKxHJk89NTL9q LYi+vBNq4bukYemDZJHLtHZjAkBHZ7Pgfinb3vAQ1TTqtH0nExM4b+2mlCRIl9ixx257 YNH7fsSe6yz0pgFUIjWZGiAG5YbtDiHwbiwihAYQna8wcXRqhjEw7YzfhQBsB6k0ux7M hvXNPA0LNpqeacn+OSoXI7IefUr8DR1YjZlu737ncMPlvUBbvNPOUtF/RGiMZLER3fI0 uQ== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3e7kx7sbp9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 15 Feb 2022 04:55:36 -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_128_GCM_SHA256) id 15.1.2375.18; Tue, 15 Feb 2022 10:55:35 +0000 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.1.2375.18 via Frontend Transport; Tue, 15 Feb 2022 10:55:35 +0000 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 48B4811C7; Tue, 15 Feb 2022 10:55:35 +0000 (UTC) Date: Tue, 15 Feb 2022 10:55:35 +0000 From: Charles Keepax To: "Viorel Suman (OSS)" CC: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Daniel Baluta , Viorel Suman , , , Subject: Re: [PATCH] ASoC: codec: wm8960: complete discharge on BIAS OFF->STANDBY Message-ID: <20220215105535.GE38351@ediswmail.ad.cirrus.com> References: <20220208121727.4461-1-viorel.suman@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220208121727.4461-1-viorel.suman@oss.nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: HvhLj2FcgwmuXl1hKIbOImqGwRK0Hy7H X-Proofpoint-GUID: HvhLj2FcgwmuXl1hKIbOImqGwRK0Hy7H 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, 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 Tue, Feb 08, 2022 at 02:17:27PM +0200, Viorel Suman (OSS) wrote: > From: Viorel Suman > > On BIAS STANDBY->OFF transition the current implementation sleeps > 600ms on suspend in order to discharge the chip. The suspend is > propagated from "snd_soc_suspend" call for all audio cards in a > serial fashion, thus in case of boards like i.MX8DXL EVK which has > 3 distinct WM8960 codecs the total cumulated sleep on suspend is 1.8 > seconds. > > On the other hand the BIAS OFF->STANDBY transition happens > asynchronously with regard to "snd_soc_resume" - the call is > propagated from "soc_resume_deferred" which is just scheduled > from "snd_soc_resume", each card having its own work scheduled to > execute "soc_resume_deferred" call. > > The patch performs discharge completion on BIAS OFF->STANDBY transition > so that the cumulated effect on suspend described above is avoided > and discharge is completed in paralel in case of multiple WM8960 > codecs on the board. > > Signed-off-by: Viorel Suman > --- Apologies Mark not sure how I missed this one, a bit late now, but the change looks good to me. Acked-by: Charles Keepax Thanks, Charles