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

crypto: chelsio - un-register crypto algorithms

When a PCI device will be removed, cxgb4(LLD) will notify chcr(ULD).
Incase if it's a last pci device, chcr should un-register all the crypto
algorithms.

Signed-off-by: Devulapally Shiva Krishna <shiva@chelsio.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Devulapally Shiva Krishna and committed by
Herbert Xu
6ff78ffa f747426d

+2
+2
drivers/crypto/chelsio/chcr_core.c
··· 271 271 272 272 case CXGB4_STATE_DETACH: 273 273 chcr_detach_device(u_ctx); 274 + if (!atomic_read(&drv_data.dev_count)) 275 + stop_crypto(); 274 276 break; 275 277 276 278 case CXGB4_STATE_START_RECOVERY: