crypto: hisilicon/qm - fix VF not available after PF FLR
authorShukun Tan <tanshukun1@huawei.com>
Sat, 15 Aug 2020 09:56:14 +0000 (17:56 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:47:52 +0000 (14:47 +1000)
commit8d8f8d494da7834708442070841bc91812fd3e00
tree2f4c6e03f46852a89e1ba3bbf5513684022fe797
parente88dd6e1d8370fb11af396747f3d5c16b436540f
crypto: hisilicon/qm - fix VF not available after PF FLR

When PF FLR, the hardware will actively trigger the VF FLR. Configuration
space of VF needs to be saved and restored to ensure that it is available
after the PF FLR.

Fixes: 7ce396fa12a9("crypto: hisilicon - add FLR support")
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Yang Shen <shenyang39@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c