Skip to content

Commit f2aa00e

Browse files
lweiss-fairphonekuba-moo
authored andcommitted
net: ipa: add IPA v5.1 and v5.5 to ipa_version_string()
Handle the case for v5.1 and v5.5 instead of returning "0.0". Also reword the comment below since I don't see any evidence of such a check happening, and - since 5.5 has been missing - can happen. Fixes: 3aac8ec ("net: ipa: add some new IPA versions") Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com> Reviewed-by: Alex Elder <elder@riscstar.com> Link: https://patch.msgid.link/20250728-ipa-5-1-5-5-version_string-v1-1-d7a5623d7ece@fairphone.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 6fb5ff6 commit f2aa00e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/net/ipa/ipa_sysfs.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ static const char *ipa_version_string(struct ipa *ipa)
3737
return "4.11";
3838
case IPA_VERSION_5_0:
3939
return "5.0";
40+
case IPA_VERSION_5_1:
41+
return "5.1";
42+
case IPA_VERSION_5_5:
43+
return "5.5";
4044
default:
41-
return "0.0"; /* Won't happen (checked at probe time) */
45+
return "0.0"; /* Should not happen */
4246
}
4347
}
4448

0 commit comments

Comments
 (0)