From: Stephen Boyd <sboyd@kernel.org>
To: Amit Sunil Dhamne <amit.sunil.dhamne@xilinx.com>,
linux-clk@vger.kernel.org, m.tretter@pengutronix.de,
mark.rutland@arm.com, michal.simek@xilinx.com,
mturquette@baylibre.com
Cc: rajanv@xilinx.com, jollys@xilinx.com, tejasp@xilinx.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Rajan Vaja <rajan.vaja@xilinx.com>,
Tejas Patel <tejas.patel@xilinx.com>,
Amit Sunil Dhamne <amit.sunil.dhamne@xilinx.com>
Subject: Re: [PATCH v3 1/3] clk: zynqmp: Use firmware specific common clock flags
Date: Thu, 13 Aug 2020 13:09:44 -0700 [thread overview]
Message-ID: <159734938481.33733.13244969868345160087@swboyd.mtv.corp.google.com> (raw)
In-Reply-To: <1596523457-40465-2-git-send-email-amit.sunil.dhamne@xilinx.com>
Quoting Amit Sunil Dhamne (2020-08-03 23:44:15)
> diff --git a/drivers/clk/zynqmp/clkc.c b/drivers/clk/zynqmp/clkc.c
> index db8d0d7..d813c34 100644
> --- a/drivers/clk/zynqmp/clkc.c
> +++ b/drivers/clk/zynqmp/clkc.c
> @@ -271,6 +271,33 @@ static int zynqmp_pm_clock_get_topology(u32 clock_id, u32 index,
> return ret;
> }
>
> +unsigned long zynqmp_clk_map_common_ccf_flags(const u32 zynqmp_flag)
> +{
> + unsigned long ccf_flag = 0;
> +
> + ccf_flag |= (zynqmp_flag & ZYNQMP_CLK_SET_RATE_GATE) ?
Please use an if condition instead
if (zynqmp_flag & ZYNQMP_CLK_SET_RATE_GATE)
ccf_flag |= CLK_SET_RATE_GATE;
if (zynqmp_flag & ...)
> + CLK_SET_RATE_GATE : 0;
> + ccf_flag |= (zynqmp_flag & ZYNQMP_CLK_SET_PARENT_GATE) ?
> + CLK_SET_PARENT_GATE : 0;
> + ccf_flag |= (zynqmp_flag & ZYNQMP_CLK_SET_RATE_PARENT) ?
> + CLK_SET_RATE_PARENT : 0;
> + ccf_flag |= (zynqmp_flag & ZYNQMP_CLK_IGNORE_UNUSED) ?
> + CLK_IGNORE_UNUSED : 0;
> + ccf_flag |= (zynqmp_flag & ZYNQMP_CLK_GET_RATE_NOCACHE) ?
next prev parent reply other threads:[~2020-08-13 20:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-04 6:44 [PATCH v3 0/3] clk: zynqmp: Add firmware specific " Amit Sunil Dhamne
2020-08-04 6:44 ` [PATCH v3 1/3] clk: zynqmp: Use firmware specific common " Amit Sunil Dhamne
2020-08-13 20:09 ` Stephen Boyd [this message]
2020-08-04 6:44 ` [PATCH v3 2/3] clk: zynqmp: Use firmware specific divider " Amit Sunil Dhamne
2020-08-04 6:44 ` [PATCH v3 3/3] clk: zynqmp: Use firmware specific mux " Amit Sunil Dhamne
2020-08-10 22:06 ` [PATCH v3 0/3] clk: zynqmp: Add firmware specific " Amit Sunil Dhamne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=159734938481.33733.13244969868345160087@swboyd.mtv.corp.google.com \
--to=sboyd@kernel.org \
--cc=amit.sunil.dhamne@xilinx.com \
--cc=jollys@xilinx.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.tretter@pengutronix.de \
--cc=mark.rutland@arm.com \
--cc=michal.simek@xilinx.com \
--cc=mturquette@baylibre.com \
--cc=rajan.vaja@xilinx.com \
--cc=rajanv@xilinx.com \
--cc=tejas.patel@xilinx.com \
--cc=tejasp@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®