linux/drivers/clk/microchip
Pedro Kopper fbfa013eea
clk: microchip: mpfs: fix regmap_update_bits() mask/val order
mpfs_cfg_clk_set_rate() passes the mask and value arguments to
regmap_update_bits() in the wrong order. The resulting write becomes
reg = orig_reg | val, causing bits to not be cleared if the clock
divider changes.

Pass the arguments in the correct order so the divider field is updated
as intended.

Fixes: c6f2dddfa7 ("clk: microchip: mpfs: use regmap for clocks")
Signed-off-by: Pedro Kopper <pedro.kopper@microchip.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Cc: stable@vger.kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2026-08-19 23:11:09 -07:00
..
clk-mpfs-ccc.c clk: microchip: mpfs-ccc: fix peripheral driver registration failures after oob fix 2026-05-20 16:51:28 +01:00
clk-mpfs.c clk: microchip: mpfs: fix regmap_update_bits() mask/val order 2026-08-19 23:11:09 -07:00
clk-pic32.c clk: microchip: rename clk-core to clk-pic32 2026-05-05 15:30:03 +01:00
clk-pic32.h clk: microchip: rename clk-core to clk-pic32 2026-05-05 15:30:03 +01:00
clk-pic32mzda.c clk: microchip: rename clk-core to clk-pic32 2026-05-05 15:30:03 +01:00
Kconfig Revert "clk: microchip: core: allow driver to be compiled with COMPILE_TEST" 2026-02-10 16:48:59 +01:00
Makefile clk: microchip: rename clk-core to clk-pic32 2026-05-05 15:30:03 +01:00