Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3038412ybe; Sun, 8 Sep 2019 05:58:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv0S8se+p1upoIww81eKGOcUFfavitI0LdnDvgjiyl4cM/6gR7M8dbrKb5+BmmR+fSajPz X-Received: by 2002:aa7:d6d8:: with SMTP id x24mr285928edr.178.1567947499002; Sun, 08 Sep 2019 05:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567947498; cv=none; d=google.com; s=arc-20160816; b=urAe3Ip+3cZzc0QQuhNuAhP2jDpOwHDA7vF243OxkU6Pk/ymdv5j1AtXFmmFcxuNvf /rIrNJbZGO/WNj61cnOZbQlCAEEVMNtFbt05biS8sEPkP8cmnQT+JLRxVdChcHYrAhuu f+Gz4IkVSq1Z36FUPGZ39MdLg7h/eQ3kGWnrw1Xfb25GJUNs5hD250QansW+M6QBoywi Ryh3WMtOoQjpe63P8HUzDDSsf6cnAzQYaWuvUpbg/M28xpaDDJS3lv1UQT4BXLxcm8Y3 96zE8l1gQ1hi8aCRdslzX+vfVkruuiGI5MXJab61crkXfHlhSt1OeqvHWSoJwjRMS5pR yj2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=6i6NBEagEgODgYMHwWoyzKA1aLB93z8TCZXr6QmOGfk=; b=UtIShHhEyzF1ogf7kUsxY2DAanpKpwbOrx9DLAENA+EiqpZYGIWwKpMdiN04+Q4jrF 7V44y1SGc3ZQNPfWmoM22wOmlRxRuUoqGdBH8aTfaKi5m0KveMfX+k0WHYX2LwaUotSV w6q7CvgBMwDCrmj0m66lIeVGtzUll6D6crceQKVuX2QTvIZvtaUNAXIEnR+rxEApf0rh xNBX8VzR2mlSg+fi2oeZWZgykD/C13q9p0cjI0sFGjpVKoObMh2JqRwJu0iK1n/03TH6 MQmxc0GQa51MZ4XTP8YUNp9wjFkdfSgvSdqnb3ovfe+BU3uBEmCnFUoG0jPegsv4WWZj awWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 h50si5930789ede.423.2019.09.08.05.57.54; Sun, 08 Sep 2019 05:58:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727495AbfIHIjY (ORCPT + 99 others); Sun, 8 Sep 2019 04:39:24 -0400 Received: from alexa-out-ams-02.qualcomm.com ([185.23.61.163]:7549 "EHLO alexa-out-ams-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbfIHIjS (ORCPT ); Sun, 8 Sep 2019 04:39:18 -0400 Received: from ironmsg03-ams.qualcomm.com ([10.251.56.4]) by alexa-out-ams-02.qualcomm.com with ESMTP; 08 Sep 2019 10:33:05 +0200 Received: from lx-merez1.mea.qualcomm.com ([10.18.173.103]) by ironmsg03-ams.qualcomm.com with ESMTP; 08 Sep 2019 10:33:04 +0200 From: Maya Erez To: Kalle Valo Cc: Lior David , linux-wireless@vger.kernel.org, wil6210@qti.qualcomm.com, Maya Erez Subject: [PATCH 09/11] wil6210: use writel_relaxed in wil_debugfs_iomem_x32_set Date: Sun, 8 Sep 2019 11:32:53 +0300 Message-Id: <1567931575-27984-10-git-send-email-merez@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1567931575-27984-1-git-send-email-merez@codeaurora.org> References: <1567931575-27984-1-git-send-email-merez@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Lior David writel_relaxed can be used in wil_debugfs_iomem_x32_set since there is a wmb call immediately after. Signed-off-by: Lior David Signed-off-by: Maya Erez --- drivers/net/wireless/ath/wil6210/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/wil6210/debugfs.c b/drivers/net/wireless/ath/wil6210/debugfs.c index 50dc30e..304b4d4 100644 --- a/drivers/net/wireless/ath/wil6210/debugfs.c +++ b/drivers/net/wireless/ath/wil6210/debugfs.c @@ -393,7 +393,8 @@ static int wil_debugfs_iomem_x32_set(void *data, u64 val) if (ret < 0) return ret; - writel(val, (void __iomem *)d->offset); + writel_relaxed(val, (void __iomem *)d->offset); + wmb(); /* make sure write propagated to HW */ wil_pm_runtime_put(wil); -- 1.9.1