Linux CAN drivers development
 help / color / mirror / Atom feed
* [PATCH net-next] can: sja1000: Fix comment
@ 2023-09-22 15:51 Miquel Raynal
  2023-09-28 12:35 ` Simon Horman
  2023-10-04 10:14 ` Marc Kleine-Budde
  0 siblings, 2 replies; 4+ messages in thread
From: Miquel Raynal @ 2023-09-22 15:51 UTC (permalink / raw)
  To: Wolfgang Grandegger, Marc Kleine-Budde
  Cc: David S. Miller, Jakub Kicinski, Paolo Abeni, Eric Dumazet,
	netdev, linux-can, Jérémie Dautheribes,
	Thomas Petazzoni, sylvain.girard, pascal.eberhard, Miquel Raynal

There is likely a copy-paste error here, as the exact same comment
appears below in this function, one time calling set_reset_mode(), the
other set_normal_mode().

Fixes: 429da1cc841b ("can: Driver for the SJA1000 CAN controller")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/net/can/sja1000/sja1000.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/can/sja1000/sja1000.c b/drivers/net/can/sja1000/sja1000.c
index 158a17c9d46b..ae47fc72aa96 100644
--- a/drivers/net/can/sja1000/sja1000.c
+++ b/drivers/net/can/sja1000/sja1000.c
@@ -207,7 +207,7 @@ static void sja1000_start(struct net_device *dev)
 {
 	struct sja1000_priv *priv = netdev_priv(dev);
 
-	/* leave reset mode */
+	/* enter reset mode */
 	if (priv->can.state != CAN_STATE_STOPPED)
 		set_reset_mode(dev);
 
-- 
2.34.1


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

end of thread, other threads:[~2023-10-04 10:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-22 15:51 [PATCH net-next] can: sja1000: Fix comment Miquel Raynal
2023-09-28 12:35 ` Simon Horman
2023-10-01 17:13   ` Miquel Raynal
2023-10-04 10:14 ` Marc Kleine-Budde

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