From patchwork Sun Jan 6 08:37:49 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: 154835 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2355239ljp; Sun, 6 Jan 2019 00:38:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN4hQxzjhzy1MUdwPaXOC9qshFU9GvV+RgCIB5AhXgAOOE0dNihKPAan99OCL+1cPtBZ1v24 X-Received: by 2002:a17:902:f44:: with SMTP id 62mr16278052ply.38.1546763894520; Sun, 06 Jan 2019 00:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546763894; cv=none; d=google.com; s=arc-20160816; b=Da262BQS7lXD/QnPnEPyEm6xP9RbaJmTMh/fYVNGkB38NAPw21ufD4893OMSuLzL/Q hpIaDMjAY3QhqgkipnOD8ikNXIHlo540gJSK66cjPiD+2WuVHW3ShEY7+lCJ/uH+uYEh umJms0BPWclbVhrxKdAzrfzAbhB002y56CwTuKtew9C3XU9J9/kwU9kChytQ5YWYAQ6P qgMoMWMPatj4MysLjlH2vPGNRgULgDY5KqjZoEDb/kl8Z53yoC8AICTUHt48NKFora5P olWbvTBa9JHqzzRpjFNjhtRGXFVqaaXC8Pk8cvO8S3V+54B3IS+x9OwfYtVh3HNz5fo1 VrMg== 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=Gcfwah71KjRuJ9Eb6kK7GcNUnd1NIWBmEaAYb94riq8=; b=s7iLMiOisTTEDC7dRpzGz9gfDo2mHtg2t4koTaWPOvBYyXVNvA4cDYJk09WnZK58TA nfBcg0nPvTtnU8ImFwutYO3MHIAJnpI2p+fYnIRllMH8bHqPY12xGwTnK6pIB3WwxssL nZ+WsXTUpyIPGNAvH6VcfUWhp9NH13+XV9w+rgpUSoGstbe8iulQFxV/qi4R8ewwoR68 JzcnQQzVnCBq8ufausqP/4WYPRfQlQCPo3iCncqm+bUc79F/0LIIRo329iz5kosQHOQK DsmeVW2tSwui7ycqahUV26SUhZaaJua5ufwfmzL15769znv6baqu9K/BwhFmvAb0Vqz9 zDUg== 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 j20si5654500pgh.224.2019.01.06.00.38.14; Sun, 06 Jan 2019 00:38:14 -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 S1726592AbfAFIiH (ORCPT + 31 others); Sun, 6 Jan 2019 03:38:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:57230 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726529AbfAFIiF (ORCPT ); Sun, 6 Jan 2019 03:38:05 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 74E53AD17; Sun, 6 Jan 2019 08:38:04 +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 06/11] net: lora: sx130x: Force regmap field write before sleep Date: Sun, 6 Jan 2019 09:37:49 +0100 Message-Id: <20190106083754.6004-7-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 Ensure timing is as expected by forcing a register write before waiting on its outcome. 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 457f2396d9ee..bc2d4b1165d8 100644 --- a/drivers/net/lora/sx130x.c +++ b/drivers/net/lora/sx130x.c @@ -692,7 +692,7 @@ int sx130x_probe(struct device *dev) return ret; } - ret = sx130x_field_write(priv, F_RADIO_B_EN, 1); + ret = sx130x_field_force_write(priv, F_RADIO_B_EN, 1); if (ret) { dev_err(dev, "radio B enable failed (%d)\n", ret); return ret;