diff options
author | Maíra Canal <mcanal@igalia.com> | 2025-07-31 18:06:18 -0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2025-09-21 09:09:34 -0700 |
commit | 919d6924ae9b4bcc9cb1d5ce4b78d5b92665d630 (patch) | |
tree | 7ec6c0d436e2b10792e9234329107e309f15c434 /rust/kernel/processor.rs | |
parent | 072ce917bf95fc31f3c8c106b71a31e8607553ce (diff) |
clk: bcm: rpi: Turn firmware clock on/off when preparing/unpreparing
Currently, when we prepare or unprepare RPi's clocks, we don't actually
enable/disable the firmware clock. This means that
`clk_disable_unprepare()` doesn't actually change the clock state at
all, nor does it lowers the clock rate.
From the Mailbox Property Interface documentation [1], we can see that
we should use `RPI_FIRMWARE_SET_CLOCK_STATE` to set the clock state
off/on. Therefore, use `RPI_FIRMWARE_SET_CLOCK_STATE` to create a
prepare and an unprepare hook for RPi's firmware clock.
As now the clocks are actually turned off, some of them are now marked
CLK_IS_CRITICAL, as those are required to be on during the whole system
operation.
Link: https://github.com/raspberrypi/firmware/wiki/Mailbox-property-interface [1]
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'rust/kernel/processor.rs')
0 files changed, 0 insertions, 0 deletions