From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753133AbdHQPsP (ORCPT ); Thu, 17 Aug 2017 11:48:15 -0400 Received: from foss.arm.com ([217.140.101.70]:52298 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850AbdHQPsO (ORCPT ); Thu, 17 Aug 2017 11:48:14 -0400 Cc: Sudeep Holla , linux-kernel@vger.kernel.org, Rob Herring , Frank Rowand Subject: Re: [PATCH][RESEND] of: return of_get_cpu_node from of_cpu_device_node_get if CPUs are not registered To: devicetree@vger.kernel.org, Rob Herring References: <1502727520-5635-1-git-send-email-sudeep.holla@arm.com> From: Sudeep Holla Organization: ARM Message-ID: <11afa843-01c3-145e-8c0d-49c143b1f01d@arm.com> Date: Thu, 17 Aug 2017 16:49:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1502727520-5635-1-git-send-email-sudeep.holla@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 14/08/17 17:18, Sudeep Holla wrote: > Instead of the callsites choosing between of_cpu_device_node_get if the > CPUs are registered as of_node is populated by then and of_get_cpu_node > when the CPUs are not yet registered as CPU of_nodes are not yet stashed > thereby needing to parse the device tree, we can call of_get_cpu_node > in case the CPUs are not yet registered in of_cpu_device_node_get. > > This will allow to use of_cpu_device_node_get anywhere hiding the > details from the caller. > > Cc: Rob Herring > Cc: Frank Rowand > Signed-off-by: Sudeep Holla > --- > include/linux/of_device.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Hi Rob, > > You have already acked this patch, but I wanted you to pick up this via > your tree and hence I am resending it. I tried pinging on that thread > but I can understand that it's lost in your mailbox :) > Gentle ping! -- Regards, Sudeep