Skip to content

Commit 0c04328

Browse files
Alex Elderkuba-moo
authored andcommitted
net: ipa: add IPA v5.0 to ipa_version_string()
In the IPA device sysfs directory, the "version" file can be read to find out what IPA version is implemented. The content of this file is supplied by ipa_version_string(), which needs to be updated to properly handle IPA v5.0. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/20230322144742.2203947-1-elder@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 8da3a55 commit 0c04328

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ipa/ipa_sysfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ static const char *ipa_version_string(struct ipa *ipa)
3636
return "4.9";
3737
case IPA_VERSION_4_11:
3838
return "4.11";
39+
case IPA_VERSION_5_0:
40+
return "5.0";
3941
default:
4042
return "0.0"; /* Won't happen (checked at probe time) */
4143
}

0 commit comments

Comments
 (0)