From patchwork Thu Jul 13 00:13:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 702781 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A9CE8EB64DD for ; Thu, 13 Jul 2023 00:25:44 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 857DAAE8; Thu, 13 Jul 2023 02:24:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 857DAAE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689207942; bh=gJSZbPwrJrao2cx93fqYL1L6cp2CuH4ruhKdl+1SL3Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JqJF/bfxOXFCwNptdvscmAo5pXvK6Lxjjkh/E5+9dhBoQE+rkKL93j39rTnzEWlVf 3O5u2G1MmXq2zjnhaxHm8Y5EqgaKtCQaMom5zeti3c4jgemFIeUsu9yQK4RP11+sfw xGQ3tenJYtybGXrQycJ0szI4TWFl1NuvL/kNk5lY= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 37381F80722; Thu, 13 Jul 2023 02:16:33 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2B5BDF80716; Thu, 13 Jul 2023 02:16:33 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 64FEBF80588; Thu, 13 Jul 2023 02:16:04 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8031DF806A6 for ; Thu, 13 Jul 2023 02:16:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8031DF806A6 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CfR9mk4A Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 723EB618FE; Thu, 13 Jul 2023 00:16:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8672C433D9; Thu, 13 Jul 2023 00:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689207359; bh=gJSZbPwrJrao2cx93fqYL1L6cp2CuH4ruhKdl+1SL3Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=CfR9mk4AmA0qccMYh0uuf3+xssDtD9ehXKmZB3wBcjyatNTzBlXVx/1U7o+RNDuBg NpXy5V5xqWnI/7SHI6b8l983FBHDoTx3/j4CUqZH4FL0Woz4zFvvWhTE2DiIa6cYTv N4SIh/zttepNAEb+8skfe28AR7VKKroe8yjmTo3yXwV213A2hY/PXPBqfes46PPQoy Pvh5BS8Wd/uudDlbXJVsYHASFx+DBNlC/P7hjTAmllFaF9N0X7O+bXfjRaRVwdwKsR CgwgQ/nf49CJa5MCT080nSfgQDcSuFsyDKNxDDw0Z3jyMYNsZO9/LaomX5/JeLDnbF Got1z2mH46jpg== From: Mark Brown Date: Thu, 13 Jul 2023 01:13:50 +0100 Subject: [PATCH 37/48] ASoC: wm8995: Update to use maple tree register cache MIME-Version: 1.0 Message-Id: <20230713-asoc-cirrus-maple-v1-37-a62651831735@kernel.org> References: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> In-Reply-To: <20230713-asoc-cirrus-maple-v1-0-a62651831735@kernel.org> To: Liam Girdwood , James Schulman , David Rhodes , Richard Fitzgerald , =?utf-8?q?Martin_Povi=C5=A1e?= =?utf-8?q?r?= Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, asahi@lists.linux.dev, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1093; i=broonie@kernel.org; h=from:subject:message-id; bh=gJSZbPwrJrao2cx93fqYL1L6cp2CuH4ruhKdl+1SL3Q=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkr0HIF3Nslj5oL4RwImE9COdmH9ewFRvmG9Nbl 0yQalS/D3uJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZK9ByAAKCRAk1otyXVSH 0APRB/4lkJ7B71pUa83AzY89Z/4qGfcOYDGrONX5sea074UxuMgmWyG7m5RW7o6Rb1wvgwlW3YX t5oOCYKRTFD2UrTYg/kwwwTnCVVLbwrPPZm/awfgJbLc/7M9FkNcuqrFsxWo1aiSJOgrE6AVL4b 7PPuaf/fijSC5NWJZ1dVt4yJJo6A3UuFLZxZL2rt1QHq1hIZp3XDJ9QLYoJxAdh62EhhcjMan2y tWMoc4+nxpntKKRDJbp9cjStpV0hP3iuVa7eEBKR8NI2g921nGueB2mCfzFNdqoU2SsfUEYTmDy WHtRcS/xqhv1XMrcxoSx26UDUplH9/EW+/HjTmXv8pUm2nw7 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: USNAR2W2K2XX4FTLKFT5PRLNITXON2LP X-Message-ID-Hash: USNAR2W2K2XX4FTLKFT5PRLNITXON2LP X-MailFrom: broonie@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. In v6.5 it has also acquired the ability to generate multi-register writes in sync operations, bringing performance up to parity with the rbtree cache there. Update the wm8995 driver to use the more modern data structure. Signed-off-by: Mark Brown --- sound/soc/codecs/wm8995.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index 90588614edcc..4ffa1896faab 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c @@ -2193,7 +2193,7 @@ static const struct regmap_config wm8995_regmap = { .num_reg_defaults = ARRAY_SIZE(wm8995_reg_defaults), .volatile_reg = wm8995_volatile, .readable_reg = wm8995_readable, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; #if defined(CONFIG_SPI_MASTER)