]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: fsl: cpm1: qmc: Update TRNSYNC only in transparent mode
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:10:54 +0000 (09:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:33:26 +0000 (16:33 +0200)
commit531704571a7ea18e8d94ab95b8ae9f51a3f87b46
tree82de97cdba492b5871af7b8b4a0c34dec317567f
parentbc4a33eb74f60e0f29128ac05aca1fe9c9a4c89b
soc: fsl: cpm1: qmc: Update TRNSYNC only in transparent mode

commit c3cc3e69b33fee3d276895e0e2d1a8fb37ea5d0e upstream.

The TRNSYNC feature is available (and enabled) only in transparent mode.

Since commit 7cc9bda9c163 ("soc: fsl: cpm1: qmc: Handle timeslot entries
at channel start() and stop()") TRNSYNC register is updated in
transparent and hdlc mode. In hdlc mode, the address of the TRNSYNC
register is used by the QMC for other internal purpose. Even if no weird
results were observed in hdlc mode, touching this register in this mode
is wrong.

Update TRNSYNC only in transparent mode.

Fixes: 7cc9bda9c163 ("soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()")
Cc: stable@vger.kernel.org
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20240808071132.149251-2-herve.codina@bootlin.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/fsl/qe/qmc.c