Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4132450pxv; Mon, 28 Jun 2021 23:11:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7b/H7L+gCpFT0hXL17fSDy9tWY1kfOCKVVp5DwUg7iFQ0VgIrCJwGZd4tcLx0qOkyYwDt X-Received: by 2002:a02:44c6:: with SMTP id o189mr2841966jaa.90.1624947079585; Mon, 28 Jun 2021 23:11:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624947079; cv=none; d=google.com; s=arc-20160816; b=GV/Y5vuso8Uv/hG3hsN/08FOFacWUzcjGtUyr+wZw7I4dmb2TM4j1nNrd0iC1uycHE VleTuuNizFIjQy0Nnb7e/4+uizWT3zVFb24piH0wW/b//2J1bj4JzdgODssoDLQ/28Cd t1qB9fjRNVv2lu6cW7clsWZ5wc0tOh6LzaZ4N7VH7jekkB29BylDCE2h7d3WjHwNCZcE t8ndR4huexZo8ii9FNaI10C8rTndSWSCegMBSPjwqtIbSV6GnbUo2XYpufXRsAiu61NJ FBXhY8EP3Z92FtZaJQClkCv4zCLW6SkmQxeqHVrwIMjPAvYwAvmL/2U9Sn+z3Cc/1INd 0J5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=eyc9I0ypiTSSjckmwYlVQRFb0QEyS+8+2KtYO3k3yrM=; b=uLGj0+mAeSzryLQgW86aTUbE4v7mHxagY8Jv1tYwfwUSGbb4Lyh5oLjIaorDuhsztO ynD++KLI93qmK2VxqvvaPiQ75mQ1vcSWErA/e/52BiUWJZiiDcjpm1pzG/b1cFWfGCWs QiiGqvXF/OxKFIZvM4zZMIKqjWjwVbwxcf0xE10ijEckcrW78pIehFHqunmGwAKoSYsR 5oEf8QIwJ5VbajhM9PHoP+/xoL4dpErS2p6JxX2GrFXePVYiS5x8EKWwrHeD6S26SJhh xvuC48zpW5nMtDwEKEeLZMr2vpsA8jj+2ajv4+wSjW5Ej05NtZk86pAjfiNfK2wNwoMz Fl2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dUGB0Lwn; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si17439739ilu.2.2021.06.28.23.11.08; Mon, 28 Jun 2021 23:11:19 -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=@kernel.org header.s=k20201202 header.b=dUGB0Lwn; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbhF2GMt (ORCPT + 99 others); Tue, 29 Jun 2021 02:12:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:34240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbhF2GMt (ORCPT ); Tue, 29 Jun 2021 02:12:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4667461D92; Tue, 29 Jun 2021 06:10:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624947022; bh=IWwBWM5EpNg3cZ6/cK+Cf5OhG2I9lG+DMt5REFSvWDI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=dUGB0Lwn7U4A4aG0mGUfwNYw8REFlWwcffRRtS2wBqe9WFL9dFmboHPE1eFIEGtuc Yp0CPjqzUqNtArcMzecrgscepvaOA651iLX4I23JyFVP9ncaieXA1KFbfUkmQvmN6f 5ibMcOBBS3niid5CpytDqIYQq2z4ACDHhghJglg/+howNHbROJB/9q76GToiSLOhdT r2Mfv2sJUijA6oN8MPxvrISXp55znRNuzJaFphDzd4w15j4iTxIg5tLI52+aQ/bCYr +j8MLN4aSC6E3ztQ+9I+jYvhuBIjZ3G/fLg9+RiUNwlJ84/ZrzpyirNLZIPic3ekXF eUqtpVw/IVI+Q== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210628070122.26217-2-rajan.vaja@xilinx.com> References: <20210628070122.26217-1-rajan.vaja@xilinx.com> <20210628070122.26217-2-rajan.vaja@xilinx.com> Subject: Re: [PATCH v6 1/4] clk: zynqmp: Use firmware specific common clock flags From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rajan Vaja To: Rajan Vaja , kristo@kernel.org, lee.jones@linaro.org, michal.simek@xilinx.com, mturquette@baylibre.com, quanyang.wang@windriver.com Date: Mon, 28 Jun 2021 23:10:21 -0700 Message-ID: <162494702112.2516444.13836179455930623514@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rajan Vaja (2021-06-28 00:01:19) > diff --git a/drivers/clk/zynqmp/clk-zynqmp.h b/drivers/clk/zynqmp/clk-zyn= qmp.h > index 5beeb41b29fa..aa013a59c7cc 100644 > --- a/drivers/clk/zynqmp/clk-zynqmp.h > +++ b/drivers/clk/zynqmp/clk-zynqmp.h > @@ -10,6 +10,20 @@ > =20 > #include > =20 > +/* Common Flags */ > +/* must be gated across rate change */ > +#define ZYNQMP_CLK_SET_RATE_GATE BIT(0) > +/* must be gated across re-parent */ > +#define ZYNQMP_CLK_SET_PARENT_GATE BIT(1) > +/* propagate rate change up one level */ > +#define ZYNQMP_CLK_SET_RATE_PARENT BIT(2) > +/* do not gate even if unused */ > +#define ZYNQMP_CLK_IGNORE_UNUSED BIT(3) > +/* don't re-parent on rate change */ > +#define ZYNQMP_CLK_SET_RATE_NO_REPARENT BIT(7) > +/* do not gate, ever */ > +#define ZYNQMP_CLK_IS_CRITICAL BIT(11) Ok I was hoping the firmware didn't use the CRITICAL and IGNORE_UNUSED flags but I guess we've lost that battle.