Re: mcp2517fd: transmit errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/12/20 2:22 PM, Kurt Van Dijck wrote:
> On Fri, 09 Oct 2020 19:40:57 +0200, Kurt Van Dijck wrote:
>> On Fri, 09 Oct 2020 18:24:02 +0200, Marc Kleine-Budde wrote:
>>> On 10/9/20 4:16 PM, Kurt Van Dijck wrote:
>>>> Any ideas what to look for?
>>>
>>> The mcp2517fd suffers from the MAB TX underflow errata: See 1. in
>>> http://ww1.microchip.com/downloads/en/DeviceDoc/MCP2517FD-External-CAN-FD-Controller-with-SPI-Interface-20005688B.pdf
>>>
>>> Compile the driver with "#define DEBUG" or remove the
>>> "MCP251XFD_QUIRK_MAB_NO_WARN" from the mcp251xfd_devtype_data_mcp2517fd. Then
>>> you should see an error message when the chip switches modes due to the MAB
>>> underrun.
>> I'll do this.
> 
> Yep, TX MAB underflow it is.

There's not much you can do against it...use a mcp2518fd. Maybe implementing
busy polling for spi transaction completion would bring a slight improvement
here....but that imx spi driver is a bit messy.

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux