Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4831498imd; Tue, 30 Oct 2018 08:04:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5fnngpVQ8D9i1zPKmpMPF6+fIk7t/Ojo5wdvL0HSUPEPv2fXjlSJ2U+IR7MrtrSTT4JgB4w X-Received: by 2002:a63:6643:: with SMTP id a64-v6mr18108875pgc.15.1540911841821; Tue, 30 Oct 2018 08:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540911841; cv=none; d=google.com; s=arc-20160816; b=CPqOlftNS+LiebGlPyOp56/tnjGGeaVSWWVOinpi1FX574DawwmBrjH7Yt6Ne/M/Fy cSwe1CKvKh8UuljZglMZU2mxI71YjStpCHB4JbURCBrYIlsbgFcb6N8ebwF6OQLw62xV S0eNjU4yIeodGao0FqwcsiJZKW3Q9NEPguoi3n6Gj8hCin7qB0V2l86x2cp2PumfR49z sEHv/1vqlj/+PcemlTwopnbSj3+e8f2XLEsT9MybUxSpa8UZRkXSXgw0BHqdO2m1DhV7 5seZ60IUGaaCjFtev1H11uyj7h9dFnLnIpE+ChV38BGIZGtZRttlcN+u8sSqRn1Y3t/y OVxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Hc+hlHS3aRqyDEd1NfDRRTBYE0yYIaFyC57wsxwYOpI=; b=FRndfllbn+mPDSRtdYyvd01o0uTj7iiUt/ahQQhqX6T3xiPelgcWCuO5ZjXA8A0wBk JQCnfHWxmfSDwcEiWrC7EJYXHFOMZ7r02aBZme4SHYnR2SUx/3chtEoVndUE9PrQb/3D oKZQam5Edt8tMCj4rhgf1ZRRO/LnUc6yUWZAAU6ZuVIteQ9CMj3k1CqADZc8jH2IlNS3 BJKCo0YYHBMxdVQ0nh5TuvsWjLnQ4a6ZQKXX4ZbvIJzIHa8Mcr6syh2JN61MaOsVZ2B+ OIehojCpPNgcakclypkPgxyKujXnGaFK2xtiEqZarjTdgQxi0VPp1a65/YZLwPcuudQn ZfBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ngqvoVqC; 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=pass (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 a8-v6si23279387plz.94.2018.10.30.08.03.34; Tue, 30 Oct 2018 08:04:01 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ngqvoVqC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727531AbeJ3XyU (ORCPT + 99 others); Tue, 30 Oct 2018 19:54:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:39900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbeJ3XyT (ORCPT ); Tue, 30 Oct 2018 19:54:19 -0400 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD1F62080A for ; Tue, 30 Oct 2018 15:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540911631; bh=Hc+hlHS3aRqyDEd1NfDRRTBYE0yYIaFyC57wsxwYOpI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ngqvoVqCSBhB+J5HbBcWWUBK++pQ7yhgMHjacsF9SHSWm98yElwMezH2HEbqNrvIN xsAj1QZtfMb2l2gNhvuMSHa0mzuHKvm6k3Sj89o/SFRldzQFjp7QphU8jP5/XtXsaT UMgj5jzxAphg3mWcQOTkBMB1FnD9hjPynN6ToN6M= Received: by mail-wm1-f50.google.com with SMTP id q12-v6so8938664wmq.0 for ; Tue, 30 Oct 2018 08:00:30 -0700 (PDT) X-Gm-Message-State: AGRZ1gJ6rYa1itpYkvQB4+2qLAPoBU1zrEZoIq1jCZdlApPSchmefN46 fjQFMWfu1SMfRG843KG1wOdO8O2LQiUvlX9r01oXyw== X-Received: by 2002:a1c:b20b:: with SMTP id b11-v6mr2081584wmf.64.1540911629267; Tue, 30 Oct 2018 08:00:29 -0700 (PDT) MIME-Version: 1.0 References: <20180905193738.19325-1-robh@kernel.org> <20180905193738.19325-2-robh@kernel.org> <874ld3jz6v.fsf@concordia.ellerman.id.au> <871s87jz3g.fsf@concordia.ellerman.id.au> In-Reply-To: <871s87jz3g.fsf@concordia.ellerman.id.au> From: Rob Herring Date: Tue, 30 Oct 2018 10:00:17 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/21] of: Add cpu node iterator for_each_of_cpu_node() To: Michael Ellerman Cc: devicetree@vger.kernel.org, Linux Kernel Mailing List , linuxppc-dev@lists.ozlabs.org, Frank Rowand Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 30, 2018 at 9:20 AM Michael Ellerman wrote: > > Michael Ellerman writes: > > Hi Rob, > > > > Sorry I missed this when you posted it. > > > > Rob Herring writes: > >> Iterating thru cpu nodes is a common pattern. Create a common iterator > >> which can find child nodes either by node name or device_type == cpu. > >> Using the former will allow for eventually dropping device_type > >> properties which are deprecated for FDT. > > > > Device trees we see on powerpc generally don't (never?) use "cpu" as the > > node name for CPU nodes. And many of those device trees come from > > firmware, so we can't update them. > > > > So dropping support for device_type is a non-starter from our POV. > > ps. presumably that's what you meant by deprecated *for FDT*. Right. > But anyway just wanted to make sure we are on the same page. Yes, I was aware at least older powerpc DTs don't use 'cpu' for node names. Rob