]> git.baikalelectronics.ru Git - kernel.git/commit
can: slcan: send the open/close commands to the adapter
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Tue, 28 Jun 2022 16:31:32 +0000 (18:31 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 3 Jul 2022 09:34:41 +0000 (11:34 +0200)
commit2b5677fa42caf90fdbd985bd586893214987ea2f
treeed00fe909e311748d0e209874c4e3d8017e1c0e0
parentf874a0b2bf05b35003fd578520c217b58b47d23b
can: slcan: send the open/close commands to the adapter

In case the bitrate has been set via ip tool, this patch changes the
driver to send the open ("O\r") and close ("C\r) commands to the
adapter.

Link: https://lore.kernel.org/all/20220628163137.413025-9-dario.binacchi@amarulasolutions.com
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Tested-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/slcan.c