• Jeroen Hofstee's avatar
    can: ti_hecc: keep MIM and MD set · 10f5d55d
    Jeroen Hofstee authored
    The HECC_CANMIM is set in the xmit path and cleared in the interrupt.
    Since this is done with a read, modify, write action the register might
    end up with some more MIM enabled then intended, since it is not
    protected. That doesn't matter at all, since the tx interrupt disables
    the mailbox with HECC_CANME (while holding a spinlock). So lets just
    always keep MIM set.
    
    While at it, since the mailbox direction never changes, don't set it
    every time a message is send, ti_hecc_reset() already sets them to tx.
    Signed-off-by: default avatarJeroen Hofstee <jhofstee@victronenergy.com>
    Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
    10f5d55d
ti_hecc.c 29.5 KB