sdk_qbman: Fix error in IP revision comparison
The comparison for QMAN_REV31 was incorrect as it would always fail due to the wrong mask. This fixes the following error in newer GCC versions: "error: bitwise comparison always evaluates to false [-Werror=tautological-compare]" Signed-off-by: Roy Pledge <roy.pledge@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
56edc75e74
commit
9851bf3f8c
|
@ -812,7 +812,7 @@ int qman_set_sdest(u16 channel, unsigned int cpu_idx)
|
|||
|
||||
if (!qman_have_ccsr())
|
||||
return -ENODEV;
|
||||
if ((qman_ip_rev & 0xFF00) == QMAN_REV31) {
|
||||
if ((qman_ip_rev & 0xFFFF) == QMAN_REV31) {
|
||||
/* LS1043A - only one L2 cache */
|
||||
cpu_idx = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue