cxl: Fail AFU initialisation if an invalid configuration record is found
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 4 Feb 2015 08:09:02 +0000 (19:09 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 Feb 2015 00:16:58 +0000 (11:16 +1100)
commit3d5be0392f52489b7572903d83f1f267f26e6b69
tree6a8ac7ae7fbc02ad1851bd1e02d26d84d8dad66d
parentb087e6190ddcd9ae4e8ff2c788d2b32f193e946b
cxl: Fail AFU initialisation if an invalid configuration record is found

If an AFU claims to have a configuration record but doesn't actually
contain a vendor and device ID, fail the AFU initialisation. Right now
this is just a way of politely letting AFU developers know that they
need to fix their config space, but later on we may expose the AFUs as
actual PCI devices in their own right and don't want to inadvertendly
expose an AFU with a bad config space.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/pci.c