[PW_SID:1101154] rust: clk: Add ExclusiveClk and use it in pwm-th1520#2020
[PW_SID:1101154] rust: clk: Add ExclusiveClk and use it in pwm-th1520#2020linux-riscv-bot wants to merge 2 commits into
Conversation
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>
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 1: "[1/2] rust: clk: Add ExclusiveClk wrapper for clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
|
Patch 2: "[2/2] pwm: th1520: Lock clock rate with clk_rate_exclusive_get" |
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