From patchwork Mon Dec 30 14:43:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 182621 Delivered-To: patches@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp6422289ild; Mon, 30 Dec 2019 06:44:20 -0800 (PST) X-Received: by 2002:a2e:9095:: with SMTP id l21mr37935092ljg.175.1577717060389; Mon, 30 Dec 2019 06:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577717060; cv=none; d=google.com; s=arc-20160816; b=nWrg0cbIpWI/1vrzQetQxvOFzB9mI5sw4YbG/pixK6TZTWZGVWKqHJ80CG+AvYRFTL PKWnWzmb1hmYkXXP7iBSgVG1nelff/wNM1CsC1KrzWdk+GXZubpJxOducUKZBxd6CNV+ O90xvwxw8aUAfr5haMeg/pGd5gDHHvUxpm19VJ8Ns5++sht+Z0KzKPLG5hkszcJs4V7q QmQoc29o4lw266ogFUGjlBfGpuDGSrOEKMNgS1EuvE65tgixs4etDA6MqwWhcM8OaS/8 XXCqDs0dWOjwts6gYZSbhe3KBTqa607d9MJVKq9Dxbhl9Nv1pZZaZWF4lwYlmllJmd0k czaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8v5xuPr2EJ9DSJyEgwYWHNaPW3NhmJIKXs9ahA/QI14=; b=S5KdFXrlUuoH0vktzbYxgd8isA0sXwpbxSiDe8atGM9Iq/YvVZleoQgqFeTdW5LZZT AuNeJ87vHQeOVfWhqyxp18WOfi/NB19xBLWK2DQrW9LLpE0Bc9nvnKsPKLGqnpjkOEtf DXo2FJ/pAd96w1ij0jEfwxVn4RflPmvvXpmRKQ+tS8yGRovStHONsylA6AUHPW65zwSc dAoo7QuUYq4JMPtKHhdMJW1hEmpxw4xEHYWUsZC0yXbtUjE75hRVni9LfOVqvaccBEr2 DBmfu4VvNQqh0fn6v+E0rXr4GSOQkTwP9H4QyAr8HuNOn2eAlD945Wm9CXJdbueB1Zli xt4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gaWhEs8b; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e26sor19379997ljl.37.2019.12.30.06.44.20 for (Google Transport Security); Mon, 30 Dec 2019 06:44:20 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gaWhEs8b; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=8v5xuPr2EJ9DSJyEgwYWHNaPW3NhmJIKXs9ahA/QI14=; b=gaWhEs8bCTWDjEkiGpFUqwqn0GmNDQFWOkn0x0TuUvrI5mbmBk//3DIZtLQXKs5geY qZOvtle3WhKIeLFP4Jf/SaYuFwlcYSLHPyMWs99zDm1lmL1hR/5wxeqoI69Ti0korIh5 PmfFnwSLudQzFF1yugoRk7BpHN/tfDHzC9mmEwDiapNhF41HUTHdedRqODqM7S96A6uG bt7yFtA39kFLXZA+CCjihGvjyrxenBf/EJsQG9XvkaoZqTB4ZRdiGl0cms+egMgnp6W9 3zvKcfSuVKP3GLgFldKd0Ef/fh2TRxoLjaDsk8sD4a993+4iZ9mAKuW783awGHt96mi7 Mcuw== 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=8v5xuPr2EJ9DSJyEgwYWHNaPW3NhmJIKXs9ahA/QI14=; b=dgJ0LoD5bLddFTimgrnHz6ihNjoWV/ojNb36RMTW+NQeer6kWY8cPCpIZRT+0nYN9q Y0c2XwgzMzSHh61L7qKd4XgqMVVumqWf8jnlULLGapYSCtNKBz0SZNiQAE//QWakGysX /5GHmyarZ8zqXFFOCPei4XeLuYSibRW2AyCOynzgsaZ3PTyx2se67yHyaG5Hoc2cnkdk aHc/u60om42Fs4uTSIznxeHYFbyDbaMOeEtexs2qQEZOdau4pLKZ2QPjhx071O10ayT0 rQbUbNmevqFWAfKquy+9sQmqKMwp4vorIqpB99gVYfZoHVkkg066IJpwIndSS9H4bosd XTeQ== X-Gm-Message-State: APjAAAVDEMRsKJwbx+C26ydQtMYe4Z4rDdQ+jY/XurdOeLx6lVqEy55G phFqUOWp5QPK/qt4esasbwMBGUxI X-Google-Smtp-Source: APXvYqy2psF+SHAkdnmFnQHEnt8nfdz54W8h3uR+uQcrYtNUivkQ5xNld+aRPQg4nCP0yfXDA3vZcA== X-Received: by 2002:a2e:b1c3:: with SMTP id e3mr38270940lja.137.1577717060097; Mon, 30 Dec 2019 06:44:20 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id a21sm18744931lfg.44.2019.12.30.06.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 06:44:19 -0800 (PST) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , Rob Herring , linux-pm@vger.kernel.org Cc: "Rafael J . Wysocki" , Daniel Lezcano , Mark Rutland , Lina Iyer , Vincent Guittot , Stephen Boyd , Andy Gross , Bjorn Andersson , Kevin Hilman , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v5 07/15] cpuidle: psci: Support hierarchical CPU idle states Date: Mon, 30 Dec 2019 15:43:54 +0100 Message-Id: <20191230144402.30195-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191230144402.30195-1-ulf.hansson@linaro.org> References: <20191230144402.30195-1-ulf.hansson@linaro.org> Currently CPU's idle states are represented using the flattened model. Let's add support for the hierarchical layout, via converting to use of_get_cpu_state_node(). Signed-off-by: Ulf Hansson Reviewed-by: Sudeep Holla --- Changes in v5: - None. --- drivers/cpuidle/cpuidle-psci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c index 761359be50f2..830995b8a56f 100644 --- a/drivers/cpuidle/cpuidle-psci.c +++ b/drivers/cpuidle/cpuidle-psci.c @@ -86,8 +86,7 @@ static int __init psci_dt_cpu_init_idle(struct device_node *cpu_node, return -ENOMEM; for (i = 1; i < state_count; i++) { - state_node = of_parse_phandle(cpu_node, "cpu-idle-states", - i - 1); + state_node = of_get_cpu_state_node(cpu_node, i - 1); if (!state_node) break;