Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5079247imu; Wed, 19 Dec 2018 05:22:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vs1RPOcTogfZmOJgrM4fnta7W/s90V7x0r8xOkfVs9vpzfi9+a+kIKzKaswOQ9RaagJRrX X-Received: by 2002:a63:f811:: with SMTP id n17mr19852085pgh.23.1545225724914; Wed, 19 Dec 2018 05:22:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545225724; cv=none; d=google.com; s=arc-20160816; b=Y1+kDUrcHf5pgou99yVHr9eudRUg9UmiU1aaHKHbla/KYdXRcwmxE0H3J4MgPSC2W9 QTe3phVlfnY2iWIHcKE8Qx6F6RfitvwV5tIWplQWSBaYMyZcc14MmBMamunY9OmhvK7g YBsddnrMzgcYBTzCxZRMtv4bhzhJx6WTKWRrkB2R/jqRmpUHK4WpdfccvB/zNrcdE/rU Ex/R4t0WWAEp2zxzRVsL+lh62w+VWOU1YO++eymRXvSfgEs86QeTZNPpOta3khd41zU8 QYlsZNQ3HEJ4+OSSh/dJ0S766KaeOSF+/twzxkmqc+WK+VKtDXw19JNcfqdjgV1aP09x 4DIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jcFIssZ5uCnxarSbhhjy8lOdqNazHu2rLSIxhH6ZZ94=; b=qJYGI+XsWu/8aIYNJb/AsJ7DSUY0tgzkeOWt4tHNhagvbXrJscIU3ou7J96v/uZSDj snyYTmerDswXdT0VDTDjmRNCZCJ2PTa6bvyVdlycUP386kTrmFKf4ix0kCbO9dp4bA4I Y9XtQZRqTDpyJuaxulKL/Vb1gMCpaINMz8rccRVS46grbHZICNfBrssJwyPoQWkxzVD6 fOI1AMMZg8bHSkNtCv4tu9hh3iZeS6gLGCVcr63FT9+vSpLyHJ6HGx9dfi2Wza+vF7tT DDgtj4GDpgPXC+Wz7krXm3FSfGnMos3Ska4YaJoQUVA0MORskGnvB4nX1R3vyGe5oXMb GtiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P4zdV+V7; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si12766455pfw.200.2018.12.19.05.21.48; Wed, 19 Dec 2018 05:22:04 -0800 (PST) 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=@linaro.org header.s=google header.b=P4zdV+V7; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728443AbeLSMyC (ORCPT + 99 others); Wed, 19 Dec 2018 07:54:02 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:42601 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbeLSMyB (ORCPT ); Wed, 19 Dec 2018 07:54:01 -0500 Received: by mail-vs1-f66.google.com with SMTP id b74so12152702vsd.9 for ; Wed, 19 Dec 2018 04:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jcFIssZ5uCnxarSbhhjy8lOdqNazHu2rLSIxhH6ZZ94=; b=P4zdV+V7D+kJ2OqmDWA+6CaNThu6p87cXk7tzR7cPP1nzGV/PgkkxXFWRpE22BGrCz kKUh7dMorNC16o3ZrXj/gLY//viyUdiS6zJlPQDjByvZz1QdSiJ5ctp2sTaCVNRZwAov +wejvtkYQLzZ9l27zP0bRucJFRuPmU3Fh08s0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jcFIssZ5uCnxarSbhhjy8lOdqNazHu2rLSIxhH6ZZ94=; b=seJ/P0/NSFxInYZUKQWlyD/Cw5FYr/Btv3sEAZ149f4brHHB7oxBgZ3Y+XZWU5EUjW XFnZ/O7fOPsGS5DGj3ZrLfWO40GzyzpGngX+ks7rRYZnfCR1B7apknSXLCYkuPHBb7iW +aAuRLlO8BTQDIXC878hypU2XfPh2ZCCE01Nj/lQdD8xlZ7XxGpd954becLpVgRpPpEW H81ifRHCIoP6vO5Io46g3syc1MOPpPD5l2SR7RqVIaf9qwwTCA0ytmvwdJ5O+Ll1HGgj OdJzQKabD1KK69Of4/EDjvjtY2pdlekkSPIdke54IJnIoWx3nbOj7uxiSl8XT4+r3nPX MlGQ== X-Gm-Message-State: AA+aEWYx8urfXarw3+6cSCvAzWcTcKWDgA/f1LmxDbgmjpnoQjvIvWQZ bdvaubc3+P24kQiwzzKQ+Rmfby9SBp6h2hL6+Wh2qg== X-Received: by 2002:a67:b245:: with SMTP id s5mr10207107vsh.200.1545224039014; Wed, 19 Dec 2018 04:53:59 -0800 (PST) MIME-Version: 1.0 References: <20181129174700.16585-1-ulf.hansson@linaro.org> <20181129174700.16585-14-ulf.hansson@linaro.org> In-Reply-To: From: Ulf Hansson Date: Wed, 19 Dec 2018 13:53:23 +0100 Message-ID: Subject: Re: [PATCH v10 13/27] drivers: firmware: psci: Support hierarchical CPU idle states To: Daniel Lezcano Cc: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , Linux PM , "Raju P . L . S . S . S . N" , Stephen Boyd , Tony Lindgren , Kevin Hilman , Lina Iyer , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , Linux ARM , linux-arm-msm , Linux Kernel Mailing List , Lina Iyer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Dec 2018 at 13:11, Daniel Lezcano wr= ote: > > On 29/11/2018 18:46, Ulf Hansson wrote: > > From: Lina Iyer > > > > Currently CPU's idle states are represented in a flattened model, via t= he > > "cpu-idle-states" binding from within the CPU's device nodes. > > > > Support the hierarchical layout, simply by converting to calling the ne= w OF > > helper, of_get_cpu_state_node(). > > > > Cc: Lina Iyer > > Suggested-by: Sudeep Holla > > Signed-off-by: Lina Iyer > > Co-developed-by: Ulf Hansson > > Signed-off-by: Ulf Hansson > > --- > > Fold it with 07/27 ? I can do that. However, normally we try to keep changes that touches different subsystems, separate from each other. Of course sometimes it's not possible and sometimes it just doesn't make sense to separate changes. Perhaps the PSCI maintainers and Rafael can give their opinion. Kind regards Uffe > > > > > Changes in v10: > > - 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 cbfc936d251c..631e20720a22 100644 > > --- a/drivers/firmware/psci/psci.c > > +++ b/drivers/firmware/psci/psci.c > > @@ -300,7 +300,7 @@ static int psci_dt_cpu_init_idle(struct cpuidle_dri= ver *drv, > > return -ENOMEM; > > > > for (i =3D 0; i < num_state_nodes; i++) { > > - state_node =3D of_parse_phandle(cpu_node, "cpu-idle-state= s", i); > > + state_node =3D of_get_cpu_state_node(cpu_node, i); > > if (!state_node) > > break; > > > > > > > -- > Linaro.org =E2=94=82 Open source software for A= RM SoCs > > Follow Linaro: Facebook | > Twitter | > Blog >