Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2876085rdb; Mon, 5 Feb 2024 23:39:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEuMseOWYYD8Il3/c3pGcORWq79fy8HOHOZ3w+HBwdpZgqL/BoRLrS2Mw7rJxFLeLGjk82l X-Received: by 2002:a05:6870:3309:b0:219:6ad2:3b8d with SMTP id x9-20020a056870330900b002196ad23b8dmr1833381oae.26.1707205193140; Mon, 05 Feb 2024 23:39:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707205193; cv=pass; d=google.com; s=arc-20160816; b=An95AroOaIbujukYjVDDgl0EXssFkl8H/eDz/h8sXJvX3+MWazpGjj1JIcUCJuRa15 zxjazAC/jpJtx+k6x/MYFmhoWn4brHOcDxwCmpk1Y0Jqalnbq9xdH9M2K3t/akrE4sn6 vESjmynDGsLzjkW0E0n6IOlas9qDxexAV8VI+8h+fItYl2tIhBGQKNrcFKJqlgv9itVS 3yzcuUXG/fIOI7jraSKr1aySeAz5H2Boe02Rzz++6SkKJOKEq9NPkeCzwuHZBDhXSknH iVDfOWChHTj9qcSLq1pQYfyJIvXvTJE60jiaxh5mWCjkF7i/PXGQWd+9wqJUZFReMsqR afGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=abuse-reports-to:tuid:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=dRQYPuaX2DowObC8OUK9HvsQ9XrqQoSeeER1SWJertM=; fh=KkP/pw1MT2ZgFYN0xPPpZ5LBHuZ+j638Uw6mAB2Zq/w=; b=djaJEvJXl+lSGpKpQasK0YBhEXukS5in+BVeHitIEKZadW+AodgTJthcOJiDK7VyZB N2zNOBXgsqDOhyhs4uJMby4oDIgwH5Zs2XrzrSiQmWlx5AHdQ8lP/dTi5wtqN4xsaED8 QlId5vq5fH3F/twYbkjaX1bh9g5dVpD25lMxmsp2DpH/4D5kz85+lNFDW4sY2OSpppqd JrU8zWHFXYD3+aw7PsGs1jGhuBbjr9VZhHXWbZ9hVL1LEQuC6r+fOfz0/XuBpKb3AleS yetz8hrdQbGG+dyvSaukqRlvE7fpSECZ3POiBirvBUoO0HrsJP9Cky8pYGU4W4YXGOdy t2Ww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-54398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54398-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVzJleZhjZiMoOcSaF7B/JLYRIrN4ACSDZ7kRHwN7vS8UsffGOZ/Om9XltHoErGMMU9ZjI+sMdQJlULPpPumUTQbBKhEoJbQCOK7AnCNA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h8-20020a63c008000000b005cecbe69c23si1294829pgg.43.2024.02.05.23.39.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 23:39:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54398-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; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-54398-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54398-linux.lists.archive=gmail.com@vger.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 00066288487 for ; Tue, 6 Feb 2024 07:15:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 024E812B157; Tue, 6 Feb 2024 07:13:49 +0000 (UTC) Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (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 7F8FF12AAF8; Tue, 6 Feb 2024 07:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203628; cv=none; b=a0w5G9+etGM41GlCQ8kwWtQh5+Rv18lDnpKq108ZVKPhVBL+m6UB1+ciUMuyLR90TgdHB+RyNfm85t+gKPj33xLmy7uzbkllKB+Iqfvuh6KfTverz27SsmzrXOBeC1HxcKLJzTOwSibAPhcsKhC+aZS4KzxUV55FlmAP5JfW9r8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203628; c=relaxed/simple; bh=s4eu32UCJBPeQCZc1mgIC+BDNYdhL5EOEJEiAFIlWXc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fvQw01Hza8jKoW56ESCjKFPpXK2rc85elw/v2j3wqhsH0rDvM9SkmEGahF5HyfV/ygwTtem+6avlbNb6Xq62VKKuCksrPwxwZ9IoO1GBWxxndp6Oz3GGRJSmmoD58T0tPj6HSYJzOvTWqSYfa+BoReWl2O5NmzETVIBAF+WdZVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id CZT00040; Tue, 06 Feb 2024 15:13:40 +0800 Received: from localhost.localdomain.com (10.73.45.222) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.34; Tue, 6 Feb 2024 15:13:40 +0800 From: Bo Liu To: , , , , , , , , , CC: , , , , , , Bo Liu Subject: [PATCH 09/18] mfd: lochnagar-i2c: convert to use maple tree register cache Date: Tue, 6 Feb 2024 02:13:05 -0500 Message-ID: <20240206071314.8721-10-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240206071314.8721-1-liubo03@inspur.com> References: <20240206071314.8721-1-liubo03@inspur.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain tUid: 2024206151340dc7b47325e1d94996cd6585e6dd71cab X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com 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. Signed-off-by: Bo Liu --- drivers/mfd/lochnagar-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/lochnagar-i2c.c b/drivers/mfd/lochnagar-i2c.c index 0b76fcccd0bd..6c930c57f2e2 100644 --- a/drivers/mfd/lochnagar-i2c.c +++ b/drivers/mfd/lochnagar-i2c.c @@ -70,7 +70,7 @@ static const struct regmap_config lochnagar1_i2c_regmap = { .use_single_read = true, .use_single_write = true, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct reg_sequence lochnagar1_patch[] = { @@ -163,7 +163,7 @@ static const struct regmap_config lochnagar2_i2c_regmap = { .readable_reg = lochnagar2_readable_register, .volatile_reg = lochnagar2_volatile_register, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct reg_sequence lochnagar2_patch[] = { -- 2.18.2