crypto: qat - re-enable interrupts for legacy PFVF messages
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Wed, 17 Nov 2021 14:30:41 +0000 (14:30 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Nov 2021 05:20:45 +0000 (16:20 +1100)
If a PFVF message with MSGORIGIN_SYSTEM not set is received, re-enable
interrupts allowing the processing of new messages.
This is to simplify the refactoring of the recv function in a subsequent
patch.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Marco Chiappero <marco.chiappero@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_pf2vf_msg.c
drivers/crypto/qat/qat_common/adf_vf2pf_msg.c

index 4922ee2a2a081cdb2427481da7533375d04c24ac..296f54805e332032dda2dfa9fa52d289c58b456a 100644 (file)
@@ -197,7 +197,7 @@ bool adf_recv_and_handle_vf2pf_msg(struct adf_accel_dev *accel_dev, u32 vf_nr)
 
        if (!(msg & ADF_VF2PF_MSGORIGIN_SYSTEM))
                /* Ignore legacy non-system (non-kernel) VF2PF messages */
-               goto err;
+               return true;
 
        /* To ACK, clear the VF2PFINT bit */
        msg &= ~ADF_VF2PF_INT;
index a6eaf93d5462bdfa4dd38dca210a7def62066baf..e383232b068567d9b65c64b2fcd67ccbb5249197 100644 (file)
@@ -67,7 +67,7 @@ bool adf_recv_and_handle_pf2vf_msg(struct adf_accel_dev *accel_dev)
 
        if (!(msg & ADF_PF2VF_MSGORIGIN_SYSTEM))
                /* Ignore legacy non-system (non-kernel) PF2VF messages */
-               goto err;
+               return true;
 
        /* To ack, clear the PF2VFINT bit */
        msg &= ~ADF_PF2VF_INT;