soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()
authorHerve Codina <herve.codina@bootlin.com>
Tue, 5 Dec 2023 15:21:08 +0000 (16:21 +0100)
committerHerve Codina <herve.codina@bootlin.com>
Tue, 12 Dec 2023 09:29:20 +0000 (10:29 +0100)
commitf2deea16bf187ad6e1f2a7b0d2fd0b1a4db0b1b7
tree4ba3ca4133e8d2c9dab2e32286de94e6510b11f3
parentb1891c13645b67c9cd2c661a693b9b6b56b87e80
soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()

The timeslots checked in qmc_check_chans() are the timeslots used.
With the introduction of the available timeslots, the used timeslots
are a subset of the available timeslots. The timeslots checked during
the qmc_check_chans() call should be the available ones.

Simply update and check the available timeslots instead of the used
timeslots in qmc_check_chans().

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/20231205152116.122512-12-herve.codina@bootlin.com
drivers/soc/fsl/qe/qmc.c