Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp172361lqo; Tue, 7 May 2024 16:35:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7JW3uU/9V8yQkT6JVDtKXZn8CaLqXavMyKq/7Q9T9RdUiLI153D9chDK5C627cHilIUwqOerpogB/ACiX8rZPEBbYHojQmab5QkKakQ== X-Google-Smtp-Source: AGHT+IEXVUJIjFicvStdM8mcHRSryR419xOd0BDiyYKAR1ANGqWniatE6fRUq4X5GS/kHpbyDU+f X-Received: by 2002:a05:6a00:1ca0:b0:6f3:ef3d:60eb with SMTP id d2e1a72fcca58-6f49c2be647mr1341716b3a.34.1715124911714; Tue, 07 May 2024 16:35:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715124911; cv=pass; d=google.com; s=arc-20160816; b=sZClC8kBY6gfggxm6O8Lr45xWzGi1sFIWnslHkOcGgAkfkBbipa62DOqjiAzLNq5lk 2KN0pSytT66tYoKp1RAEWMIeeiKSVVEOKFuZaJ/HbGjD0N50Pcn3gEgM2X7FIO6sQ29Q YkwjwirKiZdV7jkgMT4xBfHqcIODsGnzjBh+9iz2G5iZmcxk5YK+3H8UVta3kroq1OdD fCUEYQ+ICmZudZCCwyS3Ojob7ZEXDhLU02nMdJDOiFecZ39QJ077dKTMRMTZUEgniHXX cvpJP1fUhaUV5/BB+nVYmFh2Wp0VNZ2YyzJ8hb3bXA6oai/aZG8/e6LbtT30OaVgeCWp 1H5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BLQuNhHxEOd51klYGqTaVXRmW8MOoMhttiMj8ZxZxBw=; fh=h44jiVu9e5o99Tl5/hS76Jyh6g0yL0qttqHfARteS8k=; b=kYKRIFMJnzDCXOHUL/HX5aM9Qb4bKpuW2kikvAW7rsoeKEkXda3hFuNHrIT7P3+beb w4k3JudMiXMveHwPA7zDXCDcC07rMyJWD6qLQuVSQXXuvgpeOOmL5qAzJ3tSrdYNCNQD h1DhCvZb3T0oQxz2P/LVxSgRKoMdhNZO7eUB5LgZ/mj7duj7nBTbSZR5UqYvQCoCexz5 BP4w6DzLfhkOz1hxfMrJNpu9xVt/VOE1d8sU1XpEbxq1k+ZpLvAi0HJv4zCUpKddVEfN Xf4W/s/hLWW36ZHHeLVYNagfs8Iz0l3+JUvWKDvp58QOAGtXFOwPFMd4y2qt8thQck+/ EqNA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ic4lyIOL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n35-20020a634d63000000b005dc7e78163csi11001833pgl.458.2024.05.07.16.35.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:35:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ic4lyIOL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172345-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172345-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 74449B22ABF for ; Tue, 7 May 2024 23:22:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE19F12EBE7; Tue, 7 May 2024 23:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ic4lyIOL" 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 1E0708527D; Tue, 7 May 2024 23:08:06 +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=1715123287; cv=none; b=cH2OOw86zDK0jb98nqqOssCHQJXBSZKGJH9CqEgDP0gutzRO921irS0eCwfdnu90Rle0V48vZSf2Pyok+kCWgITb82eNmlppsQ/q71xciswnk6gy8PZs5Ytr27XK03bRrdS+hXP2aEY6705hQsZ4PbxH9tAnJVHEKZ86UcWyblM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123287; c=relaxed/simple; bh=C1B5jC0QAnqRkp/KEnzDHCaQIM2O1X0DeTCyuINL+nE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BSlz8cNWQKQBz5dBkXK2bO8YuFGYqLtFu4h1CovHgFT6XWFhRHqB2yN4jYNTA4AjrRTho92FYMVS0E/+bKxwH8ZuzyICGjFHZwEWGlgd281nzP55go12dfxkhgX+7oAnEf6dy08vHkRZ4ZOXqLVGBpsKxe9puYLhKLcCOVAiDV0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ic4lyIOL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57F83C4FDF5; Tue, 7 May 2024 23:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123286; bh=C1B5jC0QAnqRkp/KEnzDHCaQIM2O1X0DeTCyuINL+nE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ic4lyIOLhxCnxIkrFTgx1FTi+xp75FnFZdZlK1vO8Ff4JKXPdbHFTkURJMHSJVNhj 80PedrS3tEMsXqSGvX0xqvpulgnWMPcUQUeVdoxTxeYOBSeqVCXS92ZFjWeDlMXz8n ELGF5uDz11HQcCNq+KDzl32h2/h/3SZL5yTBVl2JqQlSV/UbOBYNxsrB01leAQavrA 8l3UsEqaGysAnKRE6e+G46mPdFzyEOpDVnTMeJZItKEoWEBrzWKjCguOExLV7/Z4vq LM+hOWwZkQm+K/7Nrca+2DzJ5oDMs3jbn/QsX3bU2PVbLjcK6RIK/PSnyJgO3SOkg+ aHE/G32x956pg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Richard Fitzgerald , Mark Brown , Sasha Levin , james.schulman@cirrus.com, david.rhodes@cirrus.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-sound@vger.kernel.org Subject: [PATCH AUTOSEL 6.8 03/52] ALSA: hda: cs35l56: Exit cache-only after cs35l56_wait_for_firmware_boot() Date: Tue, 7 May 2024 19:06:29 -0400 Message-ID: <20240507230800.392128-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507230800.392128-1-sashal@kernel.org> References: <20240507230800.392128-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.9 Content-Transfer-Encoding: 8bit From: Richard Fitzgerald [ Upstream commit 73580ec607dfe125b140ed30c7c0a074db78c558 ] Adds calls to disable regmap cache-only after a successful return from cs35l56_wait_for_firmware_boot(). This is to prepare for a change in the shared ASoC module that will leave regmap in cache-only mode after cs35l56_system_reset(). This is to prevent register accesses going to the hardware while it is rebooting. Signed-off-by: Richard Fitzgerald Link: https://msgid.link/r/20240408101803.43183-3-rf@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/pci/hda/cs35l56_hda.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c index 43a445bd961fb..de58a953b48d2 100644 --- a/sound/pci/hda/cs35l56_hda.c +++ b/sound/pci/hda/cs35l56_hda.c @@ -629,6 +629,8 @@ static int cs35l56_hda_fw_load(struct cs35l56_hda *cs35l56) ret = cs35l56_wait_for_firmware_boot(&cs35l56->base); if (ret) goto err_powered_up; + + regcache_cache_only(cs35l56->base.regmap, false); } /* Disable auto-hibernate so that runtime_pm has control */ @@ -978,6 +980,8 @@ int cs35l56_hda_common_probe(struct cs35l56_hda *cs35l56, int id) if (ret) goto err; + regcache_cache_only(cs35l56->base.regmap, false); + ret = cs35l56_set_patch(&cs35l56->base); if (ret) goto err; -- 2.43.0