From patchwork Sat Jun 10 13:57:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 691177 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 18A71C7EE37 for ; Sat, 10 Jun 2023 14:04:53 +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 1ECFC82A; Sat, 10 Jun 2023 16:04:01 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1ECFC82A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1686405891; bh=SxLwpNpjL3jFgnrGP2ndQWDihHgJFZHLACIEj6ktK5k=; 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=WND2gD5LIXZiTs7wR69AtEIHW44/y3vhRfuQxqUHPHKkFfAg1wv5Y+0j0lAxoixLt T/bsQsYT/GAk60UR8pom7O2QkHFEIJSM2fYIJwdufLnO0yO50CmZi05TsUXCYQzOGs d/K9s6Y1plhVAdewy+w5FSyJTD55DaZpMmzN6BSw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id F05B6F80671; Sat, 10 Jun 2023 15:59:09 +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 0F434F805FA; Sat, 10 Jun 2023 15:59:06 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 29F79F800C8; Sat, 10 Jun 2023 15:58:19 +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 284D9F80290 for ; Sat, 10 Jun 2023 15:58:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 284D9F80290 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=FnRIgCGH 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 DC82A61775; Sat, 10 Jun 2023 13:58:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 670DCC4339E; Sat, 10 Jun 2023 13:58:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686405495; bh=SxLwpNpjL3jFgnrGP2ndQWDihHgJFZHLACIEj6ktK5k=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FnRIgCGHBYK1bZyjsa0o7ChgMMDpexPFny1SWXzoskUZaThl+4pBDCJFpHaPW5Slu 0Pz5/2YDKRrtPUhGbaUxW0AY0WqhY88B5Abcp7zKbCF9hC7N3bzzNSmpAVOrAFmtXS K0xKlhwqdcwZ6qIWQbLUMiRY8NBB2f8QxaicwULSv0yv1Lin3AB+AVtO7oDcRsOMrJ pfmPJvYUMmFOi8C4Xz+Q+9ZF4jmIFmB4aGNioZA8wyW56B1WIyoR95+TFSb5Bhh9Sx 6IJQ46+05ghsYFWuYE9KinGd/TAK0RvTndPtsMccH1CgmyuXLfOXKRFit1ecP1TB9e dwVRPW73h8H9A== From: Mark Brown Date: Sat, 10 Jun 2023 14:57:53 +0100 Subject: [PATCH 07/16] ASoC: rt5631: Use maple tree register cache MIME-Version: 1.0 Message-Id: <20230609-asoc-rt-maple-v1-7-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=933; i=broonie@kernel.org; h=from:subject:message-id; bh=SxLwpNpjL3jFgnrGP2ndQWDihHgJFZHLACIEj6ktK5k=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBkhIFkPJVRZqrMzJBu6bRuLBc2qHM3/Tfz8yy+1TU+ gOaNFF6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZISBZAAKCRAk1otyXVSH0H3sB/ 9wPtKLUucfpZZYCCaGWklXmuaqUAR5b24I9Y6mJe1cd31O4mMlphNFk1TQYH9kLn7JirG+qgpGgx2V f+t808i62eRqrd1FEKw28OJWVTsIZzFDQsRmsEXXKWxav9TvxGIm39YLqBYEG7b4V8ZAYQ1xcYr3zm K/78Ut4yQuFEteZ9dPnJ14jwfXHwMHgUbkOj2t6fP3aPdJOWNh6ZNG3/AvFI9BbDWwXfYMalUPa59O Bl/cccgT+PoLOAkx6R5Xt8ioCoF3zMLVcVCfTYYlMD1rqipU6g/8mM0EUcSyNWrMBp6RCeLuCSvr6o K/V0QgCsujBx1j845SQ2Aq359BPDk7 X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Message-ID-Hash: VHPVXNC4WUZ22M2IOKK4UDAZDGV25ZHD X-Message-ID-Hash: VHPVXNC4WUZ22M2IOKK4UDAZDGV25ZHD 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 rt5631 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/rt5631.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5631.c b/sound/soc/codecs/rt5631.c index 55c232413e2b..d3052e6708a3 100644 --- a/sound/soc/codecs/rt5631.c +++ b/sound/soc/codecs/rt5631.c @@ -1693,7 +1693,7 @@ static const struct regmap_config rt5631_regmap_config = { .max_register = RT5631_VENDOR_ID2, .reg_defaults = rt5631_reg, .num_reg_defaults = ARRAY_SIZE(rt5631_reg), - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .use_single_read = true, .use_single_write = true, };