Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1380435lqt; Wed, 20 Mar 2024 02:03:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFWuEJfHMPyzB7FyuUbr9jPU6bsONc3rAe5wG8IM0yro4Wcez0JdJ3NQgTI0HA+1vIdLABvX++YUM54/DZq3j4zvQ5l5d/f6ZGwdzsPw== X-Google-Smtp-Source: AGHT+IHX45fKdpHEOzEblS59lGki7P0BLwRtiwPrhljHj0nKTeW07HyEx5uFVfOYRarzMHhHy3Ma X-Received: by 2002:a05:6359:a3a4:b0:17d:221e:d126 with SMTP id ky36-20020a056359a3a400b0017d221ed126mr4817181rwc.23.1710925403056; Wed, 20 Mar 2024 02:03:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710925403; cv=pass; d=google.com; s=arc-20160816; b=nnFSg37V+RKC6wfC9wP6qyF22DU2ypFOdb+25FDzqoEroHlFvE7I53nZg7sLyWLzkX 2MU9/SWZFuoni5rpGj5F7jQVAWxtkCS2cC9TRRaS0E3LyYTlBzAuWIjDDe7Xq4WRBR02 Q1YsjjyzV+hWoHjohz5Tbz6KmdLqHWSQ47wsv1du9hYk3LGh97ALa3TUbseSOGu+knka 8v42DYTJndO9BSnGCYErpWChYF5XCNkKzPEFIf6Hz05tbXOValXMFEnojS6wOmYxW3TA IszmlbKA/W67BUo+KNqvu4NEDHGbLZGVqX9DNdd5S8fVtGzCKJvqcijlFd8LIJ/piHgb nnow== 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=X+6ZZYikGmrqg6zWo5r7iZCtWGc80y2PXHVcv0BLHbE=; fh=ylGxeYDzupWRersxMfuRoDdGzjRmuyBko7KC/8yNBnI=; b=Fr82fgh6OsqTQ1gIWXTCRPpkidwOIywg3J8bfvc0aBtvqICTODM9t2DBqMYR7aIMpR ysRt2JmtGsPy646mR3vlycI4ox9SnD7yFmPTrqeJPW6OFQNBpt0pRzooBLrPyGZ3XxUk /oKIRW3WOiurvEPoK89dJMBQ0+Ze66haLKNxbvyN0InD803v21M2z7geXOoj4M3XfbPH 8dKSUkMylpFgGreOSZvOdTOBO0AioPESWr9SoYUozLYUm1uOYCHDqcJxxR58qyzPcMbF APh5wX1w0ULwVpHb2hr51L0FNFnYRrRL8CNjDD+AhPFVGCpa8s+QiBbYEIDve514ZynG SDTA==; 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-108666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108666-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m190-20020a633fc7000000b005dc82971737si12315700pga.365.2024.03.20.02.03.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:03:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-108666-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108666-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C6814B228BA for ; Wed, 20 Mar 2024 09:00:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C71E947F77; Wed, 20 Mar 2024 08:58:08 +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 8BFEB44C92 for ; Wed, 20 Mar 2024 08:58:06 +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=1710925088; cv=none; b=FROuzJCm4hqyeVaozsSEtUE7Cw8rKTPBv+ZQl1ZeFIJN2f8sf9SkPVAnW3CKLPFuOCjQhnPNVfGAOr/JGfCH8AythFk/sbpGDF8cfrmO6n3xlVTAex4/pMyxnMi39YIj5zqNAwLI7JRlcsoOeerAYqIJ4k/LytG3GNHZrnqfY9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925088; c=relaxed/simple; bh=po8nGs/QX+OygQoV6swHooAskwzfSgOE/HJMqFrbV/E=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kbramVMudQN6OHO2X2k0j2HzXjNQgYAlqpqCjYPn6wW4o/8Nyea4S/9maimjqaI49ZKphypzSZmqCwdf9qGXz548qGyYckGM1yjuO1CCppYJlcAK6/WLVlz++sXXozPV8BS9vCp6Bc9H5ArbRgK11pPhQboT4bEOiEWpK9wHOcE= 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 RDB00100; Wed, 20 Mar 2024 16:58:00 +0800 Received: from localhost.localdomain (10.94.17.92) by jtjnmail201610.home.langchao.com (10.100.2.10) with Microsoft SMTP Server id 15.1.2507.35; Wed, 20 Mar 2024 16:58:00 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 13/13] regulator: rpi-panel-attiny: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:40 -0400 Message-ID: <20240320085740.4604-14-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240320085740.4604-1-liubo03@inspur.com> References: <20240320085740.4604-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: 20243201658003ea40bb9b9dfda1388c23940ac561bf7 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/regulator/rpi-panel-attiny-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c index f52c3d47ecea..6c3b6bfac961 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -75,7 +75,7 @@ static const struct regmap_config attiny_regmap_config = { .val_bits = 8, .disable_locking = 1, .max_register = REG_WRITE_DATA_L, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val) -- 2.18.2