Skip to content

Commit 6055225

Browse files
sknseanmarckleinebudde
authored andcommitted
can: m_can: tcan4x5x: add required delay after reset
According to section "8.3.8 RST Pin" in the datasheet we are required to wait >700us after the device is reset. Signed-off-by: Sean Nyekjaer <[email protected]> Acked-by: Dan Murphy <[email protected]> Cc: linux-stable <[email protected]> # >= v5.4 Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 048e3a3 commit 6055225

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/can/m_can/tcan4x5x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ static int tcan4x5x_parse_config(struct m_can_classdev *cdev)
354354
if (IS_ERR(tcan4x5x->reset_gpio))
355355
tcan4x5x->reset_gpio = NULL;
356356

357+
usleep_range(700, 1000);
358+
357359
tcan4x5x->device_state_gpio = devm_gpiod_get_optional(cdev->dev,
358360
"device-state",
359361
GPIOD_IN);

0 commit comments

Comments
 (0)