Commit 84ee393b authored by Mario Limonciello's avatar Mario Limonciello Committed by Herbert Xu

crypto: ccp - Allow PSP driver to load without SEV/TEE support

Previously the PSP probe routine would fail if both SEV and TEE were
missing.  This is possibly the case for some client parts.

As capabilities can now be accessed from userspace, it may still be
useful to have the PSP driver finish loading so that those capabilities
can be read.
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 50c4decc
...@@ -99,18 +99,6 @@ static int psp_check_tee_support(struct psp_device *psp) ...@@ -99,18 +99,6 @@ static int psp_check_tee_support(struct psp_device *psp)
return 0; return 0;
} }
static int psp_check_support(struct psp_device *psp)
{
int sev_support = psp_check_sev_support(psp);
int tee_support = psp_check_tee_support(psp);
/* Return error if device neither supports SEV nor TEE */
if (sev_support && tee_support)
return -ENODEV;
return 0;
}
static int psp_init(struct psp_device *psp) static int psp_init(struct psp_device *psp)
{ {
int ret; int ret;
...@@ -156,10 +144,6 @@ int psp_dev_init(struct sp_device *sp) ...@@ -156,10 +144,6 @@ int psp_dev_init(struct sp_device *sp)
if (ret) if (ret)
goto e_disable; goto e_disable;
ret = psp_check_support(psp);
if (ret)
goto e_disable;
/* Disable and clear interrupts until ready */ /* Disable and clear interrupts until ready */
iowrite32(0, psp->io_regs + psp->vdata->inten_reg); iowrite32(0, psp->io_regs + psp->vdata->inten_reg);
iowrite32(-1, psp->io_regs + psp->vdata->intsts_reg); iowrite32(-1, psp->io_regs + psp->vdata->intsts_reg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment