From patchwork Wed Sep 5 19:37:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 10589339 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 25316175A for ; Wed, 5 Sep 2018 19:37:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1248D2AA34 for ; Wed, 5 Sep 2018 19:37:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04BF92AA3C; Wed, 5 Sep 2018 19:37:46 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 926C82AA34 for ; Wed, 5 Sep 2018 19:37:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 69F616E53F; Wed, 5 Sep 2018 19:37:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 449A36E532 for ; Wed, 5 Sep 2018 19:37:42 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id y207-v6so15869321oie.13 for ; Wed, 05 Sep 2018 12:37:42 -0700 (PDT) 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; bh=4APqHNciYZjZS3EugIoFs9GFE85Jl8bHAT/cKmZ9y58=; b=kAfmyRAGdos5tlhZ29lwoFCV5z8va3pEw1yddyBZfIRaO0n7vw+ORiZg43umW+YE+O BBZkA0eIbHNN/KJMWbbbLqFWRjc87MRh2zpHx9BNPwoHgD3EN8M2tsQ61QTFRq+Oc9Fb B52LAE+ASQmk7EhGzu9kcvz7RaZRPdeGd9EoFDTvTEUc7wvYXG8ZYZJ2z0ox+k6vUSEZ e246GHp4I/9yBB5Ar6M8vnM4SQxT/CjUTjaRNXvEWozBr5BfGaKfy/oxtsoskQ1j4AoC iv4heQqHVeL30DeP1KP0fxI27jM27hyMnNYlkOf5caI7mVQ5F/7CYVtWOk6Voel5i0dP Ndrw== X-Gm-Message-State: APzg51ClSH+5t3HFT7yDDn2jRU5745r2OkWx2d3JN91B9T92bS4WZlTP VnS0q+H09fNBVb5c3Y5Ktw== X-Google-Smtp-Source: ANB0VdYvbIYoBZ9f2BtttdNY9AmkVGIM+oNDjHTZljQbfq9Mr9aAzgV5JKb9HySdPry0/gKPHonhwQ== X-Received: by 2002:aca:b585:: with SMTP id e127-v6mr30608185oif.119.1536176261256; Wed, 05 Sep 2018 12:37:41 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u21-v6sm2296053oie.22.2018.09.05.12.37.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:37:40 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/21] DT cpu node iterator Date: Wed, 5 Sep 2018 14:37:17 -0500 Message-Id: <20180905193738.19325-1-robh@kernel.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Rich Felker , Catalin Marinas , linux-sh@vger.kernel.org, Vitaly Bordug , Palmer Dabbelt , Will Deacon , dri-devel@lists.freedesktop.org, Stefan Kristiansson , "H. Peter Anvin" , linux-riscv@lists.infradead.org, Frank Rowand , Thomas Gleixner , Jonas Bonn , linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michael Ellerman , Magnus Damm , Russell King , linux-clk@vger.kernel.org, Ingo Molnar , Mark Salter , Albert Ou , Bartlomiej Zolnierkiewicz , Aurelien Jacquiot , openrisc@lists.librecores.org, Borislav Petkov , Ley Foon Tan , Stafford Horne , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, Michal Simek , Stephen Boyd , linux-renesas-soc@vger.kernel.org, iommu@lists.linux-foundation.org, Simon Horman , nios2-dev@lists.rocketboards.org, linuxppc-dev@lists.ozlabs.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series adds an iterator for cpu nodes and converts users over to use it or of_get_cpu_node in some cases. This allows us to remove the dependency on device_type property for cpu nodes though removing that from DTS files will have to wait for some time. In some cases, this makes the DT search more strict by only looking in /cpus child nodes rather than any node with the device_type == cpu. The iterator also honors the status property which is often forgotten. I've only tested on ARM under QEMU and compiled powerpc. Rob Rob Herring (21): of: Add cpu node iterator for_each_of_cpu_node() of: Support matching cpu nodes with no 'reg' property ARM: use for_each_of_cpu_node iterator ARM: topology: remove unneeded check for /cpus node ARM: shmobile: use for_each_of_cpu_node iterator arm64: use for_each_of_cpu_node iterator c6x: use for_each_of_cpu_node iterator microblaze: get cpu node with of_get_cpu_node nios2: get cpu node with of_get_cpu_node openrisc: use for_each_of_cpu_node iterator powerpc: use for_each_of_cpu_node iterator powerpc: 4xx: get cpu node with of_get_cpu_node powerpc: 8xx: get cpu node with of_get_cpu_node riscv: use for_each_of_cpu_node iterator SH: use for_each_of_cpu_node iterator x86: DT: use for_each_of_cpu_node iterator clk: mvebu: use for_each_of_cpu_node iterator edac: cpc925: use for_each_of_cpu_node iterator iommu: fsl_pamu: use for_each_of_cpu_node iterator of: use for_each_of_cpu_node iterator fbdev: fsl-diu: get cpu node with of_get_cpu_node arch/arm/kernel/devtree.c | 5 +-- arch/arm/kernel/topology.c | 6 --- arch/arm/mach-shmobile/pm-rcar-gen2.c | 8 +--- arch/arm/mach-shmobile/pm-rmobile.c | 2 +- arch/arm/mach-shmobile/timer.c | 10 +---- arch/arm64/kernel/smp.c | 2 +- arch/c6x/kernel/setup.c | 11 ++--- arch/microblaze/kernel/cpu/cpuinfo.c | 4 +- arch/nios2/kernel/cpuinfo.c | 4 +- arch/openrisc/kernel/setup.c | 3 +- arch/powerpc/platforms/4xx/soc.c | 2 +- arch/powerpc/platforms/8xx/m8xx_setup.c | 5 ++- arch/powerpc/platforms/powermac/feature.c | 51 ++++++++--------------- arch/powerpc/platforms/powermac/setup.c | 15 +++---- arch/riscv/kernel/smpboot.c | 2 +- arch/sh/boards/of-generic.c | 2 +- arch/x86/kernel/devicetree.c | 2 +- drivers/clk/mvebu/clk-cpu.c | 4 +- drivers/edac/cpc925_edac.c | 20 +-------- drivers/iommu/fsl_pamu.c | 2 +- drivers/of/base.c | 43 ++++++++++++++++++- drivers/of/of_numa.c | 15 +------ drivers/video/fbdev/fsl-diu-fb.c | 2 +- include/linux/of.h | 11 +++++ 24 files changed, 111 insertions(+), 120 deletions(-) --- 2.17.1