]> git.baikalelectronics.ru Git - kernel.git/commit
can: tcan4x5x: tcan4x5x_parse_config(): reset device before register access
authorSean Nyekjaer <sean@geanix.com>
Wed, 11 Dec 2019 13:58:51 +0000 (14:58 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Jan 2020 14:34:26 +0000 (15:34 +0100)
commita210f1b656776f92d4f165eacdf7b788895ae878
tree9decf44ffa66e54978e82a88e9a3d6f2d673ca8b
parent12065c47e5db669629b150260d2fb283d3c38e38
can: tcan4x5x: tcan4x5x_parse_config(): reset device before register access

It's a good idea to reset a ip-block/spi device before using it, this
patch will reset the device.

And a generic reset function if needed elsewhere.

Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x.c