All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bus: fsl-mc: dpio: fix alter FQ state command
@ 2017-04-21 12:00 Horia Geantă
  2017-04-21 13:31 ` Stuart Yoder
  0 siblings, 1 reply; 8+ messages in thread
From: Horia Geantă @ 2017-04-21 12:00 UTC (permalink / raw)
  To: gregkh, Roy Pledge
  Cc: devel, linux-kernel, Haiying Wang, Ioana Radulescu, Stuart Yoder

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>
---
 drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
index 2a3ea29d9b43..5d020fb98c66 100644
--- a/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
+++ b/drivers/staging/fsl-mc/bus/dpio/qbman-portal.c
@@ -963,7 +963,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 & 0x7f) != alt_fq_verb);
 
 	/* Determine success or failure */
 	if (unlikely(r->rslt != QBMAN_MC_RSLT_OK)) {
-- 
2.12.0.264.gd6db3f216544

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-28 12:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 12:00 [PATCH] bus: fsl-mc: dpio: fix alter FQ state command Horia Geantă
2017-04-21 13:31 ` Stuart Yoder
2017-04-21 13:50   ` Horia Geantă
2017-04-21 14:47     ` Dan Carpenter
2017-04-22  6:44       ` [PATCH v2] " Horia Geantă
2017-04-28 10:31         ` Greg KH
2017-04-28 10:47           ` Horia Geantă
2017-04-28 12:22             ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.