Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2763814imu; Thu, 29 Nov 2018 09:50:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/WRWGLRHpJ9F1/Nq5rlObYuccVv3S+Juh5DRDDOxCF3mzx9ioxjHGqY7gI7tcTfp0fvxBHj X-Received: by 2002:a17:902:b68d:: with SMTP id c13mr2423297pls.102.1543513834409; Thu, 29 Nov 2018 09:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543513834; cv=none; d=google.com; s=arc-20160816; b=XnRry2hvEl3tyMsjntb54CnDVMVywVAkOD+NvbRruNHmxBfoJfxb/cLbVDCNZde/0p 5p3ehi2aOW5qrE2Kq1OVpaXZ4zb0ZrCLAhBywRWD6kAZIlUTi69/eALeX5Gr/Lp0EZRT KFDzqP7AJo1/7QD6DNHKVK7cDu4OYiBzcDuBWHk3vm31TXvIAdqk8yxMYNUatDc0BGPI qaoLDIRMQ0WXjxD6P3CDIvatMi3cLO2KGXxjE6DLf9cZFJmXIytKmXLm0+mEs/SzIvW/ 0PU5BgEW/r6nNVMAL3Aq4+sCVrrVCFHhlavGh/cij6U2hMnft9719qTFSaNlueUvc2V3 /oCA== 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=jX+qyQO49fWmt2xQpGUjw4NJQ/8bkzUinDH9qdTMnUA=; b=oA5gCKaa8bWZSN1NwDYZPTtzRdI3ZagG1leU4jSfE/6OWToVzpz/pBs6UMcHXgcvpu DkLCK9RTG3GGnApHMAtAUuBToVl00ASNZUGd2/zxN2FaRiDmvRXpUMna4wVkpPEKuljp FPFA0CyaSWW5WoTwg5Ts6tQ0PK5yN4sPcjDNtaEoY3uQz8en+dZC7gSZYgnpkS7LrEST NG3+uv8KVVpU6ybjvcqJ2/w+vl+aw5KWXN42KbxYq19VBYxhwkqgQpwVP0w/j7KxK6wG iH9bjAbe2LJwUiVLf979Ew/Qt/1yLar3gMxm9iV2uLSsAJVNkqS1yHVmAZUTZXcyRaZt HDpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AlPyEsAy; 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 z186si2513573pgd.90.2018.11.29.09.50.19; Thu, 29 Nov 2018 09:50:34 -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=AlPyEsAy; 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 S1730958AbeK3Exn (ORCPT + 99 others); Thu, 29 Nov 2018 23:53:43 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45474 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730942AbeK3Exm (ORCPT ); Thu, 29 Nov 2018 23:53:42 -0500 Received: by mail-lj1-f196.google.com with SMTP id s5-v6so2508493ljd.12 for ; Thu, 29 Nov 2018 09:47:31 -0800 (PST) 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=jX+qyQO49fWmt2xQpGUjw4NJQ/8bkzUinDH9qdTMnUA=; b=AlPyEsAyB5TTJCSeRQDcqsvnIKB/rMfm0oTmlQA7hqOgZ6aMDexyWveeYmPE2QdbmV BmJIUeVUEo68Z1RYBp5Q7w/uSp5wPfc9ZHJqQtiE1cMsCCV0zIMnnI1fU3CrzA3sf76y BhqVyyrcH5tH2VK3YAUp3EhPfLgCuB7n6fgBg= 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=jX+qyQO49fWmt2xQpGUjw4NJQ/8bkzUinDH9qdTMnUA=; b=HRZVkWDvu35c4VPj7lfbDnA5WtaEd/bzvu/11J3ZlfS4jeLEe6irTFawl/VmJSIq8/ 2BCc4j/IZVC5KHyauzBN8mal7zkD5lo9lHmV/TyjOgrgBl00NhFjOWgtGAAkI1dWbcW6 WjPCD5CHWuoTCwhSCDoeLV+htO9D0TH94A/MsZqWq38Nv1N5Lc9N0SzrJKuJbAvTLwQi ZR7yGSB4j4j56u7f3S8ehCnLyQbju8OgWbgF7q8NNaIBohudPi+QI6X4hxbbPbrphu+D 7bwm2Ar4qvPik7aYtvma8nbSGwTVOzzYrJiQPVa9Sy8+qGoBkVJuEI1cmML2jVJpijvf Isgg== X-Gm-Message-State: AA+aEWbWKEuCQpcsQZ84cZOu1PamlfGM3SERcoxsUzuW2lOcB+MlYpvO qzrN5+ZefjMD0rZZhusA+duqbQ== X-Received: by 2002:a2e:5b93:: with SMTP id m19-v6mr1512841lje.115.1543513651192; Thu, 29 Nov 2018 09:47:31 -0800 (PST) Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id j76-v6sm393983ljb.12.2018.11.29.09.47.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 09:47:30 -0800 (PST) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , Daniel Lezcano , linux-pm@vger.kernel.org Cc: "Raju P . L . S . S . S . N" , Stephen Boyd , Tony Lindgren , Kevin Hilman , Lina Iyer , Ulf Hansson , Viresh Kumar , Vincent Guittot , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Lina Iyer Subject: [PATCH v10 13/27] drivers: firmware: psci: Support hierarchical CPU idle states Date: Thu, 29 Nov 2018 18:46:46 +0100 Message-Id: <20181129174700.16585-14-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181129174700.16585-1-ulf.hansson@linaro.org> References: <20181129174700.16585-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(). Cc: Lina Iyer Suggested-by: Sudeep Holla Signed-off-by: Lina Iyer Co-developed-by: Ulf Hansson Signed-off-by: Ulf Hansson --- 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_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