From patchwork Thu Oct 3 15:56:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 11173009 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1DD0117EE for ; Thu, 3 Oct 2019 17:42:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0785821A4C for ; Thu, 3 Oct 2019 17:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730947AbfJCRmQ (ORCPT ); Thu, 3 Oct 2019 13:42:16 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:38530 "EHLO mx2.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730945AbfJCP50 (ORCPT ); Thu, 3 Oct 2019 11:57:26 -0400 Received: from smtp2.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 95EF3A3526; Thu, 3 Oct 2019 17:57:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id 4ZV-Hl7s7SIp; Thu, 3 Oct 2019 17:57:20 +0200 (CEST) From: Hauke Mehrtens To: backports@vger.kernel.org Cc: johannes@sipsolutions.net, Hauke Mehrtens Subject: [PATCH 08/11] backports: io: Add writel_relaxed() Date: Thu, 3 Oct 2019 17:56:39 +0200 Message-Id: <20191003155642.14909-9-hauke@hauke-m.de> In-Reply-To: <20191003155642.14909-1-hauke@hauke-m.de> References: <20191003155642.14909-1-hauke@hauke-m.de> MIME-Version: 1.0 Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org Add writel_relaxed() from upstream commit 9439eb3ab9d1 ("asm-generic: io: implement relaxed accessor macros as conditional wrappers") which is used by the wil6210 driver. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/io.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backport/backport-include/linux/io.h b/backport/backport-include/linux/io.h index f91085be..e04305c3 100644 --- a/backport/backport-include/linux/io.h +++ b/backport/backport-include/linux/io.h @@ -11,4 +11,12 @@ void __ioread32_copy(void *to, const void __iomem *from, size_t count); #endif +#ifndef writel_relaxed +#define writel_relaxed writel_relaxed +static inline void writel_relaxed(u32 value, volatile void __iomem *addr) +{ + __raw_writel(__cpu_to_le32(value), addr); +} +#endif + #endif /* __BP_LINUX_IO_H */