From patchwork Sat Jun 10 13:57:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 691178 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 1863FC7EE2F for ; Sat, 10 Jun 2023 14:04:15 +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 3729C82C; Sat, 10 Jun 2023 16:03:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3729C82C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686405853; bh=TgZ/XcI0B7PIf6yRiA3WNK9+MrAYADijA4aYVK9bGks=; 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=mnX5QkR4gtmkE4MSDbsrMMdho5ZStFeon11OouV1FoJF6F5Ke0KjKGGrz3DRwZbhj lLyA+M5D+pEQuo8zdVQYawRsEZATWDVvCEBFiBN4WmNKKbFW9SFRB8sLF197gHaORi 6mCCBsxuVUSg/xQKwT1dujSTxNrtvfDz0NjOiBUU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69529F8062D; Sat, 10 Jun 2023 15:59:10 +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 DE58BF80631; Sat, 10 Jun 2023 15:59:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B4198F80494; Sat, 10 Jun 2023 15:58:24 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 31435F800C8 for ; Sat, 10 Jun 2023 15:58:20 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 31435F800C8 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=lc/NXDp8 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E3D9861781; Sat, 10 Jun 2023 13:58:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BEDCC433D2; Sat, 10 Jun 2023 13:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686405499; bh=TgZ/XcI0B7PIf6yRiA3WNK9+MrAYADijA4aYVK9bGks=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=lc/NXDp8nuYUP21eJFWC3bCmtLlaJMukRVGAnk7PUmRiSNRUd2u+ck4t36FzdAtM7 aQBcNE+kuMAqnV2F0mGdQnC2FhHv7yO7u7a6Q2msqWi04ujeTWbrbjXLsSVODK3ug6 nAa3+iLrEQH+XN6LBhhzfq4VI8RF3nx01I/kC/G309pVnCd7QgtcoWVkjoHem4N/RI 4HjIQsJQeKBz0pMtLcAygFoRWXkTxzllhKBkypjsb8QjBWrp3GgOUQHPYkXVrNlJLx S0McQGMANiZdyUOXbZx+bj3IBmC4oAD6WPsO62WYKxYVmypSlNethQ+BjQXthcyG0c tfryNQeDqls2A== From: Mark Brown Date: Sat, 10 Jun 2023 14:57:56 +0100 Subject: [PATCH 10/16] ASoC: rt5651: Use maple tree register cache MIME-Version: 1.0 Message-Id: <20230609-asoc-rt-maple-v1-10-729c6553cdcf@kernel.org> References: <20230609-asoc-rt-maple-v1-0-729c6553cdcf@kernel.org> In-Reply-To: <20230609-asoc-rt-maple-v1-0-729c6553cdcf@kernel.org> To: Oder Chiou , Liam Girdwood Cc: alsa-devel@alsa-project.org, Mark Brown X-Mailer: b4 0.13-dev-bfdf5 X-Developer-Signature: v=1; a=openpgp-sha256; l=947; i=broonie@kernel.org; h=from:subject:message-id; bh=TgZ/XcI0B7PIf6yRiA3WNK9+MrAYADijA4aYVK9bGks=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkhIFnx65irtGT3dMx0lqtTh7lEi7EXBF23Yrc5BTh 9yq0+w6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZISBZwAKCRAk1otyXVSH0FhiB/ 9VhoD/ja2BEDTT3SNU7xPpp2tsMrIeMKgbR8nToSFKv+Jk+7VskCn+f2A5JW6fr49VEAduIXGPrnYR sajNHhcfIZRbJQDs961utYUdPGKXugua+hjjg4yEm1BGZDGtP1rbH+QtQleXGicpt1ZJINg5ADNNK6 PwzaC3FDZYKY6hQCAgv/SeylS7xnUIsQimWeOUDlYkdrc/ZgmXez7nI+/++ClnL33sFk9E0OarkzgD MtjfD2q2dzNg3B/l1RP1CBhKkuHFl/3IByvw9iEG5zkgYmi2tZA8rQzWA4dc7tx66biLkw6unDSHtS R5lXbyLJD0NcVMIbYweCUh66blBA28 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: XSQX6Z6EBG2DWWC5RF3H7YFYVMBYHZ7W X-Message-ID-Hash: XSQX6Z6EBG2DWWC5RF3H7YFYVMBYHZ7W 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 rt5651 can only support single register read and write operations so does not benefit from block writes. This means it gets no benefit from using the rbtree register cache over the maple tree register cache so convert it to use maple trees instead, it is more modern. Signed-off-by: Mark Brown --- sound/soc/codecs/rt5651.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5651.c b/sound/soc/codecs/rt5651.c index df90af906563..bf98fdb66cea 100644 --- a/sound/soc/codecs/rt5651.c +++ b/sound/soc/codecs/rt5651.c @@ -2172,7 +2172,7 @@ static const struct regmap_config rt5651_regmap = { .volatile_reg = rt5651_volatile_register, .readable_reg = rt5651_readable_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .reg_defaults = rt5651_reg, .num_reg_defaults = ARRAY_SIZE(rt5651_reg), .ranges = rt5651_ranges,