soc: fsl: cpm1: qmc: Extend the API to provide Rx status
authorHerve Codina <herve.codina@bootlin.com>
Tue, 5 Dec 2023 15:21:01 +0000 (16:21 +0100)
committerHerve Codina <herve.codina@bootlin.com>
Tue, 12 Dec 2023 09:29:20 +0000 (10:29 +0100)
commit0e034aec5be2e8b1199b87b04d32e4a8b805a9db
tree32031ae178c679e07a900ae4dc635386ec8acd20
parentdfe66d012af2ddfa566cf9c860b8472b412fb7e4
soc: fsl: cpm1: qmc: Extend the API to provide Rx status

In HDLC mode, some status flags related to the data read transfer can be
set by the hardware and need to be known by a QMC consumer for further
analysis.

Extend the API in order to provide these transfer status flags at the
read complete() call.

In TRANSPARENT mode, these flags have no meaning. Keep only one read
complete() API and update the consumers working in transparent mode.
In this case, the newly introduced flags parameter is simply unused.

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