]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pds_core: reject component parameter in legacy firmware update
authorNikhil P. Rao <nikhil.rao@amd.com>
Wed, 8 Jul 2026 16:36:49 +0000 (16:36 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Jul 2026 13:01:20 +0000 (15:01 +0200)
commit7be2552e601c247a328a5aba6fc06ac844b94a16
treee9e4b67da98ab0722fcbe54069e4ea44704ec1fc
parent3c0d10f233f19153f81fef685b5c6716776a5af3
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")
Signed-off-by: Nikhil P. Rao <nikhil.rao@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260708163649.128620-1-nikhil.rao@amd.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/amd/pds_core/devlink.c