Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4781397imd; Tue, 30 Oct 2018 07:20:59 -0700 (PDT) X-Google-Smtp-Source: AJdET5eQsU4mEcrc5DODdEhEMgOmm9/h6vloAQu67x4BteO1FRt2a5icGrY5KDJ8dyFcwSKDWKOg X-Received: by 2002:a63:7f0e:: with SMTP id a14-v6mr18190873pgd.296.1540909259649; Tue, 30 Oct 2018 07:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540909259; cv=none; d=google.com; s=arc-20160816; b=JxX/O8Fo9vsXc7G7Yet3mt3SuvEzJf9aj+S2pPZ9q7tNSlxHoMZuq8Qgwox0ntq8r5 2t89xoA86uGy9r//lpwoN3LrsHTfQqfrxd3kUn6lUc4Pg97XaZhifcq0QLFe6KQxubaq 7d+BrR6CcQlGYQYjVkCcm4hz2fAzQn/a2BOdoQsr5TLhkh6RqGlFJSJFy/yEJZSzwoIF 8T5JyxoTCSUi+Yy2CQ0x5wM87JiJte0iiCMO8BlMb1cpM06R3qHH5Wl3AQw/XjjAJw0s tHnWHUYTwH8vhnafuSEk3OrzwYJFu5tkyPD35s/IoJpLyfVmaO0iRxJqIRsJN1xbHPA7 95Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=Qc7fooTYNHQP7AQbqphdtjAJ2shbJrFQK+dKFgd/Xw8=; b=IyqCJBYo0OLj4Sg7h1h2S7OzfgTny4/11GQXFNWfebzZk7/S1oVThy4OBJ6aIb4nqJ Zgk2vO5ojaDrP4HeIh8oi/YMIDWbfjdfn6ogDvkL0Q3Fui2gHmyBrXI+gwlNDyknGOAl 1BZEAS5goMYUe2u45b0dYDclxNvaXbp0nlwwRCtod42GXlGPPfoYLv+qmQawj2bmNG/0 OqJFRTrIJXC0gWr6vzrrmFfJJpKyaovsAdbnCFX+TM/oY3EswhMLF0bfyh1BNC2DMqF2 YIKGLEpoGKslRocWpUXn0N95I/JxjNvsf3rDHJMvn8MeeJR+4dOSotVK3kToiuHS28TB s0SQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11-v6si23083941pfm.141.2018.10.30.07.20.42; Tue, 30 Oct 2018 07:20:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728253AbeJ3XNr (ORCPT + 99 others); Tue, 30 Oct 2018 19:13:47 -0400 Received: from ozlabs.org ([203.11.71.1]:46031 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbeJ3XNr (ORCPT ); Tue, 30 Oct 2018 19:13:47 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42ktsK1JKDz9s8r; Wed, 31 Oct 2018 01:20:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Frank Rowand Subject: Re: [PATCH 01/21] of: Add cpu node iterator for_each_of_cpu_node() In-Reply-To: <874ld3jz6v.fsf@concordia.ellerman.id.au> References: <20180905193738.19325-1-robh@kernel.org> <20180905193738.19325-2-robh@kernel.org> <874ld3jz6v.fsf@concordia.ellerman.id.au> Date: Wed, 31 Oct 2018 01:20:03 +1100 Message-ID: <871s87jz3g.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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*. But anyway just wanted to make sure we are on the same page. cheers