summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2017-04-21 10:59:43 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-09-25 07:25:18 (GMT)
commit0f2f4754e7d5ff839f4b969cd70279d96783935b (patch)
treef27af5f9ba52b67587c4fe6dab389270d9919334
parentb585ae8fe22de0db0a84465995646d5b8d714f81 (diff)
downloadlinux-0f2f4754e7d5ff839f4b969cd70279d96783935b.tar.xz
bus: fsl-mc: dpio: fix alter FQ state command
When checking the response verb, the valid bit should be masked out, since its value flips depending on what Response Register (RR0 /RR1) it's been read from. Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2") Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
-rw-r--r--drivers/staging/fsl-mc/bus/dpio/qbman-portal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
index a53757a..e14fb65 100644
--- a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
+++ b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
@@ -977,7 +977,7 @@ int qbman_swp_alt_fq_state(struct qbman_swp *s, u32 fqid,
}
/* Decode the outcome */
- WARN_ON(r->verb != alt_fq_verb);
+ WARN_ON((r->verb & QBMAN_RESULT_MASK) != alt_fq_verb);
/* Determine success or failure */
if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) {