From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C6E0C433E2 for ; Thu, 9 Jul 2020 15:35:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 68B5D20720 for ; Thu, 9 Jul 2020 15:35:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="OWbz3/Cq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726856AbgGIPfd (ORCPT ); Thu, 9 Jul 2020 11:35:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbgGIPf3 (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 D80E5C08E6DC for ; Thu, 9 Jul 2020 08:35:29 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id m9so1188365pfh.0 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=Hguj2o0rCB1sXn9Qsoh+KIWkAojklGJZNIQ2lG91eXD2HCrv8Kr3sbd6lDFZWFHYaO cWwUPi4cnHsorCT8dcCDp6q+JT41Dc7wW0iRVYeZMj1shQK6JSq3gmwAOL9fr2QtpTSu 4szVlxmmlRAOYr0CEnK+8OuzX9nQiW5bhsf7hUqhe6XEsA+EAeTJNFsrop+1lrv4hVcR C92W64efDT79ma2VbiqicuhqOG2LqHzI6F5qoY67FaRH0KMJhi7HWAryswqqExXrKhO9 pDn7L9GHps7iOhcl1i2c0k4wgrikO8C99kGQi3Y19q8/9VQwKKkjMK/VcEXkRZa2sI8Z 3ytQ== X-Gm-Message-State: AOAM5324oxhNfUWrdnQTkFmv0/r5xk6z692+gKKplp+Oo2eecRcXO+fM hiuXe2NXIoaI4FqHEOrWVYKP9w== X-Google-Smtp-Source: ABdhPJxezNzU/FHc9DH0NCqtmmgu7yFn9tCxihSQrSv2FyCRlXKSWOfUQMA/NNJhOf+7Z3KfioxOBA== 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-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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.