From: Pavan Nikhilesh <pbhagavat...@marvell.com>

Fix incorrect mask used when clearing subevent type masking out
useful data.

Fixes: e239e0d3faf7 ("event/cnxk: add SSO HW device operations")

Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com>
---
 drivers/event/cnxk/cnxk_eventdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/event/cnxk/cnxk_eventdev.h 
b/drivers/event/cnxk/cnxk_eventdev.h
index b157fef096..5564746e6d 100644
--- a/drivers/event/cnxk/cnxk_eventdev.h
+++ b/drivers/event/cnxk/cnxk_eventdev.h
@@ -43,7 +43,7 @@
 #define CNXK_TT_FROM_EVENT(x)      (((x) >> 38) & SSO_TT_EMPTY)
 #define CNXK_EVENT_TYPE_FROM_TAG(x) (((x) >> 28) & 0xf)
 #define CNXK_SUB_EVENT_FROM_TAG(x)  (((x) >> 20) & 0xff)
-#define CNXK_CLR_SUB_EVENT(x)      (~(0xffu << 20) & x)
+#define CNXK_CLR_SUB_EVENT(x)      (~(0xffull << 20) & x)
 #define CNXK_GRP_FROM_TAG(x)       (((x) >> 36) & 0x3ff)
 #define CNXK_SWTAG_PEND(x)         (BIT_ULL(62) & x)
 #define CNXK_TAG_IS_HEAD(x)        (BIT_ULL(35) & x)
-- 
2.17.1

Reply via email to