Message ID | 1521046715-30683-15-git-send-email-ulf.hansson@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BBDA4602C2 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 14 Mar 2018 18:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACA4420952 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 14 Mar 2018 18:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A100622376; Wed, 14 Mar 2018 18:12:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C65320952 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 14 Mar 2018 18:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DmAlHlULcfSNmdd7eEF0p6nqyfLOxfeIuyHmnCarqKg=; b=WDn9Uoupzy1dE831hA9urPFZqF wKOFLCct8SQa168wpLH6S6C365dhz4xR3kjYodEgrAVUCtBxO382w49Dpn9aB1pEcC8DVd6SCPRFt KrlcEamJ2aTKqBReE2/U4tXlq/kShhZAD3Z4bjWT3iumOuV6ejE2m9t9hrMFPD1nFlN9TxvsSF3kA GYbmy1g0L1CfX+IhCyluUXQh7PFlrL3oLwWIDeen9G+QbpqNztJVqPYsTH3tDPTYNASXjNPleu5ZL vpTY4K6ppHbG2aVv4qfAyTEufYZb9XavV70OOEnTaiDLj9mswe3sJmtHmzJuur0A4dAD6u22ScL7L JEINsbXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewAtI-0000ov-5r; Wed, 14 Mar 2018 18:12:44 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewAqZ-00064J-6S for linux-arm-kernel@bombadil.infradead.org; Wed, 14 Mar 2018 18:09:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=noP03dTVE/dG12N4mOws/4QMhMXSC6OgsTnjw22R1Bg=; b=xOcs0LAH7QxtRz0I+P5FBI1pf NDGK45O/E8WZGYtyC2/oNd/ViUIJ9kXvGZ0/b3ELRk12Pz7mwRuB+8n9MlUGTu156fH7vTUCBzmKX 6q8KrdlpQZvQU7rjgILjn/HLhjSgaDgWaaX13aGGhJj7wh17xXOrYFeGA2/vtInk/nCa4v9jP6hQS vn7kUoNc9gVvgCtc6G2k/WZziWYy7Th8EJlT0PR8zMq1RCHk3WRpJ4pM8XFx2Qh+GWMLMZ4D9glpG 5G8JaWryvVjxWW3bphl0emfhHk8g4z7aS7A1GMIu20KugW0BuUfFzmFpYy3eZe+eP4yCf5EljpT32 CbALXHdPQ==; Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew9kZ-0003Ru-Ta for linux-arm-kernel@lists.infradead.org; Wed, 14 Mar 2018 16:59:40 +0000 Received: by mail-lf0-x241.google.com with SMTP id m69-v6so5852260lfe.8 for <linux-arm-kernel@lists.infradead.org>; Wed, 14 Mar 2018 09:59:29 -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=noP03dTVE/dG12N4mOws/4QMhMXSC6OgsTnjw22R1Bg=; b=EmxaaiMmxZdK7+FI2z2ZfZXXL4BzvOW4ZkDEdDJq5pTUP53KXWFRYCFJJgi/ipweWu wdhtR4rcTm4oEho+QpemCnU7h2N4YFKNOPrvST2kPytvSaPQ3AoBliCYclH8Fw74jVTZ vaNs8+3cjx07W68fNAHXTKhUZsoG6ufcYGBaU= 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=noP03dTVE/dG12N4mOws/4QMhMXSC6OgsTnjw22R1Bg=; b=E2UFjiq1f4ywRWga3MjSY7SUHI74Nunp37c/U+CLbBQRgHN/jctOINyx/zkPovSvqd Fa3zwx0uMKVAA18g7Mdc7FyD8a7q5zAEzPhmHIjOk3FJkB3q8AbwlfDQapqYqEQJDxmg +f9UTwkrHCJCMikynEnrP1SwVsEhpTNlnUt65OQdOQKJqTsOjprCznfB3m02SfFndAZD ew5/qp1F44bJJwo/w1+fi4NSTw1peJmmKGHmLlCyZT5V0vRKNWiKIGHBvBoIhDc4cxbv csxkaZZ98ebsPLid8Ksr74+hb7jZKL6NscA9FfdL2DHoT+q74lIPMbtDoupsWcyMyLnZ UMIw== X-Gm-Message-State: AElRT7GdCI2Ar5Wg+t712lEd345zD1hivQbR1L+HMl8K2uMqYh3QNm3h 1+ce5UjG9Uw7D2fDzri5vWxzlQ== X-Google-Smtp-Source: AG47ELtwuG3YokhXiELvebmymrYGi8ufIkfwPTNLxSUnbKG3WIjYpOzeaytos8BOox34lTJ09JKEWQ== X-Received: by 2002:a19:1cc4:: with SMTP id c187-v6mr3805279lfc.44.1521046767969; Wed, 14 Mar 2018 09:59:27 -0700 (PDT) Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t24-v6sm724849lfi.30.2018.03.14.09.59.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Mar 2018 09:59:27 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: "Rafael J . Wysocki" <rjw@rjwysocki.net>, Sudeep Holla <sudeep.holla@arm.com>, Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com>, linux-pm@vger.kernel.org Subject: [PATCH v6 14/25] drivers: firmware: psci: Support hierarchical CPU idle states Date: Wed, 14 Mar 2018 17:58:24 +0100 Message-Id: <1521046715-30683-15-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521046715-30683-1-git-send-email-ulf.hansson@linaro.org> References: <1521046715-30683-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180314_125939_985211_1E6EA3C8 X-CRM114-Status: GOOD ( 14.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Ulf Hansson <ulf.hansson@linaro.org>, Vincent Guittot <vincent.guittot@linaro.org>, Juri Lelli <juri.lelli@arm.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Kevin Hilman <khilman@kernel.org>, Stephen Boyd <sboyd@kernel.org>, linux-arm-msm@vger.kernel.org, Daniel Lezcano <daniel.lezcano@linaro.org>, linux-kernel@vger.kernel.org, Lina Iyer <ilina@codeaurora.org>, Rob Herring <robh+dt@kernel.org>, linux-arm-kernel@lists.infradead.org, Thomas Gleixner <tglx@linutronix.de>, Lina Iyer <lina.iyer@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 9788bfc..256b4ed 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -294,8 +294,7 @@ static int psci_dt_cpu_init_idle(struct device_node *cpu_node, int cpu) struct device_node *state_node; /* Count idle states */ - while ((state_node = of_parse_phandle(cpu_node, "cpu-idle-states", - count))) { + while ((state_node = of_get_cpu_state_node(cpu_node, count))) { count++; of_node_put(state_node); } @@ -308,7 +307,7 @@ static int psci_dt_cpu_init_idle(struct device_node *cpu_node, int cpu) return -ENOMEM; for (i = 0; i < count; i++) { - state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); + state_node = of_get_cpu_state_node(cpu_node, i); ret = psci_dt_parse_state_node(state_node, &psci_states[i]); of_node_put(state_node);