Skip to content

Commit

Permalink
can: flexcan: fix p1010 state transition issue
Browse files Browse the repository at this point in the history
Enable FLEXCAN_QUIRK_BROKEN_WERR_STATE and
FLEXCAN_QUIRK_BROKEN_PERR_STATE for p1010 to report correct state
transitions.

Signed-off-by: Zhu Yi <yi.zhu5@cn.bosch.com>
Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com>
Acked-by: Wolfgang Grandegger <wg@grandegger.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v4.11
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
ZHU Yi (ST-FIR/ENG1-Zhu) authored and Marc Kleine-Budde committed Oct 19, 2017
1 parent 083c557 commit fb5b91d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/can/flexcan.c
Original file line number Diff line number Diff line change
@@ -282,7 +282,8 @@ struct flexcan_priv {
};

static const struct flexcan_devtype_data fsl_p1010_devtype_data = {
.quirks = FLEXCAN_QUIRK_BROKEN_WERR_STATE,
.quirks = FLEXCAN_QUIRK_BROKEN_WERR_STATE |
FLEXCAN_QUIRK_BROKEN_PERR_STATE,
};

static const struct flexcan_devtype_data fsl_imx28_devtype_data = {

0 comments on commit fb5b91d

Please sign in to comment.