linux-stable/drivers/clk/sprd
Chunyan Zhang 47d4308653 clk: sprd: set max_register according to mapping range
In sprd clock driver, regmap_config.max_register was set to a fixed value
which is likely larger than the address range configured in device tree,
when reading registers through debugfs it would cause access violation.

Fixes: d41f59fd92 ("clk: sprd: Add common infrastructure")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20230316023624.758204-1-chunyan.zhang@unisoc.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2023-03-16 16:33:11 -07:00
..
common.c clk: sprd: set max_register according to mapping range 2023-03-16 16:33:11 -07:00
common.h
composite.c
composite.h clk: sprd: Add macros for referencing parents without strings 2020-03-24 19:03:57 -07:00
div.c
div.h clk: sprd: Add macros for referencing parents without strings 2020-03-24 19:03:57 -07:00
gate.c clk: sprd: check its parent status before reading gate clock 2020-05-26 23:41:14 -07:00
gate.h clk: sprd: check its parent status before reading gate clock 2020-05-26 23:41:14 -07:00
Kconfig clk: sprd: Add dependency for SPRD_UMS512_CLK 2023-02-10 16:13:48 -08:00
Makefile clk: sprd: Add clocks support for UMS512 2022-09-30 12:22:19 -07:00
mux.c
mux.h clk: sprd: Add macros for referencing parents without strings 2020-03-24 19:03:57 -07:00
pll.c clk: sprd: return correct type of value for _sprd_pll_recalc_rate 2020-05-26 20:14:56 -07:00
pll.h clk: sprd: Add macros for referencing parents without strings 2020-03-24 19:03:57 -07:00
sc9860-clk.c clk: sprd: Add check for return value of sprd_clk_regmap_init() 2019-06-27 15:08:29 -07:00
sc9863a-clk.c This time around we have 4 lines of diff in the core framework, removing a 2020-06-10 11:42:19 -07:00
ums512-clk.c clk: sprd: Add clocks support for UMS512 2022-09-30 12:22:19 -07:00