can: flexcan: assert FRZ bit in flexcan_chip_freeze()
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Thu, 18 Feb 2021 11:00:35 +0000 (19:00 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 1 Mar 2021 09:34:56 +0000 (10:34 +0100)
commit449052cfebf624b670faa040245d3feed770d22f
treef19f83604e503cc912ff9f25c09d652b845792c1
parent447621e373bd1b22300445639b43c39f399e4c73
can: flexcan: assert FRZ bit in flexcan_chip_freeze()

Assert HALT bit to enter freeze mode, there is a premise that FRZ bit is
asserted. This patch asserts FRZ bit in flexcan_chip_freeze, although
the reset value is 1b'1. This is a prepare patch, later patch will
invoke flexcan_chip_freeze() to enter freeze mode, which polling freeze
mode acknowledge.

Fixes: b1aa1c7a2165b ("can: flexcan: fix transition from and to freeze mode in chip_{,un}freeze")
Link: https://lore.kernel.org/r/20210218110037.16591-2-qiangqing.zhang@nxp.com
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c