Skip to content

[PW_SID:1101154] rust: clk: Add ExclusiveClk and use it in pwm-th1520#2020

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1101154
Closed

[PW_SID:1101154] rust: clk: Add ExclusiveClk and use it in pwm-th1520#2020
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1101154

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 1101154 applied to workflow__riscv__fixes

Name: rust: clk: Add ExclusiveClk and use it in pwm-th1520
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1101154
Version: 1

sysheap added 2 commits May 26, 2026 17:29
Add Rust bindings for clk_rate_exclusive_get() and
clk_rate_exclusive_put().

Clk::rate_exclusive_get() consumes the Clk and returns an ExclusiveClk;
the matching put is issued from its Drop impl. ExclusiveClk derefs to
Clk so existing rate / prepare / enable APIs remain available on the
locked handle.

Signed-off-by: Maurice Hieronymus <mhi@mailbox.org>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The driver derives period and duty cycle from the clock rate read at
probe, so a later rate change would silently miscompute waveforms.
Switch to the new ExclusiveClk wrapper to hold the rate for the lifetime
of the driver data and drop the corresponding TODO.

Signed-off-by: Maurice Hieronymus <mhi@mailbox.org>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 114.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1017.15 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1372.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 19.46 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 20.98 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.60 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 76.39 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
kdoc
Desc: Detects for kdoc errors
Duration: 0.70 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 115.35 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1018.92 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1369.13 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 19.34 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 20.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.58 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 76.44 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
kdoc
Desc: Detects for kdoc errors
Duration: 0.72 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw1101154 branch May 28, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants