]> www.infradead.org Git - users/willy/xarray.git/commit
soc: fsl: cpm1: qmc: Re-order probe() operations
authorHerve Codina <herve.codina@bootlin.com>
Thu, 8 Aug 2024 07:11:18 +0000 (09:11 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 3 Sep 2024 05:49:20 +0000 (07:49 +0200)
commita13bf605342ea9df492b8159cadaa41862b53e15
tree71b01725043bbf2f0284c9ebc619ad890a3b6c2d
parentd23ae9f1815e89a0397cea85182ca0305be0056a
soc: fsl: cpm1: qmc: Re-order probe() operations

Current code handles CPM1 version of QMC. In the QUICC Engine (QE)
version, some operations done at probe() need to be done in a different
order.

In order to prepare the support for the QE version, changed the sequence
of operation done at probe():
- Retrieve the tsa_serial earlier, before initializing resources.
- Group SCC initialisation and do this initialization when it is really
  needed in the probe() sequence.

Having the QE compatible sequence in the CPM1 version does not lead to
any issue and works correctly without any regressions.

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