Commit 60f24a1
committed
net/qed: allow old cards not supporting "num_images" to work
JIRA: https://issues.redhat.com/browse/RHEL-72637
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 <florian@forestier.re>
Signed-off-by: Florian Forestier <florian@forestier.re>
Signed-off-by: Louis Leseur <louis.leseur@gmail.com>
Link: https://patch.msgid.link/20241128083633.26431-1-louis.leseur@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 7a0ea70)
Signed-off-by: John Meneghini <jmeneghi@redhat.com>1 parent 035840e commit 60f24a1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3301 | 3301 | | |
3302 | 3302 | | |
3303 | 3303 | | |
3304 | | - | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
3305 | 3307 | | |
3306 | 3308 | | |
3307 | 3309 | | |
| |||
0 commit comments