Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1646imm; Wed, 5 Sep 2018 12:41:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdautajTQxjmr9ttJ8iXoGavVAH8gEWxi6x4OF7tJux+XjXCYSK3uI19Yf3BYmuYuQjZzUxk X-Received: by 2002:a17:902:583:: with SMTP id f3-v6mr40491306plf.115.1536176500059; Wed, 05 Sep 2018 12:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176500; cv=none; d=google.com; s=arc-20160816; b=JahZ6DBRXyLvNuvUVfHu8fZTofw5ozfmtodRqlwf6WhtkYIl91vKzVsQ6xtj+cr6GR tYsjFeZ8DgPFIqC5rWPL/XR6qlH5VWwjJedFsyCXIqE/VeQdExpRLs0DfMoLXz23PVZk p+ltGc2HxEpmjwMjP3QhZIZvGtQQpMktMk4MKuAo+NALdYBccSTOQrugLMhSThLFo3sE XSnTYAhgSj+hLp5qyyYy9jprMbWrGlIAYr2EYWT0j9a7ArfodQm010Dy2w2birxWIFYe J1QmKZH+I+KUjBgYjq0nUKaYWk5no5tITLmO46EPYXGHNQDebYXFuFItf872BDGw/KRH LbYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=4APqHNciYZjZS3EugIoFs9GFE85Jl8bHAT/cKmZ9y58=; b=YIoG4x4A1eZtaddc+I3EseRdoh4ytVnHfQIZkIOho12vs2mLBKYPImuR6IpEFdVH/t trZy5nQ8BtuNGcBf0OJN5Ye/I9/I659S1/GcNQtRTjPrzo/MpiGzmPTcVVBq30z5x1+k 0gmBtfBmHsbBaULvk72h3mS/iklpaaxWzbp6t0yTceH3r28wFpj5sSlVAG2+qAV4lyp/ Xabkt5oZLlXf+oMVQiUDUIbxS4ALBC23e05JMgcYyCJjZ0cExVh818cqszmB7r696aQB dos6mQwCXZ+sUd+IEvtkqi7ZoxMrjayV833+67sJrJ+Red0U0OF+wq4jPcq9640ft7z8 zGXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8-v6si2809052plk.222.2018.09.05.12.41.24; Wed, 05 Sep 2018 12:41:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727962AbeIFAJV (ORCPT + 99 others); Wed, 5 Sep 2018 20:09:21 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:40273 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbeIFAJU (ORCPT ); Wed, 5 Sep 2018 20:09:20 -0400 Received: by mail-oi0-f67.google.com with SMTP id l202-v6so15923528oig.7; 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=SZR9PvClDsDB4FjK+15f3f0vqxbGc2elukEFxgPQBsv6DdvxUh3SfmrzRZecDXvkGx XSnftPD3kPfyvbNY3hJOtzVd9CQJBwQdjEVo2BQQAAtxsLEluOCZnSTaWuwFSStjBdLs aykkX090YpBWSS+5ypPFQGc4JQHAIc6ZwIYO4tbrv0R7UOS3Vcpm9cfIDFcIrlx6YceY K47o7Ubtn8PJ3fvifEJwGRsdw501LA4s+6HYMqjIxVfSakyn4Ug2K3U8L+Nh5lgx9IQe c/lH5fK2dw/+v1E+8GLpzu2ZvyXRD2YL51Y8FdgpE8F+UzbfIswaVL5g2knWZWOAsFLh 03mQ== X-Gm-Message-State: APzg51C5Q+Xhc/wgWmhng5nkCc1k48s92shNsnfMtUIyVGcmMXltY2xa pYVyUkSPxtGZzeIrePUlahK0/Xc= 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 Cc: Frank Rowand , Russell King , Albert Ou , Aurelien Jacquiot , Bartlomiej Zolnierkiewicz , Benjamin Herrenschmidt , Borislav Petkov , Catalin Marinas , dri-devel@lists.freedesktop.org, "H. Peter Anvin" , Ingo Molnar , iommu@lists.linux-foundation.org, Joerg Roedel , Jonas Bonn , Ley Foon Tan , Magnus Damm , Mark Salter , Mauro Carvalho Chehab , Michael Ellerman , Michal Simek , nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, Palmer Dabbelt , Rich Felker , Simon Horman , Stafford Horne , Stefan Kristiansson , Stephen Boyd , Thomas Gleixner , Vitaly Bordug , Will Deacon , Yoshinori Sato , linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-clk@vger.kernel.org, linux-edac@vger.kernel.org, linux-fbdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-renesas-soc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-sh@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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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