From patchwork Thu Apr 18 11:12:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 10907057 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 64C8417E0 for ; Thu, 18 Apr 2019 11:13:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47D59287C8 for ; Thu, 18 Apr 2019 11:13:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C0E628C26; Thu, 18 Apr 2019 11:13:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, TVD_SUBJ_WIPE_DEBT autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E47C7287C8 for ; Thu, 18 Apr 2019 11:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=3f6FkYdJY7Ug14/XoXG/3nR5BuTTsD1iUVMDtCaDDt4=; b=C0iwreknJkrtrdMpM5TGsu5Z6A MpnH1FQV7QrYqpkwM1k8WxhGx+MFir8fArLn4K7bEGZ/abc/qARPl9jmsqZ3sh9f6C5MditaPp8CP V1K6QaIiRrLk5XZ0gkAFyzViUNSPXW/xHOzQXE52feujL7CuNm8yp5aXG8Rl/e/SP5ey/XIMdaQid W5anOK/4cHeaye91Fd7WyF66MDQZbttJkjZUTdNlRdvffHnWgSi1foBhr01p7HjjACKJKCQxWtTOX eVtnIGoyPpHelq7/c1uLxNoYtkjSpQzmGvcdo93vYtulYTU93wfiOLDiDI6/7vI/hgXQx6wYLlBM+ RiqRCLGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hH4z0-0008AT-Qx; Thu, 18 Apr 2019 11:13:34 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hH4xu-0006kS-Ea; Thu, 18 Apr 2019 11:12:30 +0000 Received: by mail-wr1-x442.google.com with SMTP id k1so1298408wrw.0; Thu, 18 Apr 2019 04:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=CAbZ+B2Pzaew/uxTUQeDlxYznykRwsRk9BK/GJ+9CDQ=; b=loX2vGZN6vibeeQ7n9V6YuPhstSvX3tKKZX4RjVFaMo2Ku/65hfoQztilLTk2lDNbI WuDyCKuUyzze2ZvjiLZU2taa644c+JZFQIxKrHSjPiyfPWCk8NiBzr+1F2D1AVSxzeEl IthDHbKNj6KZT2dByQh088trw15H8k5Ese5F4nO2B2gWj+mjX+sL+rLBdQoGRdV19yRm RhEKYC0a3ieHR5ORIhCD9uBs+hDUJs/ta4J0Yjt8xZsbZCtzZln8D7S7nsoJ4rtRJevT BbL6hnhZTXSU+batyvtaUspx0TtKhShkwRl4bQl5lYdIy5ylElunRHFLor1foeeIyF+U zHvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=CAbZ+B2Pzaew/uxTUQeDlxYznykRwsRk9BK/GJ+9CDQ=; b=PLob/6UvZquKYOm/KKyfkBPe8cO3hr8YcR49XSBGDUj1sQanjeNUT3RWvwhmKArEaM JGEfhUlGgYj/m5u5CJ14gV3GJ2KvSq7QDVxoBCyjZFWXO+U8ZeGBN2GJ6W4n6INpBuM1 t22wtIalpoRDYIB/r39FNMNkzWpAt+qOd8qYKrv8Z7qxKzaj7XKmCZeUQX2pNrSK07dS 0JK3Lhnhie5c0IdZ8Kk+2Nw1PxQ1N+5uuhQHk/+fBDwGyxD2z3UBxa2AW0uowKChVstd XV50GgvcF6as7yqKsBFwlVePmauF2dVxANJBzZ2sb/LHZV/mAairW7nDbvLJPelMFfsL nJvQ== X-Gm-Message-State: APjAAAWm7LEQeKJIKu91arf63b2B+Vgu8QOUITDGmyMmI3JEr3/OuSWM fy0Lrrz4nCTpraxVYU9DFm4= X-Google-Smtp-Source: APXvYqzsBnyWaFRQQofw/q/jVVAit0cci7zyLWs75NRW7NfZ6sxZCdX620fTKMUfrtw+uuDHkkxuAQ== X-Received: by 2002:adf:ec0a:: with SMTP id x10mr60641120wrn.193.1555585944841; Thu, 18 Apr 2019 04:12:24 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::64]) by smtp.gmail.com with ESMTPSA id z63sm2005594wme.30.2019.04.18.04.12.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 04:12:24 -0700 (PDT) From: Jonas Gorski To: linux-clk@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-tegra@vger.kernel.org Subject: [PATCH RFT V3 7/8] clk: core: remove powerpc special handling Date: Thu, 18 Apr 2019 13:12:10 +0200 Message-Id: <20190418111211.10474-8-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20190418111211.10474-1-jonas.gorski@gmail.com> References: <20190418111211.10474-1-jonas.gorski@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190418_041227_390112_F05AFADD X-CRM114-Status: GOOD ( 10.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter De Schrijver , Fabio Estevam , Heiko Stuebner , Stephen Boyd , Benjamin Herrenschmidt , Michael Turquette , Michal Simek , Jonathan Hunter , Prashant Gaikwad , Paul Mackerras , NXP Linux Team , Pengutronix Kernel Team , Michael Ellerman , Thierry Reding , Anatolij Gustschin , Shawn Guo , Sascha Hauer MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now that the powerpc clocks are properly marked as big endian, we can remove the special handling for PowerPC. Signed-off-by: Jonas Gorski --- V2 -> V3: * no actual changes V1 -> V2: * no actual changes include/linux/clk-provider.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index f82cda41e1a8..479e616ce7f5 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -1001,20 +1001,6 @@ static inline int of_clk_detect_critical(struct device_node *np, int index, * for improved portability across platforms */ -#if IS_ENABLED(CONFIG_PPC) - -static inline u32 clk_readl(u32 __iomem *reg) -{ - return ioread32be(reg); -} - -static inline void clk_writel(u32 val, u32 __iomem *reg) -{ - iowrite32be(val, reg); -} - -#else /* platform dependent I/O accessors */ - static inline u32 clk_readl(u32 __iomem *reg) { return readl(reg); @@ -1025,8 +1011,6 @@ static inline void clk_writel(u32 val, u32 __iomem *reg) writel(val, reg); } -#endif /* platform dependent I/O accessors */ - void clk_gate_restore_context(struct clk_hw *hw); #endif /* CONFIG_COMMON_CLK */