Re: [PATCH 1/2] can: D_CAN: perform a sofware reset on open

From: Kurt Van Dijck
Date: Tue Oct 01 2019 - 09:40:03 EST


On do, 26 sep 2019 08:50:44 +0000, Jeroen Hofstee wrote:
> When the C_CAN interface is closed it is put in power down mode, but
> does not reset the error counters / state. So reset the D_CAN on open,
> so the reported state and the actual state match.
>
> According to [1], the C_CAN module doesn't have the software reset.
>
> [1] http://www.bosch-semiconductors.com/media/ip_modules/pdf_2/c_can_fd8/users_manual_c_can_fd8_r210_1.pdf
>
> Signed-off-by: Jeroen Hofstee <jhofstee@xxxxxxxxxxxxxxxxx>

I observed no problems after applying the patch.

Tested-by: Kurt Van Dijck <dev.kurt@xxxxxxxxxxxxxxxxxxxxxx>