crypto: ccp - Move dev_info/err messages for SEV/SNP init and shutdown
authorAshish Kalra <ashish.kalra@amd.com>
Mon, 24 Mar 2025 21:14:13 +0000 (21:14 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 05:22:25 +0000 (13:22 +0800)
commit9770b428b1a28360663f1f5e524ee458b4cf454b
tree81f7572ab36ad6d63ef1ad700519d9f155db8ab8
parent6131e119f5799bec55535530fa2fc44f5c7be1f1
crypto: ccp - Move dev_info/err messages for SEV/SNP init and shutdown

Move dev_info and dev_err messages related to SEV/SNP initialization
and shutdown into __sev_platform_init_locked(), __sev_snp_init_locked()
and __sev_platform_shutdown_locked(), __sev_snp_shutdown_locked() so
that they don't need to be issued from callers.

This allows both _sev_platform_init_locked() and various SEV/SNP ioctls
to call __sev_platform_init_locked(), __sev_snp_init_locked() and
__sev_platform_shutdown_locked(), __sev_snp_shutdown_locked() for
implicit SEV/SNP initialization and shutdown without additionally
printing any errors/success messages.

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sev-dev.c