]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251x: only reset hardware as required
authorTimo Schlüßler <schluessler@krause.de>
Fri, 11 Oct 2019 13:38:20 +0000 (15:38 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 11 Nov 2019 20:57:28 +0000 (21:57 +0100)
commitdc0c02d685797425b18a56f9daa515e9b64ac9c4
tree1c3c70add79629bd984a588e0684efc3af2cef8a
parent8b19f12e0d8f16bfa5fb50f35ce1b7a37988cb8c
can: mcp251x: only reset hardware as required

This prevents unwanted glitches on the outputs when changing the link
state of the can interface or when resuming from suspend. Only if the
device is powered off during suspend it needs to be resetted as required
by the specs.

Signed-off-by: Timo Schlüßler <schluessler@krause.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251x.c