Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5183759imu; Wed, 19 Dec 2018 07:01:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/XE1l+l2OcKxdD4BNBZ7UhrDT0C1fT1sZsxSehsv8Gi1p/mc/EmeZu/k/gwzuRqPX5bDgoc X-Received: by 2002:a17:902:142:: with SMTP id 60mr21168693plb.330.1545231706759; Wed, 19 Dec 2018 07:01:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545231706; cv=none; d=google.com; s=arc-20160816; b=0Rm4/v5Ykgum8o2w/9dsChKBN/z3srG5yvQAsjlgzhLsTlFM6UNqpaA+p5LH2r2ucj D8v39xMXGAR2ocgqlVwJCEjiPl6kS9OMEpV85Nj2VqahW2vnw/3xiZv3sR0WzslmAWSe kgrAdV1fzGVyA6VsDzQasG61Nyi2VIjuXDTRAHhzu3SR8vhx9k4KkZJ71BdMLt8OaSJ7 hDKkWUG/f4PZGYTjMCPrfBKQbzN1E4OIqqHIDXetEwhxJu5HbvUgnMF55ij5YURDsAQw poIndVg+OVYASCd4YFHzuigZFmr3stMOcM7naM9pLYA5pdIfB1EDQgTVdgk1aq1MkrkT njMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=MJgigoAEMRh0bL7kvRBa2oK6duFi0d/HTVCR+ewvWPY=; b=J3AJ7Zx4bauSFE1K+DwO9Or/EP1yEpBWzLd6hk2rGc+yGp6o8F3y5HRRcj8bqpIBHY tmxT9vzppN6UnWurRTijODsMv6MLjQ8snm5C8Q/zwmEiK9uOKmqCTDCADW6obdNirCZM qAYJpQ/lKpCyyUYDGQADDuDwaJzEnVKTHm99TknvSHI0FHVxxqLAI7GfOIFvY8Bof6DX YbYPNQqFEd3pyMlN6/wtju+g2mbbTlPLqS84zsgmOvYIHxm2xShHzbSnaJBtUJKRYV55 nwnnIzHrWeA+7Gi99bTM7jcs3/PEB+tYr8qXumLI67qk9Ms9AcfszeA2gsW9G8c79NKX NiSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="B8aD/Kvm"; 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 z6si13128326pgl.109.2018.12.19.07.01.28; Wed, 19 Dec 2018 07:01:46 -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="B8aD/Kvm"; 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 S1728748AbeLSMLO (ORCPT + 99 others); Wed, 19 Dec 2018 07:11:14 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35941 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727841AbeLSMLN (ORCPT ); Wed, 19 Dec 2018 07:11:13 -0500 Received: by mail-wm1-f66.google.com with SMTP id p6so5899719wmc.1 for ; Wed, 19 Dec 2018 04:11:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MJgigoAEMRh0bL7kvRBa2oK6duFi0d/HTVCR+ewvWPY=; b=B8aD/Kvm88qVdxu7bJxpA4AspuneOKh8r9RPhZ17P3b0JYxbxLbyJ3D3k5OUkVbn69 VLudeH0ZKSB8AwyYo/BZ3d9EbyVwhB3dyJLqWI2GOuNZVvNRfS6xgnFv0TJSLtkYcQUi 3BUnmkKIIMGva2hL5M0J+yuuD6lef/JZv8BOI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MJgigoAEMRh0bL7kvRBa2oK6duFi0d/HTVCR+ewvWPY=; b=Qq8ZjCFoSCY1XwfcIZpyxqqoYERF8sk9X0cKgE7a0kWAPTTxtIsyAXgUzFrqpOErx9 dubJxebToWXPNu5lUkkXjy5S0UQBIy0UrToJRm9UdXzGU094h+2dSQwJesGBcpesDgZQ 5cMaNyTWqeSakrJMgPtVBdnUeal+SiAMlqf4bMAA6DLwVDbHW/qK9n3pnI6ND76c7iCU Bdw0glHsvrl2p3jadF5fJN5oKDeRgmzjMpWCQTV+1EDMdmhR3qldHx4lWAzjO4gSBIVC +X5hbvbYCyA8K1vpE1rl8Woh7IBk960SjSTK5hMjhSeI7C2RWb7iPSzomF01tZUNDOv9 4Blw== X-Gm-Message-State: AA+aEWabjwakt5XQzsD+c87O6a4efrJf6fNiT2vz4vqMGeoXZwvJ3MKX oGc3wQ8u9mbl+4Roh1ChwqNXtQ== X-Received: by 2002:a1c:aad2:: with SMTP id t201mr6831123wme.148.1545221472026; Wed, 19 Dec 2018 04:11:12 -0800 (PST) Received: from [192.168.0.40] (197.26.136.77.rev.sfr.net. [77.136.26.197]) by smtp.googlemail.com with ESMTPSA id l19sm5411096wme.21.2018.12.19.04.11.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 04:11:11 -0800 (PST) Subject: Re: [PATCH v10 13/27] drivers: firmware: psci: Support hierarchical CPU idle states To: Ulf Hansson , "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , linux-pm@vger.kernel.org Cc: "Raju P . L . S . S . S . N" , Stephen Boyd , Tony Lindgren , Kevin Hilman , Lina Iyer , 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 References: <20181129174700.16585-1-ulf.hansson@linaro.org> <20181129174700.16585-14-ulf.hansson@linaro.org> From: Daniel Lezcano Message-ID: Date: Wed, 19 Dec 2018 13:11:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181129174700.16585-14-ulf.hansson@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/11/2018 18:46, Ulf Hansson wrote: > 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 > --- Fold it with 07/27 ? > > 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; > > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog