Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ccp - Drop TEE support for IRQ handler

The only PSP mailbox that currently supports interrupt on completion
is the SEV mailbox. Drop the dead code for the TEE subdriver to
potentially call it.

Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Mario Limonciello and committed by
Herbert Xu
a7ca7bbd f69ef19f

-22
-15
drivers/crypto/ccp/psp-dev.c
··· 46 46 if (status) { 47 47 if (psp->sev_irq_handler) 48 48 psp->sev_irq_handler(irq, psp->sev_irq_data, status); 49 - 50 - if (psp->tee_irq_handler) 51 - psp->tee_irq_handler(irq, psp->tee_irq_data, status); 52 49 } 53 50 54 51 /* Clear the interrupt status by writing the same value we read. */ ··· 214 217 void psp_clear_sev_irq_handler(struct psp_device *psp) 215 218 { 216 219 psp_set_sev_irq_handler(psp, NULL, NULL); 217 - } 218 - 219 - void psp_set_tee_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 220 - void *data) 221 - { 222 - psp->tee_irq_data = data; 223 - psp->tee_irq_handler = handler; 224 - } 225 - 226 - void psp_clear_tee_irq_handler(struct psp_device *psp) 227 - { 228 - psp_set_tee_irq_handler(psp, NULL, NULL); 229 220 } 230 221 231 222 struct psp_device *psp_get_master_device(void)
-7
drivers/crypto/ccp/psp-dev.h
··· 40 40 psp_irq_handler_t sev_irq_handler; 41 41 void *sev_irq_data; 42 42 43 - psp_irq_handler_t tee_irq_handler; 44 - void *tee_irq_data; 45 - 46 43 void *sev_data; 47 44 void *tee_data; 48 45 ··· 49 52 void psp_set_sev_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 50 53 void *data); 51 54 void psp_clear_sev_irq_handler(struct psp_device *psp); 52 - 53 - void psp_set_tee_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 54 - void *data); 55 - void psp_clear_tee_irq_handler(struct psp_device *psp); 56 55 57 56 struct psp_device *psp_get_master_device(void); 58 57