diff options
author | Louis Leseur <[email protected]> | 2024-11-28 09:33:58 +0100 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-12-03 10:50:21 +0100 |
commit | 7a0ea70da56ee8c2716d0b79e9959d3c47efab62 (patch) | |
tree | 512f31d7d29e2a0dc10431dacc10730d0820a3de /drivers/fpga/fpga-mgr.c | |
parent | 77e6077026fc24a34d38defe3ff4b8063ae5e273 (diff) |
net/qed: allow old cards not supporting "num_images" to work
Commit 43645ce03e00 ("qed: Populate nvm image attribute shadow.")
added support for populating flash image attributes, notably
"num_images". However, some cards were not able to return this
information. In such cases, the driver would return EINVAL, causing the
driver to exit.
Add check to return EOPNOTSUPP instead of EINVAL when the card is not
able to return these information. The caller function already handles
EOPNOTSUPP without error.
Fixes: 43645ce03e00 ("qed: Populate nvm image attribute shadow.")
Co-developed-by: Florian Forestier <[email protected]>
Signed-off-by: Florian Forestier <[email protected]>
Signed-off-by: Louis Leseur <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions