Skip to content
Commit 6f995a22 authored by Joakim Zhang's avatar Joakim Zhang Committed by Paul Gortmaker
Browse files

can: flexcan: poll MCR_LPM_ACK instead of GPR ACK for stop mode acknowledgment

commit 048e3a34 upstream.

Stop Mode is entered when Stop Mode is requested at chip level and
MCR[LPM_ACK] is asserted by the FlexCAN.

Double check with IP owner, the MCR[LPM_ACK] bit should be polled for
stop mode acknowledgment, not the acknowledgment from chip level which
is used to gate flexcan clocks.

This patch depends on:

    b7603d08 ("can: flexcan: add low power enter/exit acknowledgment helper")

Fixes: 5f186c25

 (can: flexcan: fix stop mode acknowledgment)
Tested-by: default avatarSean Nyekjaer <sean@geanix.com>
Signed-off-by: default avatarJoakim Zhang <qiangqing.zhang@nxp.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v5.0
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 884b7cee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment