From patchwork Sun Jan 6 08:37:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 154836 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2355295ljp; Sun, 6 Jan 2019 00:38:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN6T85SXp5LashuXvx4OiUSrf2dFNg3wXG83oRERyUF7taMyy8fttUnIPzRmCADWmjUIfIAV X-Received: by 2002:a63:c141:: with SMTP id p1mr26168847pgi.424.1546763902157; Sun, 06 Jan 2019 00:38:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546763902; cv=none; d=google.com; s=arc-20160816; b=TNj2CsVz6fJ05Fvk8O1h1WKQm27ChvI3isURp2n93GtbXnDOupP8V6u3nhxEE//Ojs iAM2B/8eS0K9UbSk7C5c28Y/T2F8IdYjS9Lk95T0KEKLz0tqIw56PtWdmJKziM2VFeTm HAJ9ED8t4khdLyOhb9wLo90QeaPwsGrNQao1NG+rfPSVVqDJkmzbLGaKMsf0jNs6Bm55 YLslUHuQ9xJsLTKYkuEbDhzXjZCJuU9THnUM5xR27ItLpfboYvboFupH0f087kBK0b0v 6ccIqZ25r0i490xEMOgC1wNYRP3A4NXnwWobQzaZoMajTnC6b0HdlbI7+GV3KvBeN4j7 OdnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YBh5THtxYlb3NHsuE4AhncIR1Dw5MQC32Dd3DBSopH8=; b=Qr5YRmQwRBbxuSiWQFABbMtSk/uXYgeJX60/MW5zxhDvSpWtOX3b8eM+vzYMQYuyiK KtEWD8iPcSymQh4NAMesQG6PEPuKvalQoVEJJcm92rHTHz31WKzr2uxK64QGrWRXtYt+ N0wh0uEo04ON6D9jkWZZf6LhqQrKOSuiWeDcY5F1Z9mPsXEmkevbq7QFzruoslVw3BUr JupT7mHjjMaWX6JnbC8XxaUtTi0hfesbYA0OjtG/EhwfYtSJvhoXfZb1Sn/TxqBcBx0O EWUzh0sqKL8+2EBuoGgOl+GLZhy6+jfP89daRfNBeL7EpnotcQyrLCYOLttA7uqvp1va G0KQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si58244217plk.296.2019.01.06.00.38.21; Sun, 06 Jan 2019 00:38:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726624AbfAFIiO (ORCPT + 31 others); Sun, 6 Jan 2019 03:38:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:57236 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726568AbfAFIiH (ORCPT ); Sun, 6 Jan 2019 03:38:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4C413AEA3; Sun, 6 Jan 2019 08:38:06 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-lpwan@lists.infradead.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andrea?= =?utf-8?b?cyBGw6RyYmVy?= , Ben Whitten , "David S. Miller" Subject: [PATCH lora-next 11/11] net: lora: sx130x: Enable regmap caching Date: Sun, 6 Jan 2019 09:37:54 +0100 Message-Id: <20190106083754.6004-12-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190106083754.6004-1-afaerber@suse.de> References: <20190106083754.6004-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To fix performance penalties compared to pre-regmap field code, enable caching. Note: This has been tested to not regress on spi-gpio, with no improvement on spi-sun6i for clk_prepare() locking issue. Cc: Ben Whitten Signed-off-by: Andreas Färber --- drivers/net/lora/sx130x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.4 diff --git a/drivers/net/lora/sx130x.c b/drivers/net/lora/sx130x.c index 76ce072a540a..2fb18d0c9db5 100644 --- a/drivers/net/lora/sx130x.c +++ b/drivers/net/lora/sx130x.c @@ -162,7 +162,7 @@ const struct regmap_config sx130x_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_NONE, + .cache_type = REGCACHE_RBTREE, .disable_locking = true, .read_flag_mask = 0,