-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I'm constantly getting a situation where the driver stops processing interrupts because it detected an invalid IVMIF situation.
i.e this dmesg message:
found IVMIF situation not supported by driver - bdiag = [0x%08x, 0x%08x]
Looking at the registeres I can see that the IMVIF interrupt flag is set even though IMVIE flag is not set and thus the Invalid Message Interrupt is not enabled at all.
Also no error flags are set in BDIAG so mcp25xxfd_can_int_handle_ivmif returns an error, making the whole driver stop processing interrupts.
As a workaround I added a check at the beginning of mcp25xxfd_can_int_handle_ivmif to make sure that IMVIE is enabled before proceeding.
See the attached diff
This resolves the issue for me however I'm still not sure why I see IVMIF interrupts even though IMVIE is disabled.
Any ideas?
ivmif.txt