Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp289542ybi; Fri, 7 Jun 2019 08:06:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK6WBavdYGwVfMsQhEmhSPJZ4WnM9Cj09qgWTSpsVimKrrEyGvVQ9c+G/H31DCxR40ewgb X-Received: by 2002:a63:5211:: with SMTP id g17mr2900323pgb.405.1559919997989; Fri, 07 Jun 2019 08:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559919997; cv=none; d=google.com; s=arc-20160816; b=Ji/enNG6gGsKropR15/gvZqxvPglmN/IJjnwIVpervqloV56AxC1rUjuJatR6zJDjt 0sz5n0tk1GHrchC9uk0yCS6v3eJATFEDA4Yjq9892n+hPWDxvQyPU9Xo/wjvKHWju8Xg Qsdejt3Lt/Rj6TE1A2MR3pNL7pQGwTRZzyzv7AsF31z7s8PhDynM2V5zuQHTCM1L776J McHHPtr15fBVQzc78QyysT7zVmSuNysENc3kXEXpyedemUPN0RyKOPGp0nqK5q9aESpR 1XmTiT5lcGlfcUOjGlBIBr/FGoPfdlJu4sdLQluVtkHSWeAcWt2tA8xXJUr4IJzozL9h cZNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=el1ILKbAnGXJ3W2KP1aM4QRqIxijA1f64xaJFCwmbtU=; b=WzQg/ONfSCuA9JDHPOxY3WNLmgh1LgSUPRCYU2xGvmy5VeuofLGp5OrpDQrium4sj/ L2yZvOBk/dqjsUnTjrfp+rw602Zccj8aFKwtjQ13d+Am6qy269EslYVKs3DC8qP6sER+ R9aRxoukMfN5Rfnt44fihfXM0fqqT16tMJoNXA/2RlCtakN3Liy/Ogb93R7phyUNhrJQ pC6Sp3eRnsB3iSmy5Q1KPj8+MemKJUaqpdze/AthK+7+ECXWgnFfg0hQ0YkjuHUGy4AD RsTB6H9hMC1olVbtyrM5o7zs4JVSIBTjzE1diErdTpfZzivEPbrlm/CDdmUVYWW2btGI fihg== 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 k21si1885065pll.425.2019.06.07.08.06.20; Fri, 07 Jun 2019 08:06:37 -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 S1729660AbfFGPED (ORCPT + 99 others); Fri, 7 Jun 2019 11:04:03 -0400 Received: from foss.arm.com ([217.140.110.172]:42060 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728464AbfFGPEC (ORCPT ); Fri, 7 Jun 2019 11:04:02 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1051D367; Fri, 7 Jun 2019 08:04:02 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 407813F71A; Fri, 7 Jun 2019 08:03:59 -0700 (PDT) Date: Fri, 7 Jun 2019 16:03:57 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Lorenzo Pieralisi , Mark Rutland , linux-arm-kernel@lists.infradead.org, "Rafael J . Wysocki" , Daniel Lezcano , "Raju P . L . S . S . S . N" , Amit Kucheria , Bjorn Andersson , Stephen Boyd , Niklas Cassel , Tony Lindgren , Kevin Hilman , Lina Iyer , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , Souvik Chakravarty , Sudeep Holla , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Lina Iyer Subject: Re: [PATCH 06/18] drivers: firmware: psci: Support hierarchical CPU idle states Message-ID: <20190607150357.GE15577@e107155-lin> References: <20190513192300.653-1-ulf.hansson@linaro.org> <20190513192300.653-7-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513192300.653-7-ulf.hansson@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 09:22:48PM +0200, Ulf Hansson wrote: > From: Lina Iyer > > Currently CPU's idle states are represented in a flattened model, via the > "cpu-idle-states" binding from within the CPU's device nodes. > > Support the hierarchical layout, simply by converting to calling the new OF > helper, of_get_cpu_state_node(). > > Suggested-by: Sudeep Holla > Signed-off-by: Lina Iyer > Co-developed-by: Ulf Hansson > Signed-off-by: Ulf Hansson > --- > > Changes: > - None. > > --- > drivers/firmware/psci/psci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/psci/psci.c b/drivers/firmware/psci/psci.c > index 9c2180bcee4c..b11560f7c4b9 100644 > --- a/drivers/firmware/psci/psci.c > +++ b/drivers/firmware/psci/psci.c > @@ -316,7 +316,7 @@ static int psci_dt_cpu_init_idle(struct cpuidle_driver *drv, > return -ENOMEM; > > for (i = 0; i < num_state_nodes; i++) { > - state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); > + state_node = of_get_cpu_state_node(cpu_node, i); Ah I spoke too early, it's introduced here. Can be part of earlier simplification patch, but I am fine either way. -- Regards, Sudeep