mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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>
This commit is contained in:
committed by
Herbert Xu
parent
f747426d6b
commit
6ff78ffadd
@@ -271,6 +271,8 @@ static int chcr_uld_state_change(void *handle, enum cxgb4_state state)
|
|||||||
|
|
||||||
case CXGB4_STATE_DETACH:
|
case CXGB4_STATE_DETACH:
|
||||||
chcr_detach_device(u_ctx);
|
chcr_detach_device(u_ctx);
|
||||||
|
if (!atomic_read(&drv_data.dev_count))
|
||||||
|
stop_crypto();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CXGB4_STATE_START_RECOVERY:
|
case CXGB4_STATE_START_RECOVERY:
|
||||||
|
Reference in New Issue
Block a user