soc: mediatek: mtk-svs: restore default voltages when svs_init02() fail
[ Upstream commit
5e0d99bad2bc44d8a22d1846198bb3d4387c8c77 ]
If svs init02 fail, it means we cannot rely on svs bank voltages anymore.
We need to disable svs function and restore DVFS opp voltages back to the
default voltages for making sure we have enough DVFS voltages.
Fixes: 7ba1a4be26a6 ("soc: mediatek: SVS: introduce MTK SVS engine")
Fixes: 2ea21532c884 ("soc: mediatek: SVS: add mt8192 SVS GPU driver")
Signed-off-by: Roger Lu <roger.lu@mediatek.com>
Link: https://lore.kernel.org/r/20230111074528.29354-2-roger.lu@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>