blob: e2cd46a9c47a05ba809768f10a657d5454f72d5d [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From e180239ef07855f44f3bab4cfa5ac47c6775d822 Mon Sep 17 00:00:00 2001
2From: Roy Pledge <roy.pledge@nxp.com>
3Date: Mon, 6 May 2019 11:18:57 -0400
4Subject: [PATCH] sdk_qbman: Fix error in IP revision comparison
5
6The comparison for QMAN_REV31 was incorrect as it
7would always fail due to the wrong mask.
8
9This fixes the following error in newer GCC versions:
10"error: bitwise comparison always evaluates to false
11 [-Werror=tautological-compare]"
12
13Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
14---
15 drivers/staging/fsl_qbman/qman_config.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18--- a/drivers/staging/fsl_qbman/qman_config.c
19+++ b/drivers/staging/fsl_qbman/qman_config.c
20@@ -812,7 +812,7 @@ int qman_set_sdest(u16 channel, unsigned
21
22 if (!qman_have_ccsr())
23 return -ENODEV;
24- if ((qman_ip_rev & 0xFF00) == QMAN_REV31) {
25+ if ((qman_ip_rev & 0xFFFF) == QMAN_REV31) {
26 /* LS1043A - only one L2 cache */
27 cpu_idx = 0;
28 }