cxl: Enable bus mastering for devices using CAPP DMA mode
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 13 Jul 2016 21:17:02 +0000 (07:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Jul 2016 10:26:35 +0000 (20:26 +1000)
commit48b3adf33459c1c42766d9c2068a592216fe7812
tree315d6af3ce690bcace65d8ad10a84868f888e1f9
parent4e56f858bdde5cbfb70f61baddfaa56a8ed851bf
cxl: Enable bus mastering for devices using CAPP DMA mode

Devices that use CAPP DMA mode (such as the Mellanox CX4) require bus
master to be enabled in order for the CAPI traffic to flow. This should
be harmless to enable for other cxl devices, so unconditionally enable
it in the adapter init flow.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/pci.c