]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cxl: Re-order card init to check the VSEC earlier
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 27 May 2015 06:07:04 +0000 (16:07 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Jun 2015 03:27:17 +0000 (13:27 +1000)
commitbee30c7045847524be1b4b6b23a303c6763a96f9
tree0b79ec6dca53f8123302bb467008c0d23530f335
parent69c3a73c81a648daeac08225ff08b168472ff27e
cxl: Re-order card init to check the VSEC earlier

When we expose AFUs as virtual PCI devices, they may look like the physical
CAPI PCI card.  ie they may have the same vendor/device IDs.

We want to avoid these AFUs binding to this driver and any init this driver may
do.

Re-order card init to check the VSEC earlier before assigning BARs or
activating CXL.  Also change the dev used in early prints as the adapter struct
may not be inited at this earlier stage.

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