soc: fsl: cpm1: qmc: Enable TRNSYNC only when needed
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:10:55 +0000 (09:10 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 3 Sep 2024 05:49:17 +0000 (07:49 +0200)
commitd285cf22f8c0347fc3df80e84f31e9179de4e6c6
tree59fbae5a1223a4005cd1be1f7ac6d95c5a4600fc
parentc3cc3e69b33fee3d276895e0e2d1a8fb37ea5d0e
soc: fsl: cpm1: qmc: Enable TRNSYNC only when needed

The TRNSYNC feature is enabled whatever the number of time-slots used.
The feature is needed only when more than one time-slot is used.

Improve the driver enabling TRNSYNC only when it is needed.

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-3-herve.codina@bootlin.com
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
drivers/soc/fsl/qe/qmc.c