PCI: layerscape: Change default error response behavior
authorMinghuan Lian <Minghuan.Lian@nxp.com>
Thu, 12 Oct 2017 09:44:48 +0000 (17:44 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Oct 2017 18:26:27 +0000 (13:26 -0500)
commit84d897d69938a33f4ce3877c82d573e7a2b4e5a9
treea6981fea893bcbdacd120b8435c30d89b725962b
parent06dc4ee54e306eff61cbdac3593b42b09f618103
PCI: layerscape: Change default error response behavior

By default, when the PCIe controller experiences an erroneous completion
from an external completer for its outbound non-posted request, it sends
an OKAY response to the device's internal AXI slave system interface.
However, this default system error response behavior cannot be used for
other types of outbound non-posted requests.  For example, the outbound
memory read transaction requires an actual ERROR response, like UR
completion or completion timeout.

Fix this by forwarding the error response of the non-posted request.

Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pci-layerscape.c