Skip to content

mcp25xxfd: invalid IVMIF condition makes the driver stop #8

@irrwisch1

Description

@irrwisch1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions