clk: sunxi-ng: fix order of arguments in clock macro
Subsystems (2)
PATCH 1/1 clk: sunxi-ng: fix order of arguments in clock macro
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.
--- drivers/clk/sunxi-ng/ccu_mp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/clk/sunxi-ng/ccu_mp.h +1 -2
@@ -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), \
Signature · 1 line
2.25.1
Dne sreda, 30. april 2025 ob 11:53:25 Srednjeevropski poletni čas je Andre Przywara napisal(a):
Quoted 8 lines
When introducing the
SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEATmacro, 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.
Quoted 5 lines
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 <[email protected]>
Best regards,
Jernej
Quoted 6 lines · Andre Przywara
When introducing the
SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEATmacro, 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
Quoted 30 lines
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 <[email protected]>--- drivers/clk/sunxi-ng/ccu_mp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/clk/sunxi-ng/ccu_mp.h +1
-3@@ -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
Chen-Yu Tsai
AppliedQuoted 9 lines · Andre Przywara
When introducing the
SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEATmacro, 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 [email protected]:linux-sunxi/linux-sunxi.git, thanks!
[1/1] clk: sunxi-ng: fix order of arguments in clock macro
commit: 4a9c3c3215491f25bc66d615faa921c814b1a479
Best regards,
Signature · 1 line
Chen-Yu Tsai <[email protected]>
On Thu, 1 May 2025 20:14:24 +0800
Chen-Yu Tsai <[email protected]> wrote:
Hi,
Quoted 5 lines · Andre Przywara
Quoted 4 lines
When introducing the
SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEATmacro, the order of the last two arguments was different between the users and the
definition: features became flags and flags became features.
Quoted 7 lines
Quoted 5 lines
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 [email protected]: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
Quoted 5 lines
[1/1] clk: sunxi-ng: fix order of arguments in clock macro
commit: 4a9c3c3215491f25bc66d615faa921c814b1a479Best regards,
b4 thank-you letter shows incorrect repo URL
(dropped most people and lists from CC; added Konstantin and kernel.org users)
Quoted 15 lines · Andre Przywara
On Thu, 1 May 2025 20:14:24 +0800
Chen-Yu Tsai <[email protected]> wrote:Hi,
Quoted 9 lines · Andre Przywara
Quoted 8 lines
When introducing the
SUNXI_CCU_MP_DATA_WITH_MUX_GATE_FEATmacro, 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.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
[...]
Applied to clk-fixes-for-6.15 in [email protected]: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
Quoted 10 lines
Cheers,
AndreQuoted 5 lines
[1/1] clk: sunxi-ng: fix order of arguments in clock macro
commit: 4a9c3c3215491f25bc66d615faa921c814b1a479Best regards,
Re: b4 thank-you letter shows incorrect repo URL
Quoted 1 line · Chen-Yu Tsai
(dropped most people and lists from CC; added Konstantin and kernel.org users)
Note, it should go to [email protected], not [email protected].
Quoted 11 lines
Quoted 4 lines
Quoted 1 line
Applied to clk-fixes-for-6.15 in [email protected]: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
Re: b4 thank-you letter shows incorrect repo URL
Quoted 5 lines · Konstantin Ryabitsev
Quoted 1 line · Chen-Yu Tsai
(dropped most people and lists from CC; added Konstantin and kernel.org users)
Note, it should go to [email protected], not [email protected].
Ack. Dropping [email protected].
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 1 line
Applied to clk-fixes-for-6.15 in [email protected]: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?
Quoted 4 lines
Quoted 1 line
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 = [email protected]: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 = [email protected]: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
Re: b4 thank-you letter shows incorrect repo URL
Quoted 49 lines · Chen-Yu Tsai
Quoted 5 lines · Konstantin Ryabitsev
Quoted 1 line · Chen-Yu Tsai
(dropped most people and lists from CC; added Konstantin and kernel.org users)
Note, it should go to [email protected], not [email protected].
Ack. Dropping [email protected].
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 1 line
Applied to clk-fixes-for-6.15 in [email protected]: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?
Quoted 4 lines
Quoted 1 line
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 = [email protected]: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 = [email protected]: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/%.12sAlso, 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.
Quoted 6 lines
If I rename the "sunxi" remote to "sunxi-github",
b4 tynow 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/[email protected]/
The next one that I found was incorrect. This one is from Feb. 2025:
https://lore.kernel.org/linux-sunxi/[email protected]/
Though it could be I upgraded something on my workstation some time in between.
ChenYu
Re: b4 thank-you letter shows incorrect repo URL
Quoted 35 lines · Chen-Yu Tsai
Quoted 26 lines
Quoted 2 lines
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 = [email protected]: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 = [email protected]: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/%.12sAlso, 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.
Quoted 6 lines
If I rename the "sunxi" remote to "sunxi-github",
b4 tynow 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:
Quoted 8 lines
https://lore.kernel.org/linux-sunxi/[email protected]/The next one that I found was incorrect. This one is from Feb. 2025:
https://lore.kernel.org/linux-sunxi/[email protected]/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
Re: b4 thank-you letter shows incorrect repo URL
In reply to Konstantin RyabitsevHello:
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.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)