soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime
authorHerve Codina <herve.codina@bootlin.com>
Tue, 5 Dec 2023 15:21:14 +0000 (16:21 +0100)
committerHerve Codina <herve.codina@bootlin.com>
Tue, 12 Dec 2023 09:29:20 +0000 (10:29 +0100)
commit7a2ee1576dcc6bbe017a8283fba237b05b13fd15
tree32b06f8875a4fdab1d6637e12e0f0eb2fb94059c
parent0d75119d08448cb94583467c01adb212b0728502
soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime

Introduce qmc_chan_{get,set}_ts_info() function to allow timeslots
modification at runtime.

The modification is provided using qmc_chan_set_ts_info() and will be
applied on next qmc_chan_start().
qmc_chan_set_ts_info() must be called with the channel rx and/or tx
stopped.

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-18-herve.codina@bootlin.com
drivers/soc/fsl/qe/qmc.c
include/soc/fsl/qe/qmc.h