From patchwork Fri Feb 2 06:46:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bo Liu X-Patchwork-Id: 13542196 Received: from ssh247.corpemail.net (ssh247.corpemail.net [210.51.61.247]) (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 347A4175A9; Fri, 2 Feb 2024 06:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.247 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706856380; cv=none; b=WlrHyYvMIJmm7Y55FFpFCFISavzZPls2dHubWkTgxys7QkorF/ZnsK9SbT7f9Ou5QgAn9X360g7TDY+ERroBujHYm+KsNqmmrf6zaeh2BeZFSduNDa7RM9Lq8QLgNfUzv42j0CcsSIBtUKQpDMHbkNvzjYlqJGe8ZotUS+9AJsQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706856380; c=relaxed/simple; bh=YSIGkkTm1BFmSdfaGPJduVdS5Z2k8kDYQ0Evv9sjTJw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=g7pbHMRjFhzXDiYHZ+pKHHSL3Icl6B7q4WRDLHunGK535OlSrJYLuJoNIpG0gLslunR+pBsZURlswpjcjCW3GkGeIRVwAjH0/qm+QdnQ2dpX3/7LNEDlrOcjBpFx1qfrSwb/IrasGvzaif/GsEsTNx7LGAoAhSiZ032jSdG2F/4= 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.247 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 ssh247.corpemail.net by ssh247.corpemail.net ((D)) with ASMTP (SSL) id YYW00113; Fri, 02 Feb 2024 14:46:13 +0800 Received: from localhost.localdomain.com (10.73.45.222) by jtjnmail201605.home.langchao.com (10.100.2.5) with Microsoft SMTP Server id 15.1.2507.34; Fri, 2 Feb 2024 14:46:13 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH] net: ieee802154: mcr20a: convert to use maple tree register cache Date: Fri, 2 Feb 2024 01:46:11 -0500 Message-ID: <20240202064611.39346-1-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-wpan@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 2024202144613db1c81093f198205b717d8230eab2310 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/net/ieee802154/mcr20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ieee802154/mcr20a.c b/drivers/net/ieee802154/mcr20a.c index 87abe3b46316..efb1be3c644e 100644 --- a/drivers/net/ieee802154/mcr20a.c +++ b/drivers/net/ieee802154/mcr20a.c @@ -251,7 +251,7 @@ static const struct regmap_config mcr20a_dar_regmap = { .val_bits = 8, .write_flag_mask = REGISTER_ACCESS | REGISTER_WRITE, .read_flag_mask = REGISTER_ACCESS | REGISTER_READ, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .writeable_reg = mcr20a_dar_writeable, .readable_reg = mcr20a_dar_readable, .volatile_reg = mcr20a_dar_volatile, @@ -387,7 +387,7 @@ static const struct regmap_config mcr20a_iar_regmap = { .val_bits = 8, .write_flag_mask = REGISTER_ACCESS | REGISTER_WRITE | IAR_INDEX, .read_flag_mask = REGISTER_ACCESS | REGISTER_READ | IAR_INDEX, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .writeable_reg = mcr20a_iar_writeable, .readable_reg = mcr20a_iar_readable, .volatile_reg = mcr20a_iar_volatile,