[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aSTYt3mlJCC0f5TG@x1>
Date: Mon, 24 Nov 2025 14:14:15 -0800
From: Drew Fustini <fustini@...nel.org>
To: Yao Zi <ziyao@...root.org>
Cc: Guo Ren <guoren@...nel.org>, Fu Wei <wefu@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Paul Walmsley <pjw@...nel.org>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Alexandre Ghiti <alex@...ti.fr>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, Icenowy Zheng <uwu@...nowy.me>,
linux-riscv@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org,
Han Gao <rabenda.cn@...il.com>, Han Gao <gaohan@...as.ac.cn>
Subject: Re: [PATCH 5/7] clk: thead: th1520-ap: Add macro to define
multiplexers with flags
On Thu, Nov 20, 2025 at 01:14:14PM +0000, Yao Zi wrote:
> The new macro, TH_CCU_MUX_FLAGS, extends TH_CCU_MUX macro by adding two
> parameters to specify clock flags and multiplexer flags.
>
> Signed-off-by: Yao Zi <ziyao@...root.org>
> ---
> drivers/clk/thead/clk-th1520-ap.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/thead/clk-th1520-ap.c b/drivers/clk/thead/clk-th1520-ap.c
> index bf8e80c39a9e..79f001a047b2 100644
> --- a/drivers/clk/thead/clk-th1520-ap.c
> +++ b/drivers/clk/thead/clk-th1520-ap.c
> @@ -101,17 +101,22 @@ struct ccu_pll {
> .flags = _flags, \
> }
>
> -#define TH_CCU_MUX(_name, _parents, _shift, _width) \
> +#define TH_CCU_MUX_FLAGS(_name, _parents, _shift, _width, _flags, \
> + _mux_flags) \
> { \
> .mask = GENMASK(_width - 1, 0), \
checkpatch warns [1] about this line:
CHECK: Macro argument '_width' may be better as '(_width)' to avoid precedence issues
I noticed it in the patchwork CI results [2] but I think we can ignore
that as this patch is not actually changing that line.
Thanks,
Drew
[1] https://gist.github.com/linux-riscv-bot/a335020c99ef628bb38e0a4ea85e0c45
[2] https://patchwork.kernel.org/project/linux-riscv/patch/20251120131416.26236-6-ziyao@disroot.org/
Powered by blists - more mailing lists