Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2079721yba; Fri, 10 May 2019 06:04:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmf1r/j+Iba5q8WQBnqQlz2sZOgnITDkrIC0qd0MSavCFknw9HpF3lIdIgmG6h9Ayw9Oxg X-Received: by 2002:a63:6988:: with SMTP id e130mr13574694pgc.150.1557493451988; Fri, 10 May 2019 06:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557493451; cv=none; d=google.com; s=arc-20160816; b=CPhvQ0uIV8l5BkTy1S9KotT24OgzxCLwGYOCLK6VGGfFBTz4inCz8hJzLD+avXG4bm I+lHiK0KNntDY55COqNYbit7DAMjo+aBfGFWoLsAEZGewl2EcYvpcOBSjUQk2Ye+cWRY FAyyMNpTVOrERj8Qz2wI6mxScfCsDLEjj/f7UVYgtKoNJAihFKFeGp8bC1pyaoSyItVy 6sFsWNHdvdPxq3v+xOGnPfJjKr64SUAK3eahk0Q2hDDnByT11GUvaF4w+7DXuxMPC8NI 0lUNW8Z1DbvQSsCwe66lp5INfoL5Ue7DNwqcqvWrIqgaJkWewx06fuiUp1FWH6cuu5Mi 1I+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bgUxZwv4vJ3lqJeR/v++NaOWobcdFyM9GspakpIitbg=; b=MbIbxSxCAb25U9RToO4H8czKq4t8MCTRHbR6S931Uvu3Cx2rqAAReDs4Bd8UF6DbWu JqcF37ACf2AbViRNrPI6ubAy71jKCkx5XkKQkPEPrE/DokK1wgsUMRVviZi58CSFWH3d kbLBQcDLXm5VNOkJBMlsDAZBFVcBb85w8LUtlL7Yl/XzFIcMdlH9dTYKIaH1jO6V2nvm h73v6DIMEsXppFT9coyTs8dVeMrLf9m7/kWWyesiKWhoHgJnn1+rehPPwuZeM4FDTBJi QcR/j7qLqduHGmNhkqOBOx6WTorvfLKBRnnYq8gAYAZWLu6fU0uQLUaHgF6xgKesxS3B UEyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si6496397plt.9.2019.05.10.06.03.54; Fri, 10 May 2019 06:04:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbfEJNCp (ORCPT + 99 others); Fri, 10 May 2019 09:02:45 -0400 Received: from foss.arm.com ([217.140.101.70]:46622 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbfEJNCp (ORCPT ); Fri, 10 May 2019 09:02:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DBFD3374; Fri, 10 May 2019 06:02:44 -0700 (PDT) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1AA5B3F6C4; Fri, 10 May 2019 06:02:42 -0700 (PDT) Date: Fri, 10 May 2019 14:02:40 +0100 From: Sudeep Holla To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.org, David Brown , Li Yang , Shawn Guo , devicetree@vger.kernel.org, Sudeep Holla Subject: Re: [PATCHv1 2/8] Documentation: arm: Link idle-states binding to code Message-ID: <20190510130240.GC10284@e107155-lin> References: <5f25e2b3096fa73f205e1797e355e049ed9f8c9c.1557486950.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f25e2b3096fa73f205e1797e355e049ed9f8c9c.1557486950.git.amit.kucheria@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 10, 2019 at 04:59:40PM +0530, Amit Kucheria wrote: > The enable-method needs to be psci for the psci_cpuidle_ops to be > correctly registered. > > Add a note to the binding documentation on where to find the declaration > of the enable-method since it is a macro and escapes any attempts to > grep for it. > > Cc: Sudeep Holla > Signed-off-by: Amit Kucheria > --- > Documentation/devicetree/bindings/arm/idle-states.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/arm/idle-states.txt b/Documentation/devicetree/bindings/arm/idle-states.txt > index 45730ba60af5..3a42335a6f3d 100644 > --- a/Documentation/devicetree/bindings/arm/idle-states.txt > +++ b/Documentation/devicetree/bindings/arm/idle-states.txt > @@ -239,6 +239,10 @@ processor idle states, defined as device tree nodes, are listed. > # On ARM v8 64-bit this property is required and must > be: > - "psci" > + (This assumes that the enable-method is "psci" > + in the cpu node[6] that then uses the > + CPUIDLE_METHOD_OF_DECLARE macro to setup the > + psci_cpuidle_ops callbacks) I don't prefer to refer some Linux implementation macros in DT bindings as they may disappear any day. Further, the use of CPUIDLE_METHOD_OF_DECLARE is restricted to ARM32 platforms only. So better to move it down without the reference to the above macro or any kernel implementation details if possible. > # On ARM 32-bit systems this property is optional > Something like: "This assumes that the "enable-method" property is set to "psci" in in the cpu node[6] and use this property to set up the CPU idle management in OS PM implementations" With something on these line, you can add: Acked-by: Sudeep Holla