Skip to content

Commit

Permalink
can: m_can_platform: remove unnecessary m_can_class_resume() call
Browse files Browse the repository at this point in the history
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: f524f82 ("can: m_can: Create a m_can platform framework")
Signed-off-by: Pankaj Sharma <[email protected]>
Signed-off-by: Sriram Dash <[email protected]>
Acked-by: Dan Murphy <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
  • Loading branch information
Pankaj Sharma authored and marckleinebudde committed Nov 22, 2019
1 parent 2ea8724 commit 0704c57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/can/m_can/m_can_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0704c57

Please sign in to comment.