clk: sprd: set max_register according to mapping range
stable inclusion from stable-v5.10.178 commit 8a886f01b85d9575c6a197dd2e8f90d18e303d0a category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8a886f01b85d9575c6a197dd2e8f90d18e303d0a -------------------------------- [ Upstream commit 47d43086 ] 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: d41f59fd ("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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment