WSL2-Linux-Kernel/drivers/clk/sprd
Chunyan Zhang aa2607bae4 clk: sprd: set max_register according to mapping range
[ Upstream commit 47d4308653 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-20 12:13:52 +02:00
..
Kconfig clk: sprd: add clocks support for SC9863A 2020-03-24 19:03:57 -07:00
Makefile clk: sprd: add clocks support for SC9863A 2020-03-24 19:03:57 -07:00
common.c clk: sprd: set max_register according to mapping range 2023-04-20 12:13:52 +02:00
common.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
composite.c
composite.h clk: sprd: Add macros for referencing parents without strings 2020-03-24 19:03:57 -07:00
div.c Merge branch 'clk-divider-container' into clk-next 2018-01-26 16:43:14 -08:00
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
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