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)
commit8ce8c0abcba314e1fe954a1840f6568bf5aef2ef
tree1c3c70add79629bd984a588e0684efc3af2cef8a
parent877a902103fd3ed15872a5d740fca8aa3f5fa33f
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