diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2015-09-07 02:52:58 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-09-07 12:14:24 +0200 |
commit | 7d1647dc4ba0a61fec5381c1abb59dc886b6ef3c (patch) | |
tree | 03bc374595213018d3a2e6cefefb7c8f10dbf7df /arch/powerpc | |
parent | powerpc/powernv/pci-ioda: fix kdump with non-power-of-2 crashkernel= (diff) | |
download | linux-7d1647dc4ba0a61fec5381c1abb59dc886b6ef3c.tar.xz linux-7d1647dc4ba0a61fec5381c1abb59dc886b6ef3c.zip |
cxl: abort cxl_pci_enable_device_hook() if PCI channel is offline
cxl_pci_enable_device_hook() is called when attempting to enable an AFU
sitting on a vPHB. At present, the state of the underlying CXL card's PCI
channel is only checked when it calls cxl_afu_check_and_enable() at the
very end, after it has already set DMA options and initialised a default
context.
Check the CXL card's link status before setting DMA options or initialising
a default context. If the link is down, print a warning and return
immediately.
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions