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
Makefile
common.c
common.h
composite.c
composite.h
div.c
div.h
gate.c
gate.h
mux.c
mux.h
pll.c
pll.h
sc9860-clk.c
sc9863a-clk.c