]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: ralink: mtmips: fix clock plan for Ralink SoC RT3883
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Tue, 10 Sep 2024 04:40:22 +0000 (06:40 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 14 Nov 2024 20:49:29 +0000 (12:49 -0800)
commit33239152305567b3e9bf052f71fd4baecd626341
tree744da08a66da50fe36d69040639b085c99a44fb3
parent9bf7cfdbcf1c9fabc116e8f2f859c321f7c75fd0
clk: ralink: mtmips: fix clock plan for Ralink SoC RT3883

Clock plan for Ralink SoC RT3883 needs an extra 'periph' clock to properly
set some peripherals that has this clock as their parent. When this driver
was mainlined we could not find any active users of this SoC so we cannot
perform any real tests for it. Now, one user of a Belkin f9k1109 version 1
device which uses this SoC appear and reported some issues in openWRT:
- https://github.com/openwrt/openwrt/issues/16054
The peripherals that are wrong are 'uart', 'i2c', 'i2s' and 'uartlite' which
has a not defined 'periph' clock as parent. Hence, introduce it to have a
properly working clock plan for this SoC.

Fixes: 6f3b15586eef ("clk: ralink: add clock and reset driver for MTMIPS SoCs")
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20240910044024.120009-2-sergio.paracuellos@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ralink/clk-mtmips.c