diff options
author | Herve Codina <herve.codina@bootlin.com> | 2023-02-17 15:56:39 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-05 23:37:01 +0000 |
commit | b38736ac01e34491f339e12f9883dc4a8cc3d358 (patch) | |
tree | 261ba821deca92c415b6f11e964372600d879302 /arch/powerpc/platforms/8xx | |
parent | a2b117414f16b036d2eb5081d5776872e3731c51 (diff) | |
download | linux-stable-b38736ac01e34491f339e12f9883dc4a8cc3d358.tar.gz linux-stable-b38736ac01e34491f339e12f9883dc4a8cc3d358.tar.bz2 linux-stable-b38736ac01e34491f339e12f9883dc4a8cc3d358.zip |
powerpc/8xx: Use a larger CPM1 command check mask
The CPM1 command mask is defined for use with the standard
CPM1 command register as described in the user's manual:
0 |1 3|4 7|8 11|12 14| 15|
RST| - |OPCODE|CH_NUM| - |FLG|
In the QMC extension the CPM1 command register is redefined
(QMC supplement user's manuel) with the following mapping:
0 |1 3|4 7|8 13|14| 15|
RST|QMC OPCODE| 1110|CHANNEL_NUMBER| -|FLG|
Extend the check command mask in order to support both the
standard CH_NUM field and the QMC extension CHANNEL_NUMBER
field.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230217145645.1768659-5-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'arch/powerpc/platforms/8xx')
-rw-r--r-- | arch/powerpc/platforms/8xx/cpm1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/8xx/cpm1.c b/arch/powerpc/platforms/8xx/cpm1.c index bb38c8d8f8de..c57fcda7a4bb 100644 --- a/arch/powerpc/platforms/8xx/cpm1.c +++ b/arch/powerpc/platforms/8xx/cpm1.c @@ -94,7 +94,7 @@ int cpm_command(u32 command, u8 opcode) int i, ret; unsigned long flags; - if (command & 0xffffff0f) + if (command & 0xffffff03) return -EINVAL; spin_lock_irqsave(&cmd_lock, flags); |