Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1852552rdb; Thu, 7 Dec 2023 10:21:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpaQrgWf+qW0rWG1oCebeW27jpuS7/cE3ExJiz37KRvTkuybghGFdxBPvq28IInUsz0bbm X-Received: by 2002:a05:6a00:3691:b0:6ce:6f97:3715 with SMTP id dw17-20020a056a00369100b006ce6f973715mr3341404pfb.64.1701973291737; Thu, 07 Dec 2023 10:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701973291; cv=none; d=google.com; s=arc-20160816; b=Qetuz2Ir8lWgqL8jAyN3QKkVW3rbVC6J1mh4oEZG6ugOXG8WpfCiGprJuxRp2D8nO8 INpfIewgLlOnqsYqipWhqwAWb1yYNfnCz+P+wyDhvUb8cCvZWNlqxcly/pH3dk8reivC JXaYq114y3A0Eg19iU3/hTKHo6Tlt28zyzCSfirVUQ2r5hHMcSMpIddG50KHdWrXd5SA 7m1dj+cDCCd1YaAt0w9/b/nwVtdULSavC484rdoutMKMo20EfKyoJULfx66Fi29G42Kw SaCZRVmEN6gyFrjuJ4jHNIsIXOVLsBF2tYYgNZ+J6PbLnJEbjpX7atxqjjbLT//18qLC TfZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=upCHU01PGw86GhIy562GsDFkWyWyPl9yBjiRy1LSY9g=; fh=nmaIcstL9sV5Nq4RMhFU+6bYjxHdBWKpDsuXM6BleVE=; b=Dp6Q76nR2YilZvlx3TwFcINecy/ncXg60wH2AvJe0k4B8MTpKsP3QWqoGOGjtou6a/ EcKAoGzFOarut8KDwf19bvBXOyVjx+Atk7OLebeqygRpuKtU2CUOTT91+KB6hJ+hZXFJ J7zRuygDY32+L+WL4aJFtmrpZOQxPpDYPYMEZFB67VsMrsK4J9g6qST4shvGoPuO6Gl3 91i2uGOjgWTlJNq+Y849sSKw3BDoNgMRvDwL4iX0CvMoBos61aPXWxQsuho8byjJLV+g qSY9N0QEHS1MA9/0yfFfBDbZqcY5ErvDhpEdFIh+Ixbak4TpjloRz3UXqr+5Rfq9T3L2 WdGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UGL1d6BE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i11-20020a6551cb000000b005b9022ddeaasi84745pgq.516.2023.12.07.10.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:21:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UGL1d6BE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 72F52806A630; Thu, 7 Dec 2023 10:21:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443724AbjLGSVB (ORCPT + 99 others); Thu, 7 Dec 2023 13:21:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443741AbjLGSUu (ORCPT ); Thu, 7 Dec 2023 13:20:50 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A05D199B for ; Thu, 7 Dec 2023 10:20:55 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A40FAC433C8; Thu, 7 Dec 2023 18:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701973254; bh=AkGup3hcznxKyD5qZYbWXUKeQrXywPgfm2PxkeN+ljQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UGL1d6BE3R6ufSUslO2HlhwFKBs6wMppMCBwaPeb4FwdrkazLQsjoONXUKTvwqja+ uA9l5dia46T7nQmI7KuGEwanRLoYCiKSpEgh3yeA2FKi1Mup9uadrMnBZ3griSY/51 ejn3vv1ysc3Ri54FHMTPlnZX/WsHMlU/zNsivz3XjhCQ/X5BgcRfUXAZDxRdSEjGPj FhoH9sD53vMhDFjY4KIpMSQ6kdzmNedftxFsWiR0JDuMqJm/7D4bTbCyAxM/ONwHpT /CQ4D3rh5i2TGw93hZLaIH0oeqEDlLmPNHi6OWz+jIX+aq2UQV/hk74L45uGQVdAM2 DPyfao3RO9hwg== Date: Thu, 7 Dec 2023 18:20:49 +0000 From: Mark Brown To: Gergo Koteles Cc: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH 03/16] ASoC: tas2781: disable regmap regcache Message-ID: <0b836c10-b21b-4275-8dd0-254dd5467497@sirena.org.uk> References: <21a183b5a08cb23b193af78d4b1114cc59419272.1701906455.git.soyer@irl.hu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="87ASVyUZXk4suEIf" Content-Disposition: inline In-Reply-To: <21a183b5a08cb23b193af78d4b1114cc59419272.1701906455.git.soyer@irl.hu> X-Cookie: Two is company, three is an orgy. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 10:21:18 -0800 (PST) --87ASVyUZXk4suEIf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 07, 2023 at 12:59:44AM +0100, Gergo Koteles wrote: > The amp has 3 level addressing (BOOK, PAGE, REG). > The regcache couldn't handle it. So the books aren't currently used so the driver actually works? > static int tas2781_system_suspend(struct device *dev) > @@ -770,10 +758,7 @@ static int tas2781_system_suspend(struct device *dev) > return ret; > =20 > /* Shutdown chip before system suspend */ > - regcache_cache_only(tas_priv->regmap, false); > tasdevice_tuning_switch(tas_priv, 1); > - regcache_cache_only(tas_priv->regmap, true); > - regcache_mark_dirty(tas_priv->regmap); > =20 > /* > * Reset GPIO may be shared, so cannot reset here. How can this work over system suspend? This just removes the cache with no replacement so if the device looses power over suspend (which seems likely) then all the register state will be lost. A similar issue may potentially exist over runtime suspend on an ACPI system with sufficiently heavily optimised power management. --87ASVyUZXk4suEIf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVyDQAACgkQJNaLcl1U h9A5HAf+Nlxq4xn9n9KdkGpBh57gkb+jV1RuCOHHhqKL7UAdfrt91gUdNVLq1Gvi ReW5ZeaUE9EjXZo9FGiFaEc6WEP0TzDJi1a7bOyjtR09RU3ec03i8qd32LO7seEd n/zyRK+X7umxfYsZGTJiXpzLyN9VC96bh6jNkHJmeToQ5LXZsicJ1bolctD6gfXK 8c7YEYL6Jrfx4Q3yfloOfHPHMzFrIrA+08fny0Dx+kaMfsWYGk2VcmaSYUbaP9y4 OhDEOF1sy3RiXsHJxDNIZubb71fuOqSszQQbS2At9b98GwTVTs8xnM61Xx/Yv1gq 8oQk2dsruB2j4P0IeFFcVp3UOQGKiA== =F7Ae -----END PGP SIGNATURE----- --87ASVyUZXk4suEIf--