Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/qed: allow old cards not supporting "num_images" to work
[ Upstream commit 7a0ea70 ] Commit 43645ce ("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: 43645ce ("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]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information