]> git.baikalelectronics.ru Git - kernel.git/commit
soc: mediatek: mtk-svs: restore default voltages when svs_init02() fail
authorRoger Lu <roger.lu@mediatek.com>
Wed, 11 Jan 2023 07:45:15 +0000 (15:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:18 +0000 (13:55 +0100)
commit514d0d492ec6bb0bceff15ee0b8f72f149d6dc3a
tree86d1c9d9a4c6a0e9bc6c15caba714cbc5b05ebe3
parentae33c04ebdd84a238b609875117d083e5b1d9e71
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>
drivers/soc/mediatek/mtk-svs.c