linux-rpi icon indicating copy to clipboard operation
linux-rpi copied to clipboard

mcp25xxfd: crash/bug when stopping/starting the can interface

Open irrwisch1 opened this issue 6 years ago • 0 comments

Hi,

I was having two issues when stoping/starting the can interface.

The first issue was that sometimes an interrupt came when the interface was already stopped, producing a kernel panic

The second issue was that the driver was sometimes getting confused with the TEF fifo after restarting, presumably because some structures weren't cleared when the interface was stopped.

I made the following changes (see the attached diff) and those seem to fix these issues for me, but you may want to review those changes.

mcp25xxfd_crash.txt

irrwisch1 avatar Jun 27 '19 09:06 irrwisch1