Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp172601lqo; Tue, 7 May 2024 16:35:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0E7Kciu4+z+VMfxpB913RbxoM5eAgDH2C4w0j3mQnXnPQP7Yl4CbpHNxDqbgn4vQw3MMQOyzsnTIzOs5r1ueKu5knRiuZfDS350Rv0g== X-Google-Smtp-Source: AGHT+IFUPCRjibeS5O3njF8qA8sV+Ljm7GogodTLZLDVj8oJlYTAcSm8f9q0hbWTO6ooi8TtSSCf X-Received: by 2002:a17:902:b782:b0:1ea:f7d4:cf2b with SMTP id d9443c01a7336-1eeb05937f3mr11653845ad.17.1715124949428; Tue, 07 May 2024 16:35:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715124949; cv=pass; d=google.com; s=arc-20160816; b=DJuFofzMIXmjS/1psbAQwDGLiAzE+OfbDJsytbTvWTFkXvBxa5u3ryjSy2msnnKqhQ tG5Im02oRFLyeXuULyufXpfVxCS+eVwoE0h2endx1kT5OlJVkL6O2A9fI2L06YLQ9tDe 0OZ8VCKHV+gL2i4itdlxaVBifa/2DUxXju1M0hQxTfIIkF32gAbWnllB7Ag3jDg5jAOW qKAiX/2bZgzuKmPSxXCx3snC5odf5wn6BpB/GLZdyqccSi4FcY6B5Orvgt7jyzvN+KKV T26bRmgYGaH+eKnLCvgwzD4xEJyNXNQk+sKGOfXNaJdM/jJRKNcnRFN0ZGLN65WUorRF ujqQ== 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=qeFm4DEm0Vn6jRpUzEvC3VAMicfK9GyGOYTxNw1SnSY=; fh=h44jiVu9e5o99Tl5/hS76Jyh6g0yL0qttqHfARteS8k=; b=cKRVxKgnZrfjkcCtKgpAjJrrfbB4hx2f0t0wsaMJ0Z0IS0BHfjlw2neniSIMQZxDc2 r1bgOU63Bi4V5vQTaF14WcndTFRhigFxFeXAoMr0P2ucgVx/SB6nEZTTJVVxhej37EKn 3nqV9M5j3i5BhQLoC9nrNFvbDtgHo2C1bR3xQHJd2S8tzGFRNzWAo6x7S1zpgA5USJNY QdQ066B17P0egxLUikV2XrtQcfn3w6SAAr/wi9chmupjX4mAKy5e7RlEIc2g0tHjOUnj 2y/zbMYdtgNAFSh8CnVOBGrs74eaeQtjwWC98lvyPGIxhWhWSIvo/MEtJ255B2tFde2W qIgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j0KHw/2L"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172398-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f17-20020a170902ce9100b001ec7c4261b9si9206223plg.179.2024.05.07.16.35.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 16:35:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j0KHw/2L"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172398-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 023662831DE for ; Tue, 7 May 2024 23:35:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CC151487E3; Tue, 7 May 2024 23:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j0KHw/2L" 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 612121369A6; Tue, 7 May 2024 23:10:39 +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=1715123439; cv=none; b=YMxdfrg5kGvr9reFgRk9TsddRSmGDp/qW1gAmqBNUEO36bzFdDl6AAqlM5CgYF1eVNvw9p2PBjfmwcgsVAPZu42RgbUzNpzwu+LZbjEhnIJVA+A0Jx/woJnmHBzJrFd5idoEPrph5hOg8XXLoSCXtOWktMs8Pv5ZS0Ya+qVGzLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715123439; c=relaxed/simple; bh=R4A3Jb9aZLMRVk1H1aorfEqnyalruYt56W9sJFqjOhg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W6+Y4BHz9lD6EP/zzb94ZxrzcnamrTS1dMy8ECdROPm8tu+nOrJCpwOtwKBy8lvAkIhefdjTNCgIkzeWHNgKaUQSX9PbkkhAAq88J8Kcbprzt5QnObnwguz5EQIHZmGWxlZGtymXdlj59Bfc3xQEvQGDpW/0NKokuDaXoRWmT/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j0KHw/2L; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 046D4C4DDE5; Tue, 7 May 2024 23:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715123439; bh=R4A3Jb9aZLMRVk1H1aorfEqnyalruYt56W9sJFqjOhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0KHw/2LVbdoNLEHXA4KYd7f7hnIRbeVueZ7T+AjfGhs1TdaIv4DdjCo96Hwnwnjr jg8XctyWzcEGH4UxuoKLbk8GypEHAySq25J8/4OezBaAO3alBsh1gENfRScFlr5Qmc +3GsHk+1rodkxrtrVCXolz5fUsYKKw4Fx2VPDqAMA1mKDTfyloxmnLtS2zWyIafo8o OSUfWhMyhL/mJQ4j7ec8B04wEG5sb5HDsCRDFUz5cOUu+72QxWCGTDdRlyVRpJ3073 4fv1RGEkBJI1valR2jHmEpYsyswBjizNLo+qYtCqg+fBwUBnlKfx6R2ydggj3FXjap SRHGUWV37r+Bw== 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.6 03/43] ALSA: hda: cs35l56: Exit cache-only after cs35l56_wait_for_firmware_boot() Date: Tue, 7 May 2024 19:09:24 -0400 Message-ID: <20240507231033.393285-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507231033.393285-1-sashal@kernel.org> References: <20240507231033.393285-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.6.30 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 27848d6469636..05b1412868fc0 100644 --- a/sound/pci/hda/cs35l56_hda.c +++ b/sound/pci/hda/cs35l56_hda.c @@ -603,6 +603,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 */ @@ -942,6 +944,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