can: flexcan: fix i.MX6 state transition issue
authorZHU Yi (ST-FIR/ENG1-Zhu) <[email protected]>
Fri, 15 Sep 2017 07:05:50 +0000 (07:05 +0000)
committerMarc Kleine-Budde <[email protected]>
Thu, 19 Oct 2017 11:05:53 +0000 (13:05 +0200)
Enable FLEXCAN_QUIRK_BROKEN_PERR_STATE for i.MX6 to report correct state
transitions.

Signed-off-by: Zhu Yi <[email protected]>
Signed-off-by: Mark Jonas <[email protected]>
Acked-by: Wolfgang Grandegger <[email protected]>
Cc: linux-stable <[email protected]> # >= v4.11
Signed-off-by: Marc Kleine-Budde <[email protected]>
drivers/net/can/flexcan.c

index c83a09fa41663e0b080f39bc6e158e394995e0f9..d6ad12744ff10462efeb9f01050aa939f2becc42 100644 (file)
@@ -289,7 +289,7 @@ static const struct flexcan_devtype_data fsl_imx28_devtype_data;
 
 static const struct flexcan_devtype_data fsl_imx6q_devtype_data = {
        .quirks = FLEXCAN_QUIRK_DISABLE_RXFG | FLEXCAN_QUIRK_ENABLE_EACEN_RRS |
-               FLEXCAN_QUIRK_USE_OFF_TIMESTAMP,
+               FLEXCAN_QUIRK_USE_OFF_TIMESTAMP | FLEXCAN_QUIRK_BROKEN_PERR_STATE,
 };
 
 static const struct flexcan_devtype_data fsl_vf610_devtype_data = {