]> git.itanic.dy.fi Git - linux-stable/commitdiff
net: ipa: add IPA v5.0 to ipa_version_string()
authorAlex Elder <elder@linaro.org>
Wed, 22 Mar 2023 14:47:42 +0000 (09:47 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Mar 2023 04:48:32 +0000 (21:48 -0700)
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>
drivers/net/ipa/ipa_sysfs.c

index 14bd2f9030453d79c2fcb804f025e47995a829f2..2ff09ce343b73a135fc5c8b407dc5f52f1388158 100644 (file)
@@ -36,6 +36,8 @@ static const char *ipa_version_string(struct ipa *ipa)
                return "4.9";
        case IPA_VERSION_4_11:
                return "4.11";
+       case IPA_VERSION_5_0:
+               return "5.0";
        default:
                return "0.0";   /* Won't happen (checked at probe time) */
        }