Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5554422yba; Mon, 13 May 2019 12:55:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdB75VtEkhdzphbNZIoU8lE7tAKLjWIjxsxmP4ElccbWDuN71vj+pqSysyRL+NScEsHD2Y X-Received: by 2002:aa7:8f22:: with SMTP id y2mr24215554pfr.22.1557777345282; Mon, 13 May 2019 12:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557777345; cv=none; d=google.com; s=arc-20160816; b=Sf6DleQv9YMB17UomAbGrDsZCERxj9fHEe16Rpff4IHSEM10+yIQsWfB2q561eJWXs sfpyWKnaRdInz+7M/ie69gEW+Mf6pfT0QrVLslLd3C+icTfwtggiqRZiO/43ghLDrDBx o2mKGdP5tqCC22v+BD7PKEtlyVYL+4zrev7KI43g3XRJdmWbbTOUqnJqzr29MjVd/zRd YY9dL7J7vcbbjED0tcv8/m7fzLQjtyVVuSd4ye7kGL+7hrmgzlLIWHLf/gyRwilxS1Es uvBaGc7y3t11YwDWUfxscszFxnni/MKSqxNj5lYRLw3gbzbEzug5t8oESJxsER9+9CKd 3jRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Nbt/R0uZX9P8HTLZOOX7O4bQjSSh3KmuxEw/gJfnJ0w=; b=ycOmBEBkKWUofxCBErFETm8NGoa8KqQHua2an6pcr0wkGGcgQRqEFCPkYs24BWZYUu twCZNXt0FyGyNWqXydwbLZKiCt60ReP/Ep+FB7LYXLtWvzMou66u+15lOSsd/TTgliD0 C0S8wsrtxmW3aX+XH3ko8/LChbo1/ExDiwTOUr6u1nyfO7eqoyHxWqIhKoc8KrfUHbSR O3PCkHbotkI4D9n2UNv4bIqxiJT5h9F2FMYkg0r0MW0fMWyM8jlSjKP/CuyOk2DpO1Wl 69ypez0SZHVRYdd3zr8YXbjF5aZNwgZ3FhVHg7Mfd6+rsLMaO0g33JGs0QMhMZLG/5Bw MbTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c9ATK+kF; 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 d80si17677451pfd.9.2019.05.13.12.55.28; Mon, 13 May 2019 12:55:45 -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=@linaro.org header.s=google header.b=c9ATK+kF; 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 S1726748AbfEMTZO (ORCPT + 99 others); Mon, 13 May 2019 15:25:14 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40768 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728721AbfEMTXT (ORCPT ); Mon, 13 May 2019 15:23:19 -0400 Received: by mail-lj1-f194.google.com with SMTP id d15so12062073ljc.7 for ; Mon, 13 May 2019 12:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nbt/R0uZX9P8HTLZOOX7O4bQjSSh3KmuxEw/gJfnJ0w=; b=c9ATK+kF7r7EPNbGkGdt7Bm63ADC4YHAW78L6XgGCewkxmYTEtG+L0LG2PjuZOY9P6 GIc/wvpLNy0UH3lkOe6ZFzROaxSq6yzGyHcvnwD2CRd7HZc2KPc2eU2Qqjw/+V6Y/odG 8g1QUs5Jnsr58ljysRy+9dUb1w4F/dykHejwWNEfEpnjahvDUevoLs2Q6KSLe41qv/kt 0zP1wQEuDypoCPrKTbmlS2icrt04INJA7iFSJ5TpXPM+7IfemYXsH5ks1f1TIKzK3DDH bHfdYw7ILT8JPAFLDWe6W30v1tHH6XaC6WnzwDnPcwbc/4E0bjVz5MHKP4astQUCxbqu Hwvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Nbt/R0uZX9P8HTLZOOX7O4bQjSSh3KmuxEw/gJfnJ0w=; b=PE/Od1TwwJGll7p4MAKVq3Pah8XohuclNWC0y3lqXGWPRk42NtrkY3xuI0w6ylqrti Wjht73Twy4SvfljOKANXEp6ZUkIOCAdlHoCzlZ+P1DwIR0Heb5kKpuvsJNsfvECmLPFT 7cAGAUZISoZyNCluDoszmTHrYuSrGeO49ZvsSlOI6Q/wpZVow+vASpQ4q3GD9weNqKGy TYpOtuM5z4l7fTI7wyoFUSfKueoHOj0blwsP+DVINcMMYGuDFxR1dILgmCoXIz1f28wF OwWR6+IU4KRx1lRsBca47o1tEKAcFinBDBAZegRoGEDe9jEVmSw0uA755cBm6tHqSzBU ml/w== X-Gm-Message-State: APjAAAUIhW801INR74UpXpLasHcD3jRKBg0qVwEHUZtdNyh9ep7Ir7RO FIia+JzqAgYdwN7IoUS6k1+IIw== X-Received: by 2002:a2e:1312:: with SMTP id 18mr4211531ljt.79.1557775397083; Mon, 13 May 2019 12:23:17 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id q21sm3449365lfa.84.2019.05.13.12.23.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 12:23:16 -0700 (PDT) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , linux-arm-kernel@lists.infradead.org Cc: "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 , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Lina Iyer , Ulf Hansson Subject: [PATCH 06/18] drivers: firmware: psci: Support hierarchical CPU idle states Date: Mon, 13 May 2019 21:22:48 +0200 Message-Id: <20190513192300.653-7-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190513192300.653-1-ulf.hansson@linaro.org> References: <20190513192300.653-1-ulf.hansson@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); if (!state_node) break; -- 2.17.1