Microsemi / switchtec-kernel

A kernel module for the Microsemi PCIe switch
GNU General Public License v2.0
45 stars 31 forks source link

Fix an error status handling issue of MRPC #87

Closed kelvin-cao closed 4 years ago

kelvin-cao commented 4 years ago

If an error is encountered when executing the MRPC command, firmware will set status register to SWITCHTEC_MRPC_STATUS_ERROR and return the specific error code in return value register. Fix driver to align with this behavior.

Generally, we should treat the SWITCHTEC_MRPC_STATUS_ERROR as kind of complete of the MRPC, rather than a failure, as we still need to check the return code with this status.