提交 c96d886d 编写于 作者: H Horia Geantă 提交者: Greg Kroah-Hartman

staging: fsl-mc: bus: 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: 321eecb0 ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2")
Signed-off-by: NHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7ecb3644
...@@ -963,7 +963,7 @@ int qbman_swp_alt_fq_state(struct qbman_swp *s, u32 fqid, ...@@ -963,7 +963,7 @@ int qbman_swp_alt_fq_state(struct qbman_swp *s, u32 fqid,
} }
/* Decode the outcome */ /* Decode the outcome */
WARN_ON(r->verb != alt_fq_verb); WARN_ON((r->verb & QBMAN_RESULT_MASK) != alt_fq_verb);
/* Determine success or failure */ /* Determine success or failure */
if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) { if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册