Commit d44f1558 authored by Martin Sperl's avatar Martin Sperl Committed by Manivannan Sadhasivam
Browse files

can: mcp25xxfd: Optimize TEF read by avoiding unnecessary SPI transfers



We have already enough information to know how many tx-messages have
been terminated so that we do not have to query TEF every time if
there is anything pending but we can read the tefs blindly.

This avoids 1 SPI transfer per TEF read.

Signed-off-by: default avatarMartin Sperl <kernel@martin.sperl.org>
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
parent f9fe368a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment