Skip to contentSkip to conversation

net: ipa: add IPA v5.0 to ipa_version_string()

PATCH Applied Alex Elder 3 participants 5 messages Mar 22, 2023 – Mar 24, 2023

Subsystems (4)
lore
Share & tools
lore

Alex Elder

author
#0 lore raw

PATCH 1/1 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.

---
This should have been included in the previous series...

 drivers/net/ipa/ipa_sysfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ipa/ipa_sysfs.c +2 -0
index 14bd2f9030453..2ff09ce343b73 100644
@@ -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) */
 	}
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Alex Elder

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.

Hi Alex,

this patch looks fine. But I am curious.
Should IPA_VERSION_5_1 and IPA_VERSION_5_5 also be added?

Quoted 22 lines

---
This should have been included in the previous series...

 drivers/net/ipa/ipa_sysfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ipa/ipa_sysfs.c +2 -0
index 14bd2f9030453..2ff09ce343b73 100644
@@ -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) */
 	}
Signature · 1 line
2.34.1
author
#2 lore raw
Quoted 1 line · Simon Horman

Should IPA_VERSION_5_1 and IPA_VERSION_5_5 also be added?

They could, since their symbols are defined.

We expect to support both of those versions pretty soon, and we'll certainly add them to this function then. For now, unless someone thinks it's important to add this now, I'd rather keep it this way.

-Alex

Reviewed-by
#3 lore raw
Quoted 9 lines · Alex Elder
Quoted 1 line · Simon Horman

Should IPA_VERSION_5_1 and IPA_VERSION_5_5 also be added?

They could, since their symbols are defined.

We expect to support both of those versions pretty soon, and we'll certainly add them to this function then. For now, unless someone thinks it's important to add this now, I'd rather keep it this way.

Thanks for the clarification.

FWIIW,

#4 lore raw
In reply to Alex Elder
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Wed, 22 Mar 2023 09:47:42 -0500 you wrote:

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.

[...]

Here is the summary with links:
- [net-next] net: ipa: add IPA v5.0 to ipa_version_string()

    https://git.kernel.org/netdev/net-next/c/0c04328ccf85

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html