From patchwork Fri Jun 24 09:41:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102100 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp854769qgy; Fri, 24 Jun 2016 02:40:57 -0700 (PDT) X-Received: by 10.98.24.148 with SMTP id 142mr5697082pfy.52.1466761257332; Fri, 24 Jun 2016 02:40:57 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id s88si5874974pfa.225.2016.06.24.02.40.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2016 02:40:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bGNao-00053D-UY; Fri, 24 Jun 2016 09:40:06 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bGNaa-0004bk-Tt for linux-arm-kernel@lists.infradead.org; Fri, 24 Jun 2016 09:39:54 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0MfqL6-1b1zQT2qhg-00N9ka; Fri, 24 Jun 2016 11:39:29 +0200 From: Arnd Bergmann To: Linus Walleij Subject: [PATCH 0/7] ARM: ux500: cleanup of CPU id handling Date: Fri, 24 Jun 2016 11:41:25 +0200 Message-Id: <20160624094132.1852086-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:i+JQom4741lZmJOoKyQXcbaOpE/Zwq0DiCNHxuXGHLc2uppLlj1 KplBhAmOT7SChi8bs/IImMO/tdeiAYCiFaDPZIaJ5+ZSA/YQgXic8GRKu2Teg2k1Y092SL7 tJPqn06g8ckCRM9ukgmyiafBDkNhVo2ORSt+8p42BiZPmISYZjrZgZOHswjbPFtyNjO6y6m 3gHyRHdDN9arvoU3pF6yw== X-UI-Out-Filterresults: notjunk:1; V01:K0:NnwlQ58S8vQ=:1eWq+JHloSLppKc/PUy5fS cIPi+JlqcCOKSSspOs0XPT3BDyjzkbgoFWlxMmUeTBP9ZX14ArPfzPy8lq8uCx1V5FG1SFQXa uh8SqC/mKbZA4xMhwbrI89XXSzRWWdTo7R1SSGO8U6x36Ziw0hofRmwdc4LN2S39sJaPe/3n0 2cc4vQOFutjv60HDWDxbXTjfBcoJWMZC2lPcdX/U/juKQ7YSxqT5MhU8c1bVAj7BMW2I8B96v SlF7EdxvLZeWo3Ayyq+D0YHF/NRe7uav1apAdVHdrJEZ9W63KDQv4jOipdZpVCh5RbtjiFeYw j9h+jO0SThY2EOQyAi8zQOI+rJLorwp0g6U3USmRuBP2FDrPm8BBvooSLvxHrw7VIwt3ei9Lh z2vAdtBLen894taBcFkQYzdbfP0apVDyIz1SC5r7946WfrM3EUf+k/sCRz5NmhRxUp0b7KLZp z1+OdJDWJ/A5EWWMGCV4cnDhVRGm8raSYnRR6mwZcGOwH76sdWiAD3o10cQ5m2tT8rD+rA9TV a7Kl6knJCZC9Vg3rog+UuuHO1+oxZudcMNRt3u1/HzKMe9LhXO1MHncGzzDc6ZTIT0KIuNW1+ ejweazpWa/d0cofvogOlwjY/yMTpuuc+8ls5l3QFsQ/EHZwkQ9If5/+0dDB90MfurcQA06B9Q IbZ+5BZnYAykuFZdOr59lkgXN/nzSYsNCZhaFyJKz/F5fAxFP4dSfhbcdw3ZWZ+OcKSQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160624_023953_338545_82C45B73 X-CRM114-Status: GOOD ( 15.35 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.24 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.24 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Lee Jones , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org I stumbled over the cpu_is_u*() function in ux500 and decided to see if I could simplify that code a bit. I ended up with a significant reduction of code in arch/arm/mach-ux500/. The new version is compile-tested with lots of randconfig builds, but I did not run it on actual hardware, so it needs to be tested by someone who has access to at least one of the machines. I had an earlier series to cleanup the ux500 platform data, and this is based on top of those changes but should also be easy to rebase as a standalone series. It's probably best to merge both patch sets as a single branch for v4.8 through the arm-soc tree, provided the testing is successful. Patch 6/7 is the only one that should be user-visible, so please review carefully if the change is desired or not. Arnd Arnd Bergmann (7): ARM: ux500: move l2x0 init to .init_irq ARM: ux500: use CLK_OF_DECLARE() ARM: ux500: remove cpu_is_u* helpers ARM: ux500: consolidate soc_device code in id.c ARM: ux500: call ux500_setup_id later ARM: ux500: move soc_id driver to drivers/soc ARM: ux500: consolidate base platform files MAINTAINERS | 1 - arch/arm/mach-ux500/Makefile | 3 +- arch/arm/mach-ux500/cache-l2x0.c | 67 ---------- arch/arm/mach-ux500/cpu-db8500.c | 124 ++++++++++++------ arch/arm/mach-ux500/cpu.c | 148 --------------------- arch/arm/mach-ux500/id.c | 116 ----------------- arch/arm/mach-ux500/id.h | 144 --------------------- arch/arm/mach-ux500/platsmp.c | 1 - arch/arm/mach-ux500/setup.h | 11 -- drivers/clk/ux500/u8500_of_clk.c | 16 +-- drivers/clk/ux500/u8540_clk.c | 16 +-- drivers/clk/ux500/u9540_clk.c | 4 +- drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/ux500/Kconfig | 7 + drivers/soc/ux500/ux500-soc-id.c | 222 ++++++++++++++++++++++++++++++++ include/linux/platform_data/clk-ux500.h | 17 --- 17 files changed, 326 insertions(+), 573 deletions(-) delete mode 100644 arch/arm/mach-ux500/cache-l2x0.c delete mode 100644 arch/arm/mach-ux500/cpu.c delete mode 100644 arch/arm/mach-ux500/id.c delete mode 100644 arch/arm/mach-ux500/id.h create mode 100644 drivers/soc/ux500/Kconfig create mode 100644 drivers/soc/ux500/ux500-soc-id.c delete mode 100644 include/linux/platform_data/clk-ux500.h -- 2.9.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel