From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9ECC18BB91; Fri, 27 Sep 2024 12:26:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727439964; cv=none; b=pFPcYmUfLjh/JwpGP8mCu8snDXEDih/n9EjHYYK8PIkR/8Rw9962csAlOSd5AAYYHfonq2tLNnYJopzU6882gPPUTUXZgFQk6USjZGeFZsXPsA0VSww8JZ7rnDOjB/vqp3DnNsb/HiOkfoatUAj76PwSJm3wvuAwRS7QIxa7hnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727439964; c=relaxed/simple; bh=trI5ryRqgbeG7Z1yZ0SUVJccbjbyxjDhqouXaTHH2Ro=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fZRiATmtrB2tHBa+DYqCYsfLc94msfHfzFiKmWBytjSi9YoL6X2XBeCJUslZFW2lXM0I323XdxIQi67A/+qPaS41gbuPPvWH1hRV3FvPCa17rk/szqcaZSuBAlnBuPujMDr+YA1innv5RZaV7S4REGu201lEaEPOrTakZCR6pKs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l86NzatZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="l86NzatZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05A83C4CEC4; Fri, 27 Sep 2024 12:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727439964; bh=trI5ryRqgbeG7Z1yZ0SUVJccbjbyxjDhqouXaTHH2Ro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l86NzatZf1KFTaxX3i+gon6yOo+S3MH0sLocZOWyHxrKJMg4qkTyYwyZ+XuKfJ/7e rRDSkYZDfCIWTnJGqkuEkBFnNy3XumLPEi0NBFcxWW+MsBpWSiJyUHm+3KW0zy3nEv Z+nj7G9cyGrLL1ftZ+AFCSASl7vz3+G0ZwsXhMjM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, YR Yang , Fei Shao , Trevor Wu , Mark Brown , Sasha Levin Subject: [PATCH 6.6 02/54] ASoC: mediatek: mt8188: Mark AFE_DAC_CON0 register as volatile Date: Fri, 27 Sep 2024 14:22:54 +0200 Message-ID: <20240927121719.818967845@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20240927121719.714627278@linuxfoundation.org> References: <20240927121719.714627278@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: YR Yang [ Upstream commit ff9f065318e17a1a97981d9e535fcfc6ce5d5614 ] Add AFE Control Register 0 to the volatile_register. AFE_DAC_CON0 can be modified by both the SOF and ALSA drivers. If this register is read and written in cache mode, the cached value might not reflect the actual value when the register is modified by another driver. It can cause playback or capture failures. Therefore, it is necessary to add AFE_DAC_CON0 to the list of volatile registers. Signed-off-by: YR Yang Reviewed-by: Fei Shao Reviewed-by: Trevor Wu Link: https://patch.msgid.link/20240801084326.1472-1-yr.yang@mediatek.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/mediatek/mt8188/mt8188-afe-pcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c index 5e14655c5617e..11f30b183520f 100644 --- a/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c +++ b/sound/soc/mediatek/mt8188/mt8188-afe-pcm.c @@ -2748,6 +2748,7 @@ static bool mt8188_is_volatile_reg(struct device *dev, unsigned int reg) case AFE_ASRC12_NEW_CON9: case AFE_LRCK_CNT: case AFE_DAC_MON0: + case AFE_DAC_CON0: case AFE_DL2_CUR: case AFE_DL3_CUR: case AFE_DL6_CUR: -- 2.43.0