Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1507430ybt; Thu, 9 Jul 2020 08:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOWxTXWqDv5xCoAPruvyh3Vd+Wxv+pkeYU9BiYGPqCb/NnyCaF+uGRZeCFYfL35OdVdF5a X-Received: by 2002:a05:6402:228d:: with SMTP id cw13mr73613389edb.343.1594309071347; Thu, 09 Jul 2020 08:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594309071; cv=none; d=google.com; s=arc-20160816; b=eWoshdDJEmUqU9PQlGDfUI5mSYGgxf8WbO6L1SMY6v+cGYZNMhvdX7zmihUoeavZP+ j2LGjrDchfTNzTaNycUQl0FZS2xX8eeiKHZlzUh15MR0lTAompxqVrbrDeuDKr9ggYlT RwtHLfefTwfDtp9+Hsc1SPmlL44W767BK4EHJR92UezKePXbOnUwExZLhNCUP2YXZHb/ vypJaB7BhBt9U17tVVX8TBklFKARwbBOYXvzle5ndzW/wKUNpXJtXHtmqvD42ML5V313 ukuyw2BOtbOB65CsLRzwgR5tJmYhDIyKpv6s28I92wE7AxLti7KFRYf1ceWryzPLPMXZ Qj2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0q/rCvNt3k405F9K/TajOpXPAtgojFFtnqWJkLPEMF4=; b=SdTog4CJFhJ6DZbOuLPVkFUfSoJlJpt3uMXCHia08oZnOgKz/rt7IEti0/gYEMcdWk f4/kwTOhVoWcB8gd+qgJYrd3/kVoox/Ra5DCJagYBv+5qTKwg/qlhaHBGFgKu8/GZ4fa wEwzfwuwQm0Z6kT/T9P7t43ummPXcnuuqL/m4UY9A3YHLBNM2h0axn/Os2urjsCqQMR7 s6IXexaCNt3cqRceZ4qAdVTzGSFpw4xYnUht+mXe1HBrISscl9ga+4vCZ0IvP/hen2+5 47162pAH2+Go0IcJ9y62rIy8pHfatjO0N8pWglcOwo+3M1Jwe0rtChqvbGOJopfuu2P0 4rwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="OWbz3/Cq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s6si2011827ejo.502.2020.07.09.08.37.26; Thu, 09 Jul 2020 08:37:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="OWbz3/Cq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727963AbgGIPfa (ORCPT + 99 others); Thu, 9 Jul 2020 11:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgGIPf3 (ORCPT ); Thu, 9 Jul 2020 11:35:29 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9361C08C5CE for ; Thu, 9 Jul 2020 08:35:29 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id j20so1179437pfe.5 for ; Thu, 09 Jul 2020 08:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=0q/rCvNt3k405F9K/TajOpXPAtgojFFtnqWJkLPEMF4=; b=OWbz3/CqrDpo/Wcvq2r+CzFCtoWft8EU3UQBsM0iXshdZeW30DCs/+vWW/pDAXePHh 2oLzG8kSev55DDnOpuoGAbRzEEmpYfdKukcFXVxGuDNbCFFMWbv25beCD/NtvTEk6R1c g7W7jqGUm4nzWI01J6Ul1JxZcEbMXqtZSar7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=0q/rCvNt3k405F9K/TajOpXPAtgojFFtnqWJkLPEMF4=; b=WavJCnHzEpomxzcdtxzx8ZnoEEBGmg3f0YRWVmxvhyztijHFQLrc3z1hyGmqpXdg9P U0bTxmt8G5Ox/HJxMFpvbvLnmE5uV308PshG/j8xYxZToI9vvIlXq/847ajtVJWT+SFY fS3VJP3z35gUl1gaQPu7pP3G4GWmqnTwP0qSAO9eQURzPgO5N/to1G1ytwG25ApUO+97 jydhr6pwaQ7F+uhhvC/3jhKYPHsXv7S3vL+PBlx5382/DG8d0gLOW/+4jNoTGZmz5S+R LavR1XOvSfOShMCCzYE2KDawcvcIegSVntpv3x1XdnaUh0jJ3FR8bfvLtNhjdWhDGb9S OOGg== X-Gm-Message-State: AOAM532NksSx6YDs4e4vXkTM31lxAmhHXg1o9aeMbu+WjJ5AQfajmZN3 vGHLDpP0N+KkZ7trMiCFCtc7Cg== X-Received: by 2002:a62:a217:: with SMTP id m23mr27037150pff.291.1594308929281; Thu, 09 Jul 2020 08:35:29 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id b8sm3221741pjm.31.2020.07.09.08.35.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 08:35:28 -0700 (PDT) Date: Thu, 9 Jul 2020 08:35:27 -0700 From: Matthias Kaehlcke To: Mike Tipton Cc: georgi.djakov@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: interconnect: Add generic qcom bindings Message-ID: <20200709153527.GJ3191083@google.com> References: <20200623040515.23317-1-mdtipton@codeaurora.org> <20200623040515.23317-2-mdtipton@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200623040515.23317-2-mdtipton@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 09:05:14PM -0700, Mike Tipton wrote: > Add generic qcom interconnect bindings that are common across platforms. In > particular, these include QCOM_ICC_TAG_* macros that clients can use when > calling icc_set_tag(). > > Signed-off-by: Mike Tipton > --- > include/dt-bindings/interconnect/qcom,icc.h | 26 +++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 include/dt-bindings/interconnect/qcom,icc.h > > diff --git a/include/dt-bindings/interconnect/qcom,icc.h b/include/dt-bindings/interconnect/qcom,icc.h > new file mode 100644 > index 000000000000..cd34f36daaaa > --- /dev/null > +++ b/include/dt-bindings/interconnect/qcom,icc.h > @@ -0,0 +1,26 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +/* > + * Copyright (c) 2020, The Linux Foundation. All rights reserved. > + */ > + > +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H > +#define __DT_BINDINGS_INTERCONNECT_QCOM_ICC_H > + > +/* > + * The AMC bucket denotes constraints that are applied to hardware when > + * icc_set_bw() completes, whereas the WAKE and SLEEP constraints are applied > + * when the execution environment transitions between active and low power mode. > + */ > +#define QCOM_ICC_BUCKET_AMC 0 > +#define QCOM_ICC_BUCKET_WAKE 1 > +#define QCOM_ICC_BUCKET_SLEEP 2 > +#define QCOM_ICC_NUM_BUCKETS 3 > + > +#define QCOM_ICC_TAG_AMC (1 << QCOM_ICC_BUCKET_AMC) > +#define QCOM_ICC_TAG_WAKE (1 << QCOM_ICC_BUCKET_WAKE) > +#define QCOM_ICC_TAG_SLEEP (1 << QCOM_ICC_BUCKET_SLEEP) > +#define QCOM_ICC_TAG_ACTIVE_ONLY (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE) > +#define QCOM_ICC_TAG_ALWAYS (QCOM_ICC_TAG_AMC | QCOM_ICC_TAG_WAKE |\ > + QCOM_ICC_TAG_SLEEP) > + > +#endif Would it make sense to squash the two patches of this series into a single patch? This would make it more evident that this was moved from drivers/interconnect/qcom/icc-rpmh.h and avoid duplicate definitions if only this patch was applied.