summaryrefslogtreecommitdiff
path: root/drivers/clk/mediatek/clk-mt8183-apmixedsys.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2023-07-19 15:42:50 +0800
committerStephen Boyd <sboyd@kernel.org>2023-07-19 12:40:22 -0700
commit1eb8d61ac5c9c7ec56bb96d433532807509b9288 (patch)
tree5d7e8b64a0ee0387113646caa684b100b3d4b934 /drivers/clk/mediatek/clk-mt8183-apmixedsys.c
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
clk: mediatek: mt8183: Add back SSPM related clocks
This reverts commit 860690a93ef23b567f781c1b631623e27190f101. On the MT8183, the SSPM related clocks were removed claiming a lack of usage. This however causes some issues when the driver was converted to the new simple-probe mechanism. This mechanism allocates enough space for all the clocks defined in the clock driver, not the highest index in the DT binding. This leads to out-of-bound writes if their are holes in the DT binding or the driver (due to deprecated or unimplemented clocks). These errors can go unnoticed and cause memory corruption, leading to crashes in unrelated areas, or nothing at all. KASAN will detect them. Add the SSPM related clocks back to the MT8183 clock driver to fully implement the DT binding. The SSPM clocks are for the power management co-processor, and should never be turned off. They are marked as such. Fixes: 3f37ba7cc385 ("clk: mediatek: mt8183: Convert all remaining clocks to common probe") Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20230719074251.1219089-1-wenst@chromium.org Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt8183-apmixedsys.c')
0 files changed, 0 insertions, 0 deletions