Patchwork [v1,2/5] crypto: ccp: Add psp enabled message when initialization succeeds

login
register
mail settings
Submitter Tom Lendacky
Date July 3, 2018, 5:11 p.m.
Message ID <20180703171142.3225.21481.stgit@tlendack-t1.amdoffice.net>
Download mbox | patch
Permalink /patch/10504789/
State Accepted
Delegated to: Herbert Xu
Headers show

Comments

Tom Lendacky - July 3, 2018, 5:11 p.m.
Add a dev_notice() message to the PSP initialization to report when the
PSP initialization has succeeded and the PSP is enabled.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
---
 drivers/crypto/ccp/psp-dev.c |    2 ++
 1 file changed, 2 insertions(+)
Gary R Hook - July 5, 2018, 6:23 p.m.
On 07/03/2018 12:11 PM, Tom Lendacky wrote:
> Add a dev_notice() message to the PSP initialization to report when the
> PSP initialization has succeeded and the PSP is enabled.
> 
> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>

Acked-by: Gary R Hook <gary.hook@amd.com>

> ---
>   drivers/crypto/ccp/psp-dev.c |    2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c
> index 973d683..91ef6ed 100644
> --- a/drivers/crypto/ccp/psp-dev.c
> +++ b/drivers/crypto/ccp/psp-dev.c
> @@ -840,6 +840,8 @@ int psp_dev_init(struct sp_device *sp)
>   	/* Enable interrupt */
>   	iowrite32(-1, psp->io_regs + PSP_P2CMSG_INTEN);
>   
> +	dev_notice(dev, "psp enabled\n");
> +
>   	return 0;
>   
>   e_irq:
>

Patch

diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c
index 973d683..91ef6ed 100644
--- a/drivers/crypto/ccp/psp-dev.c
+++ b/drivers/crypto/ccp/psp-dev.c
@@ -840,6 +840,8 @@  int psp_dev_init(struct sp_device *sp)
 	/* Enable interrupt */
 	iowrite32(-1, psp->io_regs + PSP_P2CMSG_INTEN);
 
+	dev_notice(dev, "psp enabled\n");
+
 	return 0;
 
 e_irq: