Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2238106pxb; Mon, 20 Sep 2021 16:14:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeZyIuHA7Iky0WqmKTpVft5hiBY4+S/SAMCiPCUcLd3nEXgG5oT07KlVcMlcTqQolCQyXz X-Received: by 2002:a50:9dcf:: with SMTP id l15mr19140748edk.128.1632179687282; Mon, 20 Sep 2021 16:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632179687; cv=none; d=google.com; s=arc-20160816; b=D/oMtkCU7gVhAd1ngb2UTgCwmIiXCfVMPfSpLutFk+LFsIQc8CQePfSNtdJsp8gNH+ aC0PBg3sLxeA7ROG1H9G+WCcsN7IEbl2YxmpsDfrzBcKvoIVobyUFy/HZcRdaq2Cm3jU Z9Iq0u55Ew87hBk6MbDCQur9SmWv7q4QXJP9o9vF/idpbrPJyr7NlcMXlMMhul75CnUs ofeYFstYsImMiGD8aYV9SkfIzZeT+Q5Dj9udhtNjw0RIg24trzhoQfzXG13hSTxDxlHY Ul/tp0Izw923dKa4gdVQyRnVTJ1Fl4xX+Xzw2OwlYxz04iFPxK5TEFADEhtN6gYGstib bpGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5Z/peYbs19scCEIFsnkY9ZT+Ng56kA6OzfkT1Vupsss=; b=DA9Q3N/VhZ7odycx/UlPCUWBI2D0CInkPGzCvJK2moxgKKvHTGx/V8lY5H+h8rL5nL HJBuF2gboyo0SCBv1Vv5uDulOlyiaFgniJKzozX9iHIG398Q/kUFXwHjzl08hxU0/Tgd W83+wcYHYEOtTwstUaoIaZYVIMvQqQ/tB7ay/w8WGDYBeO91w3+oLYprrp0DucMTuLcX aqFtVYICCtq/ghUVZ54XNJ6kS3kNRxVIDoNvRQbpdk2Ol68REb1moKdhrLpnxC/Wv6Le Q0BVKgeCL3h4lQf1q1XfF8v33jjWfqUDUXnvO4pJOOngQE4QKqKa/X4H4rPKqVAjJWb6 YjCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WpaAQKMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si12529309ede.572.2021.09.20.16.14.23; Mon, 20 Sep 2021 16:14:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WpaAQKMb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234318AbhITN03 (ORCPT + 99 others); Mon, 20 Sep 2021 09:26:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235999AbhITN02 (ORCPT ); Mon, 20 Sep 2021 09:26:28 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C7E9C061762 for ; Mon, 20 Sep 2021 06:25:01 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id v24so61355654eda.3 for ; Mon, 20 Sep 2021 06:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5Z/peYbs19scCEIFsnkY9ZT+Ng56kA6OzfkT1Vupsss=; b=WpaAQKMbLMi8KUDY8D4vzykEZLpjiSzI1V9dR9E4Q6JgPva+/tb9cGXkDyncA8qetG /mYUMpknYMbJ8/mj/wRyDOpDx8mrLsRM0WCZdxuH93MczwgYvHV4ia1HyMveZXxHRJIi kIdYFXJFxdF4/n/VUmFwzkYDn4UVoaal8k7kJOITgxnGYleYhutubEcBzfrP5w2kowx5 +OW54W0unAVmY3jRlABJ/I6g/wZs4CsyniBO5CHJ5vhX+wGqR5VGF7ZeQ6o8He43bIlO 0ncTQQaNV7PdodS5VRqXZad+9j7UZEXAptZKVWC/MIKpcITILj1hbdpoWtO1QPQvDp8O 7gLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5Z/peYbs19scCEIFsnkY9ZT+Ng56kA6OzfkT1Vupsss=; b=eRgI8LXNpSBZp5lEJ70X+rHchGLUZtWhYqMcFiVgbRrQKIgcBgnp2WZ5BSignY0X2o 89njr3Cu5k/jIfUkm3Z+joVzt0PdxIXOc9aUKjtgxTdlJuOEO41FX+AOiToR60WNIBaw dYp4H7js8b1Bs6bq0YjG1+ORbX6k947XbCsOy9B1GJDZeURltzVN/SvaPqgZP2tjlkfz jYOi1xbNntSKKfiyIh7cAm6VAKdAxQMkI9Q1jlIsvflJsvS/0CDh3LJf1Ybwgt7aIJD2 hkkgmOArVcm296Bus7xkxsxFSxX2d0OZQjooyGt/YHk6fScp/Znh2AV3Ofgp9PLjxoFp QufQ== X-Gm-Message-State: AOAM532FO67/CI5oKU7FmRQvydizNQ/wVuFysFCzbamXC6/cjxtocQKx zp3YOW3DD+E+FSqi1w7Dnw7Xiw== X-Received: by 2002:a17:906:520b:: with SMTP id g11mr28539621ejm.502.1632144298580; Mon, 20 Sep 2021 06:24:58 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id o7sm6960081edt.68.2021.09.20.06.24.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Sep 2021 06:24:58 -0700 (PDT) Subject: Re: [PATCH 3/7] ASoC: codecs: tx-macro: Change mic control registers to volatile To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Venkata Prasad Potturu References: <1632123331-2425-1-git-send-email-srivasam@codeaurora.org> <1632123331-2425-4-git-send-email-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: Date: Mon, 20 Sep 2021 14:24:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1632123331-2425-4-git-send-email-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20/09/2021 08:35, Srinivasa Rao Mandadapu wrote: > Update amic and dmic related tx macro control registers to volatile > > Fixes: c39667ddcfc5 (ASoC: codecs: lpass-tx-macro: add support for lpass tx macro) > > Signed-off-by: Venkata Prasad Potturu > Signed-off-by: Srinivasa Rao Mandadapu > --- > sound/soc/codecs/lpass-tx-macro.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c > index 9273724..e65b592 100644 > --- a/sound/soc/codecs/lpass-tx-macro.c > +++ b/sound/soc/codecs/lpass-tx-macro.c > @@ -423,6 +423,13 @@ static bool tx_is_volatile_register(struct device *dev, unsigned int reg) > case CDC_TX_TOP_CSR_SWR_DMIC1_CTL: > case CDC_TX_TOP_CSR_SWR_DMIC2_CTL: > case CDC_TX_TOP_CSR_SWR_DMIC3_CTL: > + case CDC_TX_TOP_CSR_SWR_AMIC0_CTL: > + case CDC_TX_TOP_CSR_SWR_AMIC1_CTL: > + case CDC_TX_CLK_RST_CTRL_MCLK_CONTROL: > + case CDC_TX_CLK_RST_CTRL_FS_CNT_CONTROL: > + case CDC_TX_CLK_RST_CTRL_SWR_CONTROL: > + case CDC_TX_TOP_CSR_SWR_CTRL: > + case CDC_TX0_TX_PATH_SEC7: Why are these marked as Volatile? Can you provide some details on the issue that you are seeing? --srini > return true; > } > return false; > @@ -1674,6 +1681,12 @@ static int tx_macro_component_probe(struct snd_soc_component *comp) > > snd_soc_component_update_bits(comp, CDC_TX0_TX_PATH_SEC7, 0x3F, > 0x0A); > + snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_AMIC0_CTL, 0xFF, 0x00); > + snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_AMIC1_CTL, 0xFF, 0x00); > + snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_DMIC0_CTL, 0xFF, 0x00); > + snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_DMIC1_CTL, 0xFF, 0x00); > + snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_DMIC2_CTL, 0xFF, 0x00); > + snd_soc_component_update_bits(comp, CDC_TX_TOP_CSR_SWR_DMIC3_CTL, 0xFF, 0x00); > > return 0; > } >