Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2867693rdb; Mon, 5 Feb 2024 23:16:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpDR8pt3s5QHWqtyGgABi9kBci3V2TMeZZo3KZW/LSNc1wHqlRdrzpd6CTYnXdMAcqGwAQ X-Received: by 2002:a05:6808:1153:b0:3bf:dea8:a6f8 with SMTP id u19-20020a056808115300b003bfdea8a6f8mr2459022oiu.32.1707203793954; Mon, 05 Feb 2024 23:16:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707203793; cv=pass; d=google.com; s=arc-20160816; b=TWxMQ08Jg8HEfq5wHhEvdM/VS8cN9zMwUKIOSEyCTsHTeDN3OCSIE/7oQfJ43UVDeS eQMBd3feNsHq+8d8jBzOH6KDQEuxeYnjCFme2tNI9+JVQdgiI6lXDFOwe2I8YKLmUG36 KITS6WwRSzqL7nYUiS1TdQ4kO6LAEWvl3Ad0VVWBQ6YzH/DXJY7l5FgnxNuahznaoF// cDCHngXcjH+bxllAP34bczpvEjmuSUvdBF034IBBsYZy2QbYsDW2qnt2BUJrxIqkb3Nb IP9541qU9PMubIlH40wducju5Wx/B2fCUUtYmJT1R/apl3B1nk80AIMbn4iQyi4/PmP+ yYAg== 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=Am8Hl6XZ6kXXoTH4SEXL4q2isityqSelu95xc03gO1o=; fh=sddgG7pTkqkNFqNqnNnxJmOBBRKtI3KwI88yVUV+NbM=; b=r84tuWRGDWhulfzj7KB8r5U3EPGdp3G0gt6vz7C4VDQhG2beQj1nyp+jykhfHmrhUt XzNekkE70sVkkdZ4QCx4T8Mu389MgXYfBrCiA/RibDx6SFkpc2QndfkOr+pXpPMRY6Z/ fbIJVfvGSG6NvEbrG7ctthggp8RJ5VSvEjZ9edDmus/oY4DeAzzCy+xIF46csI5SMx7r SqmBjXGyk4KnkLcXCuZKvyUrn4i1EhzZdjva6cksicEDv/jZsZcGEWRHZM8gKRXVq7aH dSXbuppxYDeVzgRAInKhJvuJtuR+XRWxH/lGVVIq0HxnFfwhBMeXxWhFWbneTmnvqJo5 LYVA==; 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-54400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54400-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXIez/nwu5M5TFcR7/VGXOAKbetQfCP/CKcK0wqVB6e3FhAq0LtWIXowWA7D+rVA2GrLQA8CouCGRTZxlLF5OFgrpv4eE/4Ex3m3ampjg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c20-20020ae9e214000000b0078394c072d0si1667445qkc.573.2024.02.05.23.16.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 23:16:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54400-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-54400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54400-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 B116A1C230B1 for ; Tue, 6 Feb 2024 07:16:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0074112C521; Tue, 6 Feb 2024 07:13:52 +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 85EC212BEB6; Tue, 6 Feb 2024 07:13:49 +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=1707203631; cv=none; b=uHmRDqIpsomyd01xOkapjZ3wrLL2Kr6SV04KlOdRrzZkvYGmN+UIiT/+75+KL7xezYNTGAXeOMOSKkjy3Y9Y7M3haUl5/CBLNgY4P/UL4F+AhY/ectC44w4FoPpLRHhVSr7qsyGzpwpuOcaMMkwPuYruxtdTGnYpsQ6x2+KCaDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203631; c=relaxed/simple; bh=+nefg17MBN3MrGNaP+32+11pXqu6RWMZfQD53hb+yXQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DMPLu2CoME9cmbfjuna5ZsGnORS2fRimnNIhNXShNpDE+cdpNOb0pGp/F3tfKBAXHBWiveZCSGw5/AkedvorQnjFPMLz7TF3P0gq4drt0U6YvQdKurNphIVq0GWSQHqcBSoR90TCFAe+gyB+aZEMOG9Md9nsW/F1BiK7XB3Kbbk= 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 CZT00144; Tue, 06 Feb 2024 15:13:44 +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:44 +0800 From: Bo Liu To: , , , , , , , , , CC: , , , , , , Bo Liu Subject: [PATCH 12/18] mfd: rk8xx: convert to use maple tree register cache Date: Tue, 6 Feb 2024 02:13:08 -0500 Message-ID: <20240206071314.8721-13-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: 20242061513443b160295ca69a3eff9f6a52a5f15a112 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/rk8xx-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rk8xx-spi.c b/drivers/mfd/rk8xx-spi.c index fd137f38c2c4..3405fb82ff9f 100644 --- a/drivers/mfd/rk8xx-spi.c +++ b/drivers/mfd/rk8xx-spi.c @@ -34,7 +34,7 @@ static const struct regmap_config rk806_regmap_config_spi = { .reg_bits = 16, .val_bits = 8, .max_register = RK806_BUCK_RSERVE_REG5, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_table = &rk806_volatile_table, }; -- 2.18.2