Skip to contentSkip to conversation

pds_core: reject component parameter in legacy firmware update

PATCH Applied Nikhil P. Rao 3 participants 3 messages Jul 8 – Jul 21

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pds_core: reject component parameter in legacy firmware update

The legacy firmware update path does not support per-component updates. If a user specifies a component parameter with devlink flash, reject the request with -EOPNOTSUPP rather than silently ignoring the component parameter and flashing the entire firmware image.

Fixes 49ce92fbee0b ("pds_core: add FW update feature to devlink")
---
 drivers/net/ethernet/amd/pds_core/devlink.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/ethernet/amd/pds_core/devlink.c +6 -0
index 2ea97e1c5939..8adae7b18898 100644
@@ -90,6 +90,12 @@ int pdsc_dl_flash_update(struct devlink *dl,
 {
 	struct pdsc *pdsc = devlink_priv(dl);
 
+	if (params->component) {
+		NL_SET_ERR_MSG_MOD(extack,
+				   "Component update not supported by this device");
+		return -EOPNOTSUPP;
+	}
+
 	return pdsc_firmware_update(pdsc, params->fw, extack);
 }
 
Signature · 1 line
2.43.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Nikhil P. Rao

The legacy firmware update path does not support per-component updates. If a user specifies a component parameter with devlink flash, reject the request with -EOPNOTSUPP rather than silently ignoring the component parameter and flashing the entire firmware image.

Fixes 49ce92fbee0b ("pds_core: add FW update feature to devlink")
#2 lore raw
In reply to Nikhil P. Rao
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 9 lines · On Wed, 8 Jul 2026 16:36:49 +0000 you wrote:

The legacy firmware update path does not support per-component updates. If a user specifies a component parameter with devlink flash, reject the request with -EOPNOTSUPP rather than silently ignoring the component parameter and flashing the entire firmware image.

Fixes 49ce92fbee0b ("pds_core: add FW update feature to devlink")

[...]

Here is the summary with links:
- [net] pds_core: reject component parameter in legacy firmware update

    https://git.kernel.org/netdev/net/c/7be2552e601c

You are awesome, thank you!

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