* [PATCH] clk: sunxi-ng: fix order of arguments in clock macro
@ 2025-04-30 9:53 Andre Przywara
2025-05-01 5:05 ` Jernej Škrabec
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Andre Przywara @ 2025-04-30 9:53 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Chen-Yu Tsai, Jernej Skrabec,
Samuel Holland
Cc: linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order
of the last two arguments was different between the users and the
definition: features became flags and flags became features.
This just didn't end up in a desaster yet because most users ended up
passing 0 for both arguments, and other clocks (for the new A523 SoC) are
not yet used.
Swap the order of the arguments in the definition, so that users stay
untouched.
Fixes: cdbb9d0d09db ("clk: sunxi-ng: mp: provide wrappers for setting feature flags")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
drivers/clk/sunxi-ng/ccu_mp.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/clk/sunxi-ng/ccu_mp.h b/drivers/clk/sunxi-ng/ccu_mp.h
index b35aeec70484d..8fc7fdb7ef494 100644
--- a/drivers/clk/sunxi-ng/ccu_mp.h
+++ b/drivers/clk/sunxi-ng/ccu_mp.h
@@ -109,8 +109,7 @@ struct ccu_mp {
_mshift, _mwidth, \
_pshift, _pwidth, \
_muxshift, _muxwidth, \
- _gate, _features, \
- _flags) \
+ _gate, _flags, _features) \
struct ccu_mp _struct = { \
.enable = _gate, \
.m = _SUNXI_CCU_DIV(_mshift, _mwidth), \
--
2.25.1
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH] clk: sunxi-ng: fix order of arguments in clock macro
2025-04-30 9:53 [PATCH] clk: sunxi-ng: fix order of arguments in clock macro Andre Przywara
@ 2025-05-01 5:05 ` Jernej Škrabec
2025-05-01 5:11 ` Chen-Yu Tsai
2025-05-01 12:14 ` Chen-Yu Tsai
2 siblings, 0 replies; 11+ messages in thread
From: Jernej Škrabec @ 2025-05-01 5:05 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Chen-Yu Tsai, Samuel Holland,
Andre Przywara
Cc: linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
Dne sreda, 30. april 2025 ob 11:53:25 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order
> of the last two arguments was different between the users and the
> definition: features became flags and flags became features.
>
> This just didn't end up in a desaster yet because most users ended up
> passing 0 for both arguments, and other clocks (for the new A523 SoC) are
> not yet used.
>
> Swap the order of the arguments in the definition, so that users stay
> untouched.
>
> Fixes: cdbb9d0d09db ("clk: sunxi-ng: mp: provide wrappers for setting feature flags")
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH] clk: sunxi-ng: fix order of arguments in clock macro
2025-04-30 9:53 [PATCH] clk: sunxi-ng: fix order of arguments in clock macro Andre Przywara
2025-05-01 5:05 ` Jernej Škrabec
@ 2025-05-01 5:11 ` Chen-Yu Tsai
2025-05-01 12:14 ` Chen-Yu Tsai
2 siblings, 0 replies; 11+ messages in thread
From: Chen-Yu Tsai @ 2025-05-01 5:11 UTC (permalink / raw)
To: Andre Przywara
Cc: Michael Turquette, Stephen Boyd, Jernej Skrabec, Samuel Holland,
linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
On Wed, Apr 30, 2025 at 5:53 PM Andre Przywara <andre.przywara@arm.com> wrote:
>
> When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order
> of the last two arguments was different between the users and the
> definition: features became flags and flags became features.
>
> This just didn't end up in a desaster yet because most users ended up
^ typo?
Will fix when applying.
ChenYu
> passing 0 for both arguments, and other clocks (for the new A523 SoC) are
> not yet used.
>
> Swap the order of the arguments in the definition, so that users stay
> untouched.
>
> Fixes: cdbb9d0d09db ("clk: sunxi-ng: mp: provide wrappers for setting feature flags")
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
> drivers/clk/sunxi-ng/ccu_mp.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/clk/sunxi-ng/ccu_mp.h b/drivers/clk/sunxi-ng/ccu_mp.h
> index b35aeec70484d..8fc7fdb7ef494 100644
> --- a/drivers/clk/sunxi-ng/ccu_mp.h
> +++ b/drivers/clk/sunxi-ng/ccu_mp.h
> @@ -109,8 +109,7 @@ struct ccu_mp {
> _mshift, _mwidth, \
> _pshift, _pwidth, \
> _muxshift, _muxwidth, \
> - _gate, _features, \
> - _flags) \
> + _gate, _flags, _features) \
> struct ccu_mp _struct = { \
> .enable = _gate, \
> .m = _SUNXI_CCU_DIV(_mshift, _mwidth), \
> --
> 2.25.1
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH] clk: sunxi-ng: fix order of arguments in clock macro
2025-04-30 9:53 [PATCH] clk: sunxi-ng: fix order of arguments in clock macro Andre Przywara
2025-05-01 5:05 ` Jernej Škrabec
2025-05-01 5:11 ` Chen-Yu Tsai
@ 2025-05-01 12:14 ` Chen-Yu Tsai
2025-05-01 12:22 ` Andre Przywara
2 siblings, 1 reply; 11+ messages in thread
From: Chen-Yu Tsai @ 2025-05-01 12:14 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Jernej Skrabec, Samuel Holland,
Andre Przywara
Cc: linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
On Wed, 30 Apr 2025 10:53:25 +0100, Andre Przywara wrote:
> When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order
> of the last two arguments was different between the users and the
> definition: features became flags and flags became features.
>
> This just didn't end up in a desaster yet because most users ended up
> passing 0 for both arguments, and other clocks (for the new A523 SoC) are
> not yet used.
>
> [...]
Applied to clk-fixes-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
[1/1] clk: sunxi-ng: fix order of arguments in clock macro
commit: 4a9c3c3215491f25bc66d615faa921c814b1a479
Best regards,
--
Chen-Yu Tsai <wens@csie.org>
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: [PATCH] clk: sunxi-ng: fix order of arguments in clock macro
2025-05-01 12:14 ` Chen-Yu Tsai
@ 2025-05-01 12:22 ` Andre Przywara
2025-05-01 14:06 ` b4 thank-you letter shows incorrect repo URL Chen-Yu Tsai
0 siblings, 1 reply; 11+ messages in thread
From: Andre Przywara @ 2025-05-01 12:22 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Michael Turquette, Stephen Boyd, Jernej Skrabec, Samuel Holland,
linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
On Thu, 1 May 2025 20:14:24 +0800
Chen-Yu Tsai <wens@csie.org> wrote:
Hi,
> On Wed, 30 Apr 2025 10:53:25 +0100, Andre Przywara wrote:
> > When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order
> > of the last two arguments was different between the users and the
> > definition: features became flags and flags became features.
> >
> > This just didn't end up in a desaster yet because most users ended up
> > passing 0 for both arguments, and other clocks (for the new A523 SoC) are
> > not yet used.
> >
> > [...]
>
> Applied to clk-fixes-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
thanks for that, but the URL here is not correct, is it? Should be the
kernel.org repo instead? Saw this already in other "applied" emails.
Cheers,
Andre
>
> [1/1] clk: sunxi-ng: fix order of arguments in clock macro
> commit: 4a9c3c3215491f25bc66d615faa921c814b1a479
>
> Best regards,
^ permalink raw reply [flat|nested] 11+ messages in thread
* b4 thank-you letter shows incorrect repo URL
2025-05-01 12:22 ` Andre Przywara
@ 2025-05-01 14:06 ` Chen-Yu Tsai
2025-05-01 14:26 ` Konstantin Ryabitsev
0 siblings, 1 reply; 11+ messages in thread
From: Chen-Yu Tsai @ 2025-05-01 14:06 UTC (permalink / raw)
To: Andre Przywara, Konstantin Ryabitsev
Cc: open list:ARM/Allwinner sunXi SoC support, users
(dropped most people and lists from CC; added Konstantin and kernel.org users)
On Thu, May 1, 2025 at 8:22 PM Andre Przywara <andre.przywara@arm.com> wrote:
>
> On Thu, 1 May 2025 20:14:24 +0800
> Chen-Yu Tsai <wens@csie.org> wrote:
>
> Hi,
>
> > On Wed, 30 Apr 2025 10:53:25 +0100, Andre Przywara wrote:
> > > When introducing the SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEAT macro, the order
> > > of the last two arguments was different between the users and the
> > > definition: features became flags and flags became features.
> > >
> > > This just didn't end up in a desaster yet because most users ended up
> > > passing 0 for both arguments, and other clocks (for the new A523 SoC) are
> > > not yet used.
> > >
> > > [...]
> >
> > Applied to clk-fixes-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
>
> thanks for that, but the URL here is not correct, is it? Should be the
> kernel.org repo instead? Saw this already in other "applied" emails.
That's weird. It is correctly pushed to the kernel.org repo [1].
Maybe it's because the git-config remote entry for korg repo's is called
"sunxi-korg", and the linux-sunxi one on GitHub is called "sunxi", and
somehow b4 is getting confused?
Konstantin, have you heard of such reports? FYI my b4 is version 0.14.2.
Thanks
ChenYu
[1] https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/log/?h=sunxi/clk-fixes-for-6.15
> Cheers,
> Andre
>
>
> >
> > [1/1] clk: sunxi-ng: fix order of arguments in clock macro
> > commit: 4a9c3c3215491f25bc66d615faa921c814b1a479
> >
> > Best regards,
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: b4 thank-you letter shows incorrect repo URL
2025-05-01 14:06 ` b4 thank-you letter shows incorrect repo URL Chen-Yu Tsai
@ 2025-05-01 14:26 ` Konstantin Ryabitsev
2025-05-01 15:45 ` Chen-Yu Tsai
2025-05-02 20:00 ` Bugspray Bot
0 siblings, 2 replies; 11+ messages in thread
From: Konstantin Ryabitsev @ 2025-05-01 14:26 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Andre Przywara, open list:ARM/Allwinner sunXi SoC support, users,
tools
On Thu, May 01, 2025 at 10:06:22PM +0800, Chen-Yu Tsai wrote:
> (dropped most people and lists from CC; added Konstantin and kernel.org users)
Note, it should go to tools@kernel.org, not users@kernel.org.
> > > Applied to clk-fixes-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
> >
> > thanks for that, but the URL here is not correct, is it? Should be the
> > kernel.org repo instead? Saw this already in other "applied" emails.
>
> That's weird. It is correctly pushed to the kernel.org repo [1].
> Maybe it's because the git-config remote entry for korg repo's is called
> "sunxi-korg", and the linux-sunxi one on GitHub is called "sunxi", and
> somehow b4 is getting confused?
>
> Konstantin, have you heard of such reports? FYI my b4 is version 0.14.2.
This is coming from your custom template, not from b4 itself. By default, b4
just says "Applied to ${branch}".
Regards,
-K
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: b4 thank-you letter shows incorrect repo URL
2025-05-01 14:26 ` Konstantin Ryabitsev
@ 2025-05-01 15:45 ` Chen-Yu Tsai
2025-05-01 15:49 ` Chen-Yu Tsai
2025-05-02 20:00 ` Bugspray Bot
1 sibling, 1 reply; 11+ messages in thread
From: Chen-Yu Tsai @ 2025-05-01 15:45 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Andre Przywara, open list:ARM/Allwinner sunXi SoC support, tools
On Thu, May 1, 2025 at 10:26 PM Konstantin Ryabitsev
<konstantin@linuxfoundation.org> wrote:
>
> On Thu, May 01, 2025 at 10:06:22PM +0800, Chen-Yu Tsai wrote:
> > (dropped most people and lists from CC; added Konstantin and kernel.org users)
>
> Note, it should go to tools@kernel.org, not users@kernel.org.
Ack. Dropping users@kernel.org.
> > > > Applied to clk-fixes-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
> > >
> > > thanks for that, but the URL here is not correct, is it? Should be the
> > > kernel.org repo instead? Saw this already in other "applied" emails.
> >
> > That's weird. It is correctly pushed to the kernel.org repo [1].
> > Maybe it's because the git-config remote entry for korg repo's is called
> > "sunxi-korg", and the linux-sunxi one on GitHub is called "sunxi", and
> > somehow b4 is getting confused?
> >
> > Konstantin, have you heard of such reports? FYI my b4 is version 0.14.2.
>
> This is coming from your custom template, not from b4 itself. By default, b4
> just says "Applied to ${branch}".
My template is: "Applied to ${branch} in ${treename}, thanks!"
My .git/config is as follows:
[remote "sunxi"]
url = git@github.com:linux-sunxi/linux-sunxi.git
tagopt = --no-tags
fetch = +refs/heads/*:refs/remotes/sunxi-github/*
[remote "sunxi-korg"]
url = https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git
pushURL = git@gitolite.kernel.org:pub/scm/linux/kernel/git/sunxi/linux
fetch = +refs/heads/*:refs/remotes/sunxi-korg/*
tagopt = --no-tags
b4-commit-url-mask = https://git.kernel.org/sunxi/linux/c/%.12s
Also, the branch I applied it to is named "sunxi/clk-fixes-for-6.15",
both locally and in the kernel.org repo, not "clk-fixes-for-6.15" as
shown in the original thank-you email.
I think there is a parsing error somewhere. Maybe b4 isn't dealing with
nested branch names correctly and somehow thinks the "sunxi/" part is
actually the remote name.
If I rename the "sunxi" remote to "sunxi-github", `b4 ty` now generates:
Applied to sunxi/clk-fixes-for-6.15 in local tree, thanks!
Again this seems to point to accidentally treating part of the branch name
as the remote name.
ChenYu
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: b4 thank-you letter shows incorrect repo URL
2025-05-01 15:45 ` Chen-Yu Tsai
@ 2025-05-01 15:49 ` Chen-Yu Tsai
2025-05-02 19:55 ` Konstantin Ryabitsev
0 siblings, 1 reply; 11+ messages in thread
From: Chen-Yu Tsai @ 2025-05-01 15:49 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Andre Przywara, open list:ARM/Allwinner sunXi SoC support, tools
On Thu, May 1, 2025 at 11:45 PM Chen-Yu Tsai <wens@csie.org> wrote:
>
> On Thu, May 1, 2025 at 10:26 PM Konstantin Ryabitsev
> <konstantin@linuxfoundation.org> wrote:
> >
> > On Thu, May 01, 2025 at 10:06:22PM +0800, Chen-Yu Tsai wrote:
> > > (dropped most people and lists from CC; added Konstantin and kernel.org users)
> >
> > Note, it should go to tools@kernel.org, not users@kernel.org.
>
> Ack. Dropping users@kernel.org.
>
> > > > > Applied to clk-fixes-for-6.15 in git@github.com:linux-sunxi/linux-sunxi.git, thanks!
> > > >
> > > > thanks for that, but the URL here is not correct, is it? Should be the
> > > > kernel.org repo instead? Saw this already in other "applied" emails.
> > >
> > > That's weird. It is correctly pushed to the kernel.org repo [1].
> > > Maybe it's because the git-config remote entry for korg repo's is called
> > > "sunxi-korg", and the linux-sunxi one on GitHub is called "sunxi", and
> > > somehow b4 is getting confused?
> > >
> > > Konstantin, have you heard of such reports? FYI my b4 is version 0.14.2.
> >
> > This is coming from your custom template, not from b4 itself. By default, b4
> > just says "Applied to ${branch}".
>
> My template is: "Applied to ${branch} in ${treename}, thanks!"
>
> My .git/config is as follows:
>
> [remote "sunxi"]
> url = git@github.com:linux-sunxi/linux-sunxi.git
> tagopt = --no-tags
> fetch = +refs/heads/*:refs/remotes/sunxi-github/*
> [remote "sunxi-korg"]
> url = https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git
> pushURL = git@gitolite.kernel.org:pub/scm/linux/kernel/git/sunxi/linux
> fetch = +refs/heads/*:refs/remotes/sunxi-korg/*
> tagopt = --no-tags
> b4-commit-url-mask = https://git.kernel.org/sunxi/linux/c/%.12s
>
> Also, the branch I applied it to is named "sunxi/clk-fixes-for-6.15",
> both locally and in the kernel.org repo, not "clk-fixes-for-6.15" as
> shown in the original thank-you email.
>
> I think there is a parsing error somewhere. Maybe b4 isn't dealing with
> nested branch names correctly and somehow thinks the "sunxi/" part is
> actually the remote name.
>
> If I rename the "sunxi" remote to "sunxi-github", `b4 ty` now generates:
>
> Applied to sunxi/clk-fixes-for-6.15 in local tree, thanks!
>
> Again this seems to point to accidentally treating part of the branch name
> as the remote name.
Also, I found a thank-you letter that is correct that is from Jan. 2025:
https://lore.kernel.org/linux-sunxi/173617837421.3282465.589306007023383641.b4-ty@csie.org/
The next one that I found was incorrect. This one is from Feb. 2025:
https://lore.kernel.org/linux-sunxi/173909140135.1184685.5784910677727356231.b4-ty@csie.org/
Though it could be I upgraded something on my workstation some time
in between.
ChenYu
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: b4 thank-you letter shows incorrect repo URL
2025-05-01 15:49 ` Chen-Yu Tsai
@ 2025-05-02 19:55 ` Konstantin Ryabitsev
0 siblings, 0 replies; 11+ messages in thread
From: Konstantin Ryabitsev @ 2025-05-02 19:55 UTC (permalink / raw)
To: Chen-Yu Tsai
Cc: Andre Przywara, open list:ARM/Allwinner sunXi SoC support, tools
On Thu, May 01, 2025 at 11:49:38PM +0800, Chen-Yu Tsai wrote:
> > > This is coming from your custom template, not from b4 itself. By default, b4
> > > just says "Applied to ${branch}".
> >
> > My template is: "Applied to ${branch} in ${treename}, thanks!"
> >
> > My .git/config is as follows:
> >
> > [remote "sunxi"]
> > url = git@github.com:linux-sunxi/linux-sunxi.git
> > tagopt = --no-tags
> > fetch = +refs/heads/*:refs/remotes/sunxi-github/*
> > [remote "sunxi-korg"]
> > url = https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git
> > pushURL = git@gitolite.kernel.org:pub/scm/linux/kernel/git/sunxi/linux
> > fetch = +refs/heads/*:refs/remotes/sunxi-korg/*
> > tagopt = --no-tags
> > b4-commit-url-mask = https://git.kernel.org/sunxi/linux/c/%.12s
> >
> > Also, the branch I applied it to is named "sunxi/clk-fixes-for-6.15",
> > both locally and in the kernel.org repo, not "clk-fixes-for-6.15" as
> > shown in the original thank-you email.
> >
> > I think there is a parsing error somewhere. Maybe b4 isn't dealing with
> > nested branch names correctly and somehow thinks the "sunxi/" part is
> > actually the remote name.
> >
> > If I rename the "sunxi" remote to "sunxi-github", `b4 ty` now generates:
> >
> > Applied to sunxi/clk-fixes-for-6.15 in local tree, thanks!
> >
> > Again this seems to point to accidentally treating part of the branch name
> > as the remote name.
>
> Also, I found a thank-you letter that is correct that is from Jan. 2025:
>
> https://lore.kernel.org/linux-sunxi/173617837421.3282465.589306007023383641.b4-ty@csie.org/
>
> The next one that I found was incorrect. This one is from Feb. 2025:
>
> https://lore.kernel.org/linux-sunxi/173909140135.1184685.5784910677727356231.b4-ty@csie.org/
>
> Though it could be I upgraded something on my workstation some time
> in between.
Yes, I think there's a substring/partial match that causes this.
I'll take a look.
bugspray tag me
-K
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: b4 thank-you letter shows incorrect repo URL
2025-05-01 14:26 ` Konstantin Ryabitsev
2025-05-01 15:45 ` Chen-Yu Tsai
@ 2025-05-02 20:00 ` Bugspray Bot
1 sibling, 0 replies; 11+ messages in thread
From: Bugspray Bot @ 2025-05-02 20:00 UTC (permalink / raw)
To: users, tools, wens, linux-sunxi, konstantin, andre.przywara
Hello:
This conversation is now tracked by Kernel.org Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=220079
There is no need to do anything else, just keep talking.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2025-05-02 19:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-30 9:53 [PATCH] clk: sunxi-ng: fix order of arguments in clock macro Andre Przywara
2025-05-01 5:05 ` Jernej Škrabec
2025-05-01 5:11 ` Chen-Yu Tsai
2025-05-01 12:14 ` Chen-Yu Tsai
2025-05-01 12:22 ` Andre Przywara
2025-05-01 14:06 ` b4 thank-you letter shows incorrect repo URL Chen-Yu Tsai
2025-05-01 14:26 ` Konstantin Ryabitsev
2025-05-01 15:45 ` Chen-Yu Tsai
2025-05-01 15:49 ` Chen-Yu Tsai
2025-05-02 19:55 ` Konstantin Ryabitsev
2025-05-02 20:00 ` Bugspray Bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox