Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp670444rwl; Thu, 23 Mar 2023 23:45:12 -0700 (PDT) X-Google-Smtp-Source: AKy350Yc+c+VXGk773NFHtumTPgy10yWFJ+mhCLUcJ2bu4bpZFbqi67nYBZnNRZeM9v0OzFvsI9k X-Received: by 2002:a17:906:c2cf:b0:939:4c86:d47b with SMTP id ch15-20020a170906c2cf00b009394c86d47bmr1761332ejb.19.1679640312216; Thu, 23 Mar 2023 23:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679640312; cv=none; d=google.com; s=arc-20160816; b=AKOXWaUv/1+b08uOts2Tr3XjEW4Z3+w0FIXyMck08xMlJXchpuK9VgUKXB9kQmtUnW vlig2fB8HRKeuErnagrsWcQgolfJ79hD0ukrWzTdGymAQzwDuvnam/pGCMnR0GwSfcxX C8u3IWwV/xdfYa85LMcDlemgTebytXk1ZjeJxcCATIY664m41D5zmCxkCtNh9+OWLDm8 7IksTdCJ7jPZ0E/VlP/GVjd5e+fMPxc2Hucmf/dp+N1zrOo6a2XXv2BC8bGS+YqkO88K FyWRUxHNWJWlJu3Q2Sri3ZkV4pBcIRGAbrZcyQ10NaOOIBKuOIa/jBwN8k3I+WBHSAyh 8QNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xgbEes8ceG/tgVaAXlVTgP+CsmCv+C77+gH5pG0psKU=; b=t4Z/6KNpBkOJfmWDBgouG4QDB/uYoNkc0r9zu2yr5GQT87H2npOKrl5yk7sA3X+3tx q8Di0tfyYCoR0fDUKwobvA5kL+Y+5pJ1K9gkDX2EBvBeYQJF24u31pMrj3wQWo0KdMPl mSBQf/siNEtNoJ6wj7s1xk8fcQegamELRt7I4LCE5fZYoNDSYH5M3Hjm+omV1NL7oGNx BeWXvAQjHSVMkuIBCj7n4Vmzdf4PAORrUzNB0JCp6LNrcWc5eiA1RZ1eIqnRYeE4p5rA VNMNzJKIWXYOg2TnCKiP6BoOrIszIur3GSlvzVyz69BgAuCBeyMXDxV4Y0Hz3+bA+RRn rh7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IVLY4ihY; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg22-20020a170907971600b009329350848bsi23240390ejc.408.2023.03.23.23.44.47; Thu, 23 Mar 2023 23:45:12 -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=@linaro.org header.s=google header.b=IVLY4ihY; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229484AbjCXGnr (ORCPT + 99 others); Fri, 24 Mar 2023 02:43:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbjCXGnp (ORCPT ); Fri, 24 Mar 2023 02:43:45 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B8154EC6 for ; Thu, 23 Mar 2023 23:43:43 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id cn12so3936646edb.4 for ; Thu, 23 Mar 2023 23:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679640222; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xgbEes8ceG/tgVaAXlVTgP+CsmCv+C77+gH5pG0psKU=; b=IVLY4ihYnrndXdYOkJDh+BcgYmhsm8NV81lXqqFK+2D/qIjD5oSO8COFkDO9Rp2NET NxrQe0JWjOWFPByQZyryFugPTiR4WfnkaNb5+ttulTNUah5C6TCRUCH2FgdtQLi3ITyV N6YrR9CDjxNZeQ5Upg5GRGMxUJetIzygEWo96dQuZRhO60P9ZyfGK16JI4gxclMn4SUZ 8fByWAWY7OaLJ9yT8krVUlNIezGuPzdr1JyDSLzizOwfrW8VpV/ovNo9so1mvBw+qvU8 6D6kjOZkGxZ+TWn4+501ubpVbYtzhby9PweeDFgS466GU5yIF4pmls7aBJROCyRqzRAU 4CDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679640222; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xgbEes8ceG/tgVaAXlVTgP+CsmCv+C77+gH5pG0psKU=; b=UWy60C8Unr0V6JHEoS1vTLiyTx1nRakJkE2hjH7dhdY2djbMi/ECLCXzakWi03genH PArpud46JXEGP7u98hVj+v6KXk7YB2cX66XDZpGphtu/LuF9qGAy/5cfEGEB53u3ENPs X1LBB3GtGfq1qrL8T179iI7Rek9swH9cvjhw1+02TYpDvdgu84FiWlsQ6TC6CEmIK4Dc EpEbo+dmXP9tATlasjWQdA1AihdmDmfS0oQFu4j9Xd1655JqtPoUK/ajSBxcFR3tqLQ/ 4oQQNGrqdqkHdwBZts6wqiXcDDZ3f/B5I4CWNjM45JbwI2a8VWk91GwNpO9gPEwtymW7 YO4A== X-Gm-Message-State: AAQBX9eohgQEO8nzTyQfH1beu8IHtHC4tNZswjLWHvD1CJbIT0Rg1cX2 4EybXazQOB5zWEWhhSHnnz/ebQ== X-Received: by 2002:a17:906:507:b0:907:9bda:93b9 with SMTP id j7-20020a170906050700b009079bda93b9mr1549066eja.17.1679640222055; Thu, 23 Mar 2023 23:43:42 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id bu6-20020a170906a14600b00933c52c2a0esm7236006ejb.173.2023.03.23.23.43.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 23:43:41 -0700 (PDT) Message-ID: <4b448582-fe11-7f24-36ac-16fd8a22c139@linaro.org> Date: Fri, 24 Mar 2023 06:43:40 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 3/4] ASoC: codecs: wsa883x: mute/unmute PA in correct sequence To: Mark Brown , Pierre-Louis Bossart Cc: 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 References: <20230323164403.6654-1-srinivas.kandagatla@linaro.org> <20230323164403.6654-4-srinivas.kandagatla@linaro.org> <5dc11c47-bae6-2f4e-4ffd-58c4f462fd68@linux.intel.com> <101cfc2d-59d7-4f37-9dd1-e83d1b803bc5@sirena.org.uk> Content-Language: en-US From: Srinivas Kandagatla In-Reply-To: <101cfc2d-59d7-4f37-9dd1-e83d1b803bc5@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 24/03/2023 00:14, Mark Brown wrote: > 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. Yes, by default dailinks are marked as nonatomic in Qualcomm case aswell. --srini