crypto/dpaa_sec: retire fq while detaching with session
authorAlok Makhariya <alok.makhariya@nxp.com>
Tue, 16 Jan 2018 11:08:17 +0000 (16:38 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Sat, 20 Jan 2018 15:10:52 +0000 (16:10 +0100)
Signed-off-by: Alok Makhariya <alok.makhariya@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c

index 66828b5..f2f9328 100644 (file)
@@ -1248,6 +1248,8 @@ dpaa_sec_detach_rxq(struct dpaa_sec_dev_private *qi, struct qman_fq *fq)
 
        for (i = 0; i < qi->max_nb_sessions; i++) {
                if (&qi->inq[i] == fq) {
+                       qman_retire_fq(fq, NULL);
+                       qman_oos_fq(fq);
                        qi->inq_attach[i] = 0;
                        return 0;
                }