[PATCH v3 10/14] soc: mediatek: mtk-svs: reset svs when svs_resume() fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reset svs when svs_resume() fail.

Signed-off-by: Roger Lu <roger.lu@xxxxxxxxxxxx>
---
 drivers/soc/mediatek/mtk-svs.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c
index d8b759897fec..567536e32a46 100644
--- a/drivers/soc/mediatek/mtk-svs.c
+++ b/drivers/soc/mediatek/mtk-svs.c
@@ -1621,12 +1621,16 @@ static int svs_resume(struct device *dev)
 
 	ret = svs_init02(svsp);
 	if (ret)
-		goto svs_resume_clk_disable;
+		goto svs_resume_reset_assert;
 
 	svs_mon_mode(svsp);
 
 	return 0;
 
+svs_resume_reset_assert:
+	dev_info(svsp->dev, "assert reset %d\n",
+		 reset_control_assert(svsp->rst));
+
 svs_resume_clk_disable:
 	svs_clk_disable(svsp);
 
-- 
2.18.0




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux