From: sashiko-bot@kernel.org
To: christian.koever-draxl@student.uibk.ac.at
Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH v2] clk: meson: s4: keep the PWM clocks off vid_pll
Date: Fri, 06 Nov 2026 10:25:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-201213@kernel.org> (raw)
In-Reply-To: <20261106101827.46467-1-christian.koever-draxl@student.uibk.ac.at>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] clk: meson: s4: unused S4_COMP_SEL macro left behind by
S4_PWM_SEL
--
commit 5666c90897d1a4bb5320168099b837ca1ef8216b
Author: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
clk: meson: s4: keep the PWM clocks off vid_pll
This commit removes vid_pll from the S4 PWM clock parent list and adds a
mux table to preserve the hardware register indices for the remaining
inputs.
> diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c
> index ba41fcd905881..e5e5ff979efd2 100644
> --- a/drivers/clk/meson/s4-peripherals.c
> +++ b/drivers/clk/meson/s4-peripherals.c
> @@ -2588,51 +2588,61 @@ static struct clk_regmap s4_spicc0_en = {
> },
> };
>
> -/* PWM Clock */
> +/*
> + * PWM Clock
> + *
> + * vid_pll (mux input 1) is left out: it belongs to the video path and is
> + * reprogrammed on display mode changes.
> + */
> +static u32 s4_pwm_parents_table[] = { 0, 2, 3 };
> +
> static const struct clk_parent_data s4_pwm_parents[] = {
> { .fw_name = "xtal", },
> - { .hw = &s4_vid_pll.hw },
> { .fw_name = "fclk_div4", },
> { .fw_name = "fclk_div3", },
> };
>
> -static S4_COMP_SEL(pwm_a, CLKCTRL_PWM_CLK_AB_CTRL, 9, 0x3, s4_pwm_parents);
> +#define S4_PWM_SEL(_name, _reg, _shift) \
> + MESON_COMP_SEL(s4_, _name, _reg, _shift, 0x3, s4_pwm_parents, \
> + s4_pwm_parents_table, 0, 0)
> +
> +static S4_PWM_SEL(pwm_a, CLKCTRL_PWM_CLK_AB_CTRL, 9);
[Severity: Low]
Does replacing all S4_COMP_SEL() uses with S4_PWM_SEL() leave
S4_COMP_SEL() unused in drivers/clk/meson/s4-peripherals.c, triggering a
-Wunused-macros warning under W=2 builds? Either S4_COMP_SEL() could take
a table argument or the unused macro definition should be removed.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106101827.46467-1-christian.koever-draxl@student.uibk.ac.at?part=1
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: christian.koever-draxl@student.uibk.ac.at
Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org,
neil.armstrong@linaro.org
Subject: Re: [PATCH v2] clk: meson: s4: keep the PWM clocks off vid_pll
Date: Fri, 06 Nov 2026 10:25:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-201213@kernel.org> (raw)
In-Reply-To: <20261106101827.46467-1-christian.koever-draxl@student.uibk.ac.at>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] clk: meson: s4: unused S4_COMP_SEL macro left behind by
S4_PWM_SEL
--
commit 5666c90897d1a4bb5320168099b837ca1ef8216b
Author: Christian Stefan Kövér-Draxl <ckoever@outlook.de>
clk: meson: s4: keep the PWM clocks off vid_pll
This commit removes vid_pll from the S4 PWM clock parent list and adds a
mux table to preserve the hardware register indices for the remaining
inputs.
> diff --git a/drivers/clk/meson/s4-peripherals.c b/drivers/clk/meson/s4-peripherals.c
> index ba41fcd905881..e5e5ff979efd2 100644
> --- a/drivers/clk/meson/s4-peripherals.c
> +++ b/drivers/clk/meson/s4-peripherals.c
> @@ -2588,51 +2588,61 @@ static struct clk_regmap s4_spicc0_en = {
> },
> };
>
> -/* PWM Clock */
> +/*
> + * PWM Clock
> + *
> + * vid_pll (mux input 1) is left out: it belongs to the video path and is
> + * reprogrammed on display mode changes.
> + */
> +static u32 s4_pwm_parents_table[] = { 0, 2, 3 };
> +
> static const struct clk_parent_data s4_pwm_parents[] = {
> { .fw_name = "xtal", },
> - { .hw = &s4_vid_pll.hw },
> { .fw_name = "fclk_div4", },
> { .fw_name = "fclk_div3", },
> };
>
> -static S4_COMP_SEL(pwm_a, CLKCTRL_PWM_CLK_AB_CTRL, 9, 0x3, s4_pwm_parents);
> +#define S4_PWM_SEL(_name, _reg, _shift) \
> + MESON_COMP_SEL(s4_, _name, _reg, _shift, 0x3, s4_pwm_parents, \
> + s4_pwm_parents_table, 0, 0)
> +
> +static S4_PWM_SEL(pwm_a, CLKCTRL_PWM_CLK_AB_CTRL, 9);
[Severity: Low]
Does replacing all S4_COMP_SEL() uses with S4_PWM_SEL() leave
S4_COMP_SEL() unused in drivers/clk/meson/s4-peripherals.c, triggering a
-Wunused-macros warning under W=2 builds? Either S4_COMP_SEL() could take
a table argument or the unused macro definition should be removed.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106101827.46467-1-christian.koever-draxl@student.uibk.ac.at?part=1
next prev parent reply other threads:[~2026-11-06 10:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 10:18 [PATCH v2] clk: meson: s4: keep the PWM clocks off vid_pll christian.koever-draxl
2026-11-06 10:18 ` christian.koever-draxl
2026-11-06 10:25 ` sashiko-bot [this message]
2026-11-06 10:25 ` sashiko-bot
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=sashiko-outbox-201213@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=christian.koever-draxl@student.uibk.ac.at \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.