can: flexcan: poll MCR_LPM_ACK instead of GPR ACK for stop mode acknowledgment
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Wed, 4 Dec 2019 11:36:14 +0000 (11:36 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 8 Dec 2019 11:21:35 +0000 (12:21 +0100)
commit048e3a34a2e7669bf475eb56c7345ad9d8d2b8e3
tree134a557b0285497dfc3f6a3901c4e0b5b026a450
parentb7603d080ffcf8689ec91ca300caf84d8dbed317
can: flexcan: poll MCR_LPM_ACK instead of GPR ACK for stop mode acknowledgment

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:

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

Fixes: 5f186c257fa4 (can: flexcan: fix stop mode acknowledgment)
Tested-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v5.0
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c