Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp339800rwl; Thu, 23 Mar 2023 17:19:58 -0700 (PDT) X-Google-Smtp-Source: AKy350Ybb4lw54mFZM5oTLsI+u5fILf7z9THX2Ks6h1RU5td7sQ+YPwnE4hP0WCxbw2znIdJOhRH X-Received: by 2002:a17:907:2095:b0:8e6:266c:d195 with SMTP id pv21-20020a170907209500b008e6266cd195mr831439ejb.38.1679617198291; Thu, 23 Mar 2023 17:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679617198; cv=none; d=google.com; s=arc-20160816; b=BJcdGCcFBzxJMLOpUcYeLWV6eEHQWvyV+B4KkG1VeIdQGrWUbVBwz1j3gRALwaDVmm gTcBSvEqqxD3Zdn0Yrui6SzYcLV37Ab1wrY6v/TpzRkLgz/IKzkQjuNb06mMguBoowXk Rk5idjAQ5SPn2eD//bVsiDwp+ZGlZulKc6sLJ5yJUocRkUHsVY0E7dV/X5wpcv3Eiawo kt71lFH6jE9a3EAJe4z+LeKj946au7ELv++LDoTCWhXW+KS+vldcugS3pyNYQXsyfFSW k5MmjZmpbcVRRZ6TCGIUptPUhMcZ4ahl9tQJWTe/UGShgAcxW7xDZ3e/fqMQ4oemF+aT IiTA== 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=OGpcqv3+wL+RNis3DLzgt+0k1LBssbTZk53Mw5Z3SvY=; b=PTux3s5/iTgDYKU0yefV6e6+on6RU1Et3+9FczKFfkHU4RH6+hJJd9ZRCPLxk+9Ees LWXinYWgxoRoQuj4hpOH27WXEtOemRUPQyOmAXHj8nn3H41WquCJxGRcB9TmsjnYiO1r pleAiGeUec7UWBaBM1DrVwCaKbqztyvP/EI0e5xZ9iJUGg9vUjYaVKGVadaYlTPW1GiD 4ZMY7t5dVvgn95JyfH8+Qht7XiEQ7ULN72vYWojkKs8q54PSZoBh/mo9DDPsPuivDJye 6GYPLsi3/MZMOw6q5YXvgvt18MqjOanpVx8s/SkvV0IOcd6GvCPzL0fI4ZG7QP5cj0TM aDlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R4K7k18r; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js19-20020a17090797d300b009394ba09fe6si11018006ejc.458.2023.03.23.17.19.33; Thu, 23 Mar 2023 17:19:58 -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=@kernel.org header.s=k20201202 header.b=R4K7k18r; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbjCXAOm (ORCPT + 99 others); Thu, 23 Mar 2023 20:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229522AbjCXAOl (ORCPT ); Thu, 23 Mar 2023 20:14:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD0F111171 for ; Thu, 23 Mar 2023 17:14:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4CFA9B82200 for ; Fri, 24 Mar 2023 00:14:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14184C433EF; Fri, 24 Mar 2023 00:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679616877; bh=5e5Tzve7Dd79xcTNdzm57g5wRClxIC6OdMpghScFxOk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R4K7k18r848BLqhpwlEA6Ld7DoDKRrdC6Hn1idP1bo6iEJc1HHk8Qb4EgaFF4lofC NlLv9qe+izxpoVd/t60Fbde51YIjrTxVn6aDerhFATmBp5whR4qs2Rv+y1muClq50J 74g1WcjvBb5ppTTghoOnBBoybaZ1us8qoUpcN0mm1cEudenxgGOUIY5O8VdYDaxGuJ ZitVOwScaMxguqXQu03LtHqc4g+UTKso/BxJHZDI9EZvp9n4jcJiQgeHqrgrXsmn3e BaMFTZPljxSHkXbi2i1pl1cBAuWUjKn2F8QQRwACbHVa24ZrsyElOAh6jCXn7BgEde f9VOuEik86naw== Date: Fri, 24 Mar 2023 00:14:31 +0000 From: Mark Brown To: Pierre-Louis Bossart Cc: Srinivas Kandagatla , tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, johan+linaro@kernel.org, steev@kali.org, dmitry.baryshkov@linaro.org Subject: Re: [PATCH 3/4] ASoC: codecs: wsa883x: mute/unmute PA in correct sequence Message-ID: <101cfc2d-59d7-4f37-9dd1-e83d1b803bc5@sirena.org.uk> References: <20230323164403.6654-1-srinivas.kandagatla@linaro.org> <20230323164403.6654-4-srinivas.kandagatla@linaro.org> <5dc11c47-bae6-2f4e-4ffd-58c4f462fd68@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Qr22+g/wK5Y2DBT5" Content-Disposition: inline In-Reply-To: <5dc11c47-bae6-2f4e-4ffd-58c4f462fd68@linux.intel.com> X-Cookie: A lie in time saves nine. X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 --Qr22+g/wK5Y2DBT5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 23, 2023 at 01:11:11PM -0500, Pierre-Louis Bossart wrote: > > The trigger is run in atomic context, can you really write safely to a > > SoundWire device there? > Mark, I've seen that comment from you several times, and I wonder if I > am missing something: the triggers for SoundWire managers and dailinks > are typically nonatomic - at least for the Cadence-based solution the > trigger is based on a bank switch that may happen with a delay and with > a wait_for_completion(). Sending a command over the SoundWire channel is > also typically not atomic, there's usually a wait_for_completion() as well. Ah, you're setting the nonatomic flag on your links to disable the locking. The default for trigger operations is to run them with local interrupts disabled. It looks like at least some of the Qualcomm stuff does that too. --Qr22+g/wK5Y2DBT5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQc62cACgkQJNaLcl1U h9DzHQf/TIS72n0OUMiQng7OQKu/e8P+3/vOqyZs7KgpO4ZAgAj3Fh2LNTDL/ozv 8WNTHCDmF/caNspF1f+3A+4iShLnqEfAjP338hgBKfMakh+2kLZjvquv8uau41xa Ptq6Syp6qN0kRgdgVpidwj77UwHldZUf333vlsz9zh7cb7jgCmasy76TN1OZfgyP 2eY/Y2j6+BKcAfP1DOSmguTo1h8x/nU5uLddP1bSAdFyjaD3GFgJlPJfQBPjFvFu fTMiMqpenPGAde/jzDPrKzYBBUeP+C3KAnQy7ivVRjRCx1vjGZ7HAj8WNT0flzHF a+d504cA5fOV3hcEYjIDjHFd1yIaWg== =Au5o -----END PGP SIGNATURE----- --Qr22+g/wK5Y2DBT5--