提交 0704c574 编写于 作者: P Pankaj Sharma 提交者: Marc Kleine-Budde

can: m_can_platform: remove unnecessary m_can_class_resume() call

The function m_can_runtime_resume() is getting recursively called from
m_can_class_resume(). This results in a lock up.

We need not call m_can_class_resume() during m_can_runtime_resume().

Fixes: f524f829 ("can: m_can: Create a m_can platform framework")
Signed-off-by: NPankaj Sharma <pankj.sharma@samsung.com>
Signed-off-by: NSriram Dash <sriram.dash@samsung.com>
Acked-by: NDan Murphy <dmurphy@ti.com>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 2ea87249
......@@ -166,8 +166,6 @@ static int __maybe_unused m_can_runtime_resume(struct device *dev)
if (err)
clk_disable_unprepare(mcan_class->hclk);
m_can_class_resume(dev);
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册