Skip to contentSkip to conversation

net: ipa: fix build-time bug in ipa_hardware_config_qsb()

PATCH Superseded Alex Elder 1 participant 1 message Dec 1, 2020

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Alex Elder

author
#0 lore raw

PATCH 1/1 net: ipa: fix build-time bug in ipa_hardware_config_qsb()

Jon Hunter reported observing a build bug in the IPA driver:
https://lore.kernel.org/netdev/[email protected]

The problem is that the QMB0 max read value set for IPA v4.5 (16) is too large to fit in the 4-bit field.

This is a quick fix to resolve the build bug; this might change again in the future if I learn there is a better value to use.

---
 drivers/net/ipa/ipa_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ipa/ipa_main.c +1 -1
index f25bcfe51dd4b..192f9d6bccf19 100644
@@ -280,7 +280,7 @@ static void ipa_hardware_config_qsb(struct ipa *ipa)
 		max1 = 0;		/* PCIe not present */
 		break;
 	case IPA_VERSION_4_5:
-		max0 = 16;
+		max0 = 15;
 		break;
 	}
 	val = u32_encode_bits(max0, GEN_QMB_0_MAX_READS_FMASK);
Signature · 1 line
2.20.1