From: Conor McLoughlin Date: Fri, 18 Sep 2015 15:59:47 +0000 (-0700) Subject: crypto: qat - VF should never trigger SBR on PH X-Git-Tag: v4.3-rc3~6^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17762c5acee2f1f065291d2a74ebea4d0168063b;p=profile%2Fcommon%2Fplatform%2Fkernel%2Flinux-artik7.git crypto: qat - VF should never trigger SBR on PH Don't allow to trigger SBR from a VF running in VMM context. Cc: stable@vger.kernel.org Signed-off-by: Conor McLoughlin Signed-off-by: Tadeusz Struk Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c index a57b419..0a5ca0b 100644 --- a/drivers/crypto/qat/qat_common/adf_aer.c +++ b/drivers/crypto/qat/qat_common/adf_aer.c @@ -88,6 +88,9 @@ static void adf_dev_restore(struct adf_accel_dev *accel_dev) struct pci_dev *parent = pdev->bus->self; uint16_t bridge_ctl = 0; + if (accel_dev->is_vf) + return; + dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n", accel_dev->accel_id);