Andrew Donnellan 7d1647dc4b 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>
2015-09-07 20:14:24 +10:00
..
2015-08-30 18:56:34 +10:00
2015-08-18 19:34:43 +10:00
2015-08-17 13:56:29 +10:00
2015-08-11 07:43:40 +10:00
2015-08-30 18:56:34 +10:00
2015-09-03 16:41:38 -07:00
2015-01-22 17:31:51 +11:00
2015-07-13 10:10:54 +10:00