pds_core: reject component parameter in legacy firmware update
Subsystems (3)
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.
--- drivers/net/ethernet/amd/pds_core/devlink.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/ethernet/amd/pds_core/devlink.c +6 -0
@@ -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
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
-EOPNOTSUPPrather than silently ignoring the component parameter and flashing the entire firmware image.Fixes 49ce92fbee0b ("pds_core: add FW update feature to devlink")Signed-off-by Nikhil P. Rao <[email protected]>
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
-EOPNOTSUPPrather than silently ignoring the component parameter and flashing the entire firmware image.Fixes 49ce92fbee0b ("pds_core: add FW update feature to devlink")Signed-off-by Nikhil P. Rao <[email protected]>[...]
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