]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32: Do not allow selection of e5500 or e6500 CPUs on PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 11 Jul 2022 14:19:29 +0000 (16:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:06 +0000 (11:18 +0200)
commita3a6783fda4ee97d7b37d888c47c420633f5e7cc
tree5426fe668d8dada61ae4706667db4f938c5dd399
parent596777751457033d356f0d00c2db49f99dd31a0a
powerpc/32: Do not allow selection of e5500 or e6500 CPUs on PPC32

[ Upstream commit 5fd1c3473ddcac828d0a5dc1efe4d74a1b2ae61a ]

Commit bb82fdd204cc ("powerpc: Allow CPU selection also on PPC32")
enlarged the CPU selection logic to PPC32 by removing depend to
PPC64, and failed to restrict that depend to E5500_CPU and E6500_CPU.
Fortunately that got unnoticed because -mcpu=8540 will override the
-mcpu=e500mc64 or -mpcu=e6500 as they are ealier, but that's
fragile and may no be right in the future.

Add back the depend PPC64 on E5500_CPU and E6500_CPU.

Fixes: bb82fdd204cc ("powerpc: Allow CPU selection also on PPC32")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8abab4888da69ff78b73a56f64d9678a7bf684e9.1657549153.git.christophe.leroy@csgroup.eu
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/platforms/Kconfig.cputype