Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1105161lqa; Sun, 28 Apr 2024 19:47:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXS15eVGfopavWtpPG0nIQ+ASiNi6WvstjyLaO7lvNue5IYH7+k9gSZ1E0XxHVjYZHQHiu/MfVy9YjEf9k8+XVcCFzcQiZZcV2NFPFjxA== X-Google-Smtp-Source: AGHT+IG9i8M9PoQyzys4HGmNoXBC+HYLLNEaD+ZpkPNxjf035S1T01o5QduzejBTDRqJeYwdtz24 X-Received: by 2002:ac8:58c5:0:b0:43a:f4e1:e8e8 with SMTP id u5-20020ac858c5000000b0043af4e1e8e8mr1441970qta.7.1714358843227; Sun, 28 Apr 2024 19:47:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714358843; cv=pass; d=google.com; s=arc-20160816; b=q3W1S6aNRYtGT6TLRevDagdIJXHXAJMIL5t4kyWVt7kYXKWvTdUrSxOUloL1gpDzNQ kRotkHFdZTwaTOZIZMHTn5AUwOH/HApd50vNe7VtEIOv2pFpiWh9IbGsHiRSPyEyVsZO lIAtNxgSr3XHfiTJyo47LRpNKko8tWKtSnUTt6BfT6AC4K6gmPA1mzXaoxZFstIXWF+H KLB0uMMPHzVfb9KdCkFyCbJdxE8EFJGuTCs3rR9YoW3fMXdg1mmfNbYobG//u8bjnI4m gz4gP3Qg2tmxjV6JSRUeJRvXQNCcIcyJdiutHgd5GbYZzn87PIfpFrN4wXilpB2Tjbdp 7uAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=abuse-reports-to:tuid:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=nWRhiQyivlQ+Rie6hJ5zz14B038Kh3Jx7lS0QyaADp0=; fh=OkF+2N6/XD5wviJTpMyfcqMzj4RxdM+IWKjh5vpthnQ=; b=k9UriKf0TuqaA3ToWonHUzYgCQoM8B4jd+1YxMspZmXiBYhzk4hWeMBzaA51FVatWh dwbDDeXvAveGHhbxYc7CWGavfo8tE23QvOFA4NdrMqTD16TQs8qPjLPlMiFy456S2Off 0DK/r4JqnPtSszkmbGD6zbIHwxboOQb2tTMLfpO3vMectd9iGW6M2SerV3eN1CoqcG2F trgu8gNE7wdE/nr+ZOAO3MzBua20IcW4DD3VAySHdmvADCoLmjq3r9+pFcUqtkjTDZOv BedcyP+wmyXvzq9GDYxEOyCwyVbP4++bFDqvRJXHBxvMhGHpOY/M6qP2gqtMENJM+4TN D8CQ==; 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-161688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161688-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t15-20020ac8588f000000b0043ad4482373si2371140qta.22.2024.04.28.19.47.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 19:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-161688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161688-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EFD471C20BDC for ; Mon, 29 Apr 2024 02:47:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE6D18BEA; Mon, 29 Apr 2024 02:47:15 +0000 (UTC) Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 E20E6C2C8 for ; Mon, 29 Apr 2024 02:47:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714358835; cv=none; b=djZrZEzKUwPA5vlbDuobOiifilVTorCwQH48YCvdRKHXuayqoJBpmP19on0vsQl/sEpJUwulYs6jpxcCmubjT58rmHKUj2oC2V9CCHggMmj8jEtKlkDLYwDZRo8LOyMqZDl0mfgjMm3ArjLK31BN/Pz9CtRM/s+Y1Wopp+f4c+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714358835; c=relaxed/simple; bh=thbFZ8yBL5OGWizoHOgdZS/5jmT8HQSpOscTQ3lncZg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=I8V3ksUZygy6uKPx83j1KzRjpFjcm799aqvq4dS45OUrFwMm0jZ+7bF6f4NnqYcpKicglZKbdbhjFTKMiH8HcnRHgTT+Y6NxQ0wLPBtY2MopPyyweCBnkwYGYJUs1MW7UxVqC1Y8QDVDTOGzL7l6dqdrW5nbqUMhPIIFgj11QCE= 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.26.146 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 unicom146.biz-email.net by unicom146.biz-email.net ((D)) with ASMTP (SSL) id ZWW00155; Mon, 29 Apr 2024 10:45:55 +0800 Received: from localhost.localdomain (10.94.16.97) by jtjnmail201621.home.langchao.com (10.100.2.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 29 Apr 2024 10:45:55 +0800 From: wangkaiyuan To: , CC: , wangkaiyuan Subject: [PATCH] mfd: axp20x: convert to use maple tree register cache Date: Mon, 29 Apr 2024 10:45:47 +0800 Message-ID: <20240429024547.27724-1-wangkaiyuan@inspur.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: Jtjnmail201617.home.langchao.com (10.100.2.17) To jtjnmail201621.home.langchao.com (10.100.2.21) tUid: 2024429104555997ce63c2bf7eb3d89a2e7640832a09c 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: wangkaiyuan --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 48ce6ea693ce..f2c0f144c0fc 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -422,7 +422,7 @@ static const struct regmap_config axp717_regmap_config = { .wr_table = &axp717_writeable_table, .volatile_table = &axp717_volatile_table, .max_register = AXP717_CPUSLDO_CONTROL, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct regmap_config axp806_regmap_config = { -- 2.27.0