From patchwork Wed Nov 27 10:29:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 11263765 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 55B656C1 for ; Wed, 27 Nov 2019 10:29:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 339D12084B for ; Wed, 27 Nov 2019 10:29:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="F6S0qqMG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727125AbfK0K3b (ORCPT ); Wed, 27 Nov 2019 05:29:31 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43104 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbfK0K3a (ORCPT ); Wed, 27 Nov 2019 05:29:30 -0500 Received: by mail-lj1-f193.google.com with SMTP id a13so672509ljm.10 for ; Wed, 27 Nov 2019 02:29:29 -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=pCpbFgjGEgfPklFZJxNcT3sX+taTfAQr4roju7E3lrg=; b=F6S0qqMGVu24iWB5xlEUSenjorh1CqR7WhxPvplxFREi9q67F98DX7cpAJ0g1E3MEG x2OgkDcfshrPloOeK6km8it8DJciTEPHEKCPWYCEJgDI7fd8OhHudj7Wu4ZThoWMAjk0 +BSufJfudRGkRs8vxAs1hjbf7XsUFeSbpJgvCwtyxAqe7ZboPbj8K6QqqZk4aNFAlxqD EFrKZ7dQwLv6pcbRk/6RXsBH9zT557UEKXxHVX4LXIY7NnK/eZmRJb9qIPgKCwiG8uko Oov56PJE88Y/KVECS1Wbg9wwXvvSPUJYZFt8UZ7ui5CX2WJsFUq0pdp0NFWzt5/TUmOW ZaSA== 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=pCpbFgjGEgfPklFZJxNcT3sX+taTfAQr4roju7E3lrg=; b=N2JV2Q790wm5MLgm7oZZTvfyOLj9ebS4qF6p+K5jamTTMR9gjAZvZ1cuvQ0k3LkMQj W9q3oNodlApixuWFXBlJe2ofK/WDritC2sRpvn1aW+QtlIsqTfJkiyN5Qcw5R/Abl0nk ache1Qts3pA3VLUZiMaYyOQEoYuxCTl6g2aXyrDKkS6l3PqJrXfAdbAprKSQMWlh/BLq L1iB0yPUJSCDc08CiQ4PstPnn9QfBqxNNtRT2uVn4jdo9nKT8fpw86VQJEJ0tRA2nObC cWiISnFeTlUqXqS0/e7HkpDP7xPVVoeo/CRQAkyUIgpD0HMhLjiH7ojS+uYod7cnWZQO 1FQg== X-Gm-Message-State: APjAAAU2lw71r7KSpi8gLrVmYUJ5XPJS2dXAZBjPTlY4mZtAg3UFKZE1 /90O36NHCZ6QE1omcoDwMnj7wg== X-Google-Smtp-Source: APXvYqzTXEyPT0SJHyyvevP9BWE50w3KY6/GovtjKu17I96JMN6sVEEIl4LfjTP/gkozAdXLVnmHfw== X-Received: by 2002:a2e:9083:: with SMTP id l3mr31130772ljg.127.1574850568391; Wed, 27 Nov 2019 02:29:28 -0800 (PST) Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t9sm6868260ljj.19.2019.11.27.02.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 02:29:27 -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 v3 07/13] cpuidle: psci: Support hierarchical CPU idle states Date: Wed, 27 Nov 2019 11:29:08 +0100 Message-Id: <20191127102914.18729-8-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191127102914.18729-1-ulf.hansson@linaro.org> References: <20191127102914.18729-1-ulf.hansson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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 v3: - None. --- drivers/cpuidle/cpuidle-psci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;