Linux CAN drivers development
 help / color / mirror / Atom feed
* [PATCH] can: m_can_platform: fix m_can_runtime_suspend()
@ 2020-06-08  9:43 Richard Genoud
  2020-06-08 14:27 ` Dan Murphy
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Genoud @ 2020-06-08  9:43 UTC (permalink / raw)
  To: Dan Murphy, Sriram Dash, Wolfgang Grandegger, Marc Kleine-Budde,
	Faiz Abbas
  Cc: linux-can, linux-kernel, Richard Genoud

Since commit f524f829b75a ("can: m_can: Create a m_can platform
framework"), the can peripheral on STM32MP1 wasn't working anymore.

The reason was a bad copy/paste maneuver that added a call to
m_can_class_suspend() in m_can_runtime_suspend().

Tested on STM32MP157C-DK2 and emSBC-Argon

Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
 drivers/net/can/m_can/m_can_platform.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/can/m_can/m_can_platform.c b/drivers/net/can/m_can/m_can_platform.c
index 38ea5e600fb8..e6d0cb9ee02f 100644
--- a/drivers/net/can/m_can/m_can_platform.c
+++ b/drivers/net/can/m_can/m_can_platform.c
@@ -144,8 +144,6 @@ static int __maybe_unused m_can_runtime_suspend(struct device *dev)
 	struct net_device *ndev = dev_get_drvdata(dev);
 	struct m_can_classdev *mcan_class = netdev_priv(ndev);
 
-	m_can_class_suspend(dev);
-
 	clk_disable_unprepare(mcan_class->cclk);
 	clk_disable_unprepare(mcan_class->hclk);
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-09  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-08  9:43 [PATCH] can: m_can_platform: fix m_can_runtime_suspend() Richard Genoud
2020-06-08 14:27 ` Dan Murphy
2020-06-09  8:47   ` Richard Genoud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox