]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/switchtec: Fix a MRPC error status handling issue
authorKelvin Cao <kelvin.cao@microchip.com>
Thu, 14 Oct 2021 14:18:56 +0000 (14:18 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 14 Oct 2021 14:22:47 +0000 (09:22 -0500)
commit7bef7acd6a0c83d9455213d749ccadaee4cf7022
tree463a578401dc53d4c335066c58ccc3f059dc2930
parent69a31b6ffd5b5a500ee3cd9689b67c839307514c
PCI/switchtec: Fix a MRPC error status handling issue

If an error is encountered when executing a MRPC command, the firmware
will set the status register to SWITCHTEC_MRPC_STATUS_ERROR and return
the error code in the return value register.

Add handling of SWITCHTEC_MRPC_STATUS_ERROR on status register when
completing a MRPC command.

Link: https://lore.kernel.org/r/20211014141859.11444-3-kelvin.cao@microchip.com
Signed-off-by: Kelvin Cao <kelvin.cao@microchip.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/switch/switchtec.c