Received: by 10.192.165.156 with SMTP id m28csp2604895imm; Sun, 15 Apr 2018 05:02:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx48bphGib78dksHFub+/8vB087sldkKIIYUcLRbCjvwlcoS4j96zukD5E4ViuVfUG/En3a5b X-Received: by 10.101.70.72 with SMTP id k8mr9453888pgr.402.1523793674727; Sun, 15 Apr 2018 05:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523793674; cv=none; d=google.com; s=arc-20160816; b=iw0ZEkPr6tiX+RGHZKdHzxHSX7ngoVqhOd2aXAU2OvZkLOI4MUE2lEq8dq+A0ylGe2 JMGB6GpmwnXuSyRtsNjc/Fr8d9qBD8rt+FG89jcX7dzPY8IkdfRsqoCCbuVhXPBYHUqM nfae4+IT49H5K7SG6hS0cM0uCTgwXgaKA84k+TEownAaWaSRxbOYPlHFUECEv1ulqaO1 0fgAAwnMMOKPNSW6jqAISpOro0k575gTrOjE0+s+fWTwcRYd6omL1bThRI9QXONmgFhO 1s8bB8HWEoSj/OHRjeEfdYXSua5h/N4S7XV6EiM/kyaokO9rNTqLrpyCMpuYmFjokMOV rbzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=uVDW0PRZNrauAiy3BsU1YNPUrnUxsUWazrJ81FeO88E=; b=vTnL63stpQOGBeN7ikwkgnI4m4EnmjA5Nw0o6x8eK1KakS2OCqzTIn/I3MQI4vm79h nkW9eyNgGtRDiItJcGOxuAM//EEfqtEbdO9MD4/We3BuUHPo4Ea2+QF71pV8jvyizbSF +8C275eTmmOQZKEaK51m5rtD/WHZg1OrG2tYkSuMKj634yF4AaM2wqIYK/Qd2LFFdZKt kA6SJGBDKsZhqUHtmc/m2tWGMq38rPb15oOsJ+17mXxfXP48CjosK854UDlckH8HLAG5 rLo1jesqeB/oNEcNwc8+s0UBtB0SZxck3S+cYh8EApI7T2nB/WN4fEfqo2r+5UBhk99J Qd0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fUX4IzZp; 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 y14-v6si10035485plr.314.2018.04.15.05.01.00; Sun, 15 Apr 2018 05:01:14 -0700 (PDT) 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=fUX4IzZp; 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 S1752311AbeDOMAA (ORCPT + 99 others); Sun, 15 Apr 2018 08:00:00 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:40148 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751789AbeDOL74 (ORCPT ); Sun, 15 Apr 2018 07:59:56 -0400 Received: by mail-it0-f65.google.com with SMTP id u62-v6so8261315ita.5 for ; Sun, 15 Apr 2018 04:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uVDW0PRZNrauAiy3BsU1YNPUrnUxsUWazrJ81FeO88E=; b=fUX4IzZp/fb7a0OvYa2RAeKIY/tGzzmCtAGFBSqO2VUGK2fySY0QZJPW9CwLj4JBbu FZ8E/5sOfqxp3n1jCvEVHquu+YY+D5iBiiYUMfLJhtvzCCS4OMBTNYo0YAqzfwZCEhdE XNW4GseOw6Y56T8xmW8tIVmQt64wpHFQOKou8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uVDW0PRZNrauAiy3BsU1YNPUrnUxsUWazrJ81FeO88E=; b=Ihc/ItM7RHMOMq+gwFB43AS2nr6ESlsWwvHY+hbRYAGDPYp2Unq8P9u+ZPnXw7Yv9x 9nAt19VAoMCI8bWfiOdxkBtbaRABOrHq8aMGfdgWvfchFHzG+lMPg8Zvw/CP53+nB7Yj y6ylqdlPdLb0LbtJVbM2JqFaaZKIEb9Oc99iSTJlNbv9ympObTiQ+J6Of9Pwoxf8Y5vp tvKhCNzQIchIx3Upy/k/NLeROb3fmYlrpDIagDQZS6nYj64OEe+/gpWuZm86cgnh3kpl NnQHUylyCjR92vTeRWg6EYCHgb0XoJ70tAGXL0ZdIYG2xrQ+L4DNEaz0YM4bCYqj/UE7 w+Fg== X-Gm-Message-State: ALQs6tANLpGd96WiXs6eecD8Gm1doJPk74WXWYvv9CL+VPo5SfsO3Ysr 4PclHWsaUybQy9mpPEf189VHGT04qwZTvC5Tca2avg== X-Received: by 2002:a24:6983:: with SMTP id e125-v6mr12466889itc.38.1523793596078; Sun, 15 Apr 2018 04:59:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.115.74 with HTTP; Sun, 15 Apr 2018 04:59:55 -0700 (PDT) In-Reply-To: References: <1523531671-27491-1-git-send-email-ulf.hansson@linaro.org> <1523531671-27491-12-git-send-email-ulf.hansson@linaro.org> From: Ulf Hansson Date: Sun, 15 Apr 2018 13:59:55 +0200 Message-ID: Subject: Re: [PATCH v7 11/26] of: base: Add of_get_cpu_state_node() to get idle states for a CPU node To: Rob Herring Cc: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Mark Rutland , Linux PM , Kevin Hilman , Lina Iyer , Lina Iyer , Daniel Lezcano , Thomas Gleixner , Vincent Guittot , Stephen Boyd , Juri Lelli , Geert Uytterhoeven , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-arm-msm , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13 April 2018 at 17:05, Rob Herring wrote: > On Thu, Apr 12, 2018 at 6:14 AM, Ulf Hansson wrote: >> The CPU's idle state nodes are currently parsed at the common cpuidle DT >> library, but also when initializing back-end data for the arch specific CPU >> operations, as in the PSCI driver case. >> >> To avoid open-coding, let's introduce of_get_cpu_state_node(), which takes >> the device node for the CPU and the index to the requested idle state node, >> as in-parameters. In case a corresponding idle state node is found, it >> returns the node with the refcount incremented for it, else it returns >> NULL. >> >> Moreover, for ARM, there are two generic methods, to describe the CPU's >> idle states, either via the flattened description through the >> "cpu-idle-states" binding [1] or via the hierarchical layout, using the >> "power-domains" and the "domain-idle-states" bindings [2]. Hence, let's >> take both options into account. >> >> [1] >> Documentation/devicetree/bindings/arm/idle-states.txt >> [2] >> Documentation/devicetree/bindings/arm/psci.txt >> >> Cc: Rob Herring >> Cc: devicetree@vger.kernel.org >> Cc: Lina Iyer >> Suggested-by: Sudeep Holla >> Co-developed-by: Lina Iyer >> Signed-off-by: Ulf Hansson >> --- >> drivers/of/base.c | 35 +++++++++++++++++++++++++++++++++++ >> include/linux/of.h | 8 ++++++++ >> 2 files changed, 43 insertions(+) > > Some reason you didn't add my Reviewed-by from v6? No, I was just sloppy. My apologies! Kind regards Uffe