]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: add ECC initialization for LX2160A
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Tue, 20 Oct 2020 15:53:56 +0000 (23:53 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 3 Nov 2020 21:30:33 +0000 (22:30 +0100)
commit4624cc92a5f95b1add7c7e6a10299b60803a89e9
tree6c1f65463eb6a84b84acb68b0fd22974f2d8f870
parentd09f67f5d155c10b0491fecc607855a23a41b06b
can: flexcan: add ECC initialization for LX2160A

After double check with Layerscape CAN owner (Pankaj Bansal), confirm
that LX2160A indeed supports ECC feature, so correct the feature table.

For SoCs with ECC supported, even use FLEXCAN_QUIRK_DISABLE_MECR quirk to
disable non-correctable errors interrupt and freeze mode, had better use
FLEXCAN_QUIRK_SUPPORT_ECC quirk to initialize all memory.

Fixes: 5d4bc6b0fd199 ("can: flexcan: add lx2160ar1 support")
Cc: Pankaj Bansal <pankaj.bansal@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Link: https://lore.kernel.org/r/20201020155402.30318-5-qiangqing.zhang@nxp.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c