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.
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