Commit 3574a516 authored by Michal Suchanek's avatar Michal Suchanek Committed by Herbert Xu
Browse files

crypto: aes-gcm-p10 - Use the correct bit to test for P10



A hwcap feature bit is passed to cpu_has_feature, resulting in testing
for CPU_FTR_MMCRA instead of the 3.1 platform revision.

Fixes: c954b252 ("crypto: powerpc/p10-aes-gcm - Register modules as SIMD")
Reported-by: default avatarNicolai Stange <nstange@suse.com>
Signed-off-by: default avatarMichal Suchanek <msuchanek@suse.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5465951e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -414,7 +414,7 @@ static int __init p10_init(void)
{
	int ret;

	if (!cpu_has_feature(PPC_FEATURE2_ARCH_3_1))
	if (!cpu_has_feature(CPU_FTR_ARCH_31))
		return 0;

	ret = simd_register_aeads_compat(gcm_aes_algs,