Skip to content
Commit 5bc283e5 authored by Ben Hutchings's avatar Ben Hutchings
Browse files

sfc: Translate MCDI error numbers received in events



Currently we only translate error codes in efx_mcdi_poll(), but we
also need to do so in efx_mcdi_ev_cpl().

The reason we didn't notice before is that the MC firmware error codes
are mostly taken from Unix/Linux and no translation is necessary on
most architectures.  Make sure we notice any future failure by
changing the sign of resprc (matching the kernel convention) and BUG
if it's ever positive at command completion.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
parent 86094f7f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment