summaryrefslogtreecommitdiff
path: root/drivers/misc/cxl/cxllib.c
diff options
context:
space:
mode:
authorPhilippe Bergheaud <felix@linux.vnet.ibm.com>2018-03-02 10:56:12 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-13 15:50:30 +1100
commit9dbcbfa1fe0c3b556e889ea213a73eb80d74307b (patch)
tree71042281315c1048a9f168b35f1f510bf94fa068 /drivers/misc/cxl/cxllib.c
parentd6a90bb83b5084829558788ea5b8818c9be3da63 (diff)
cxl: read PHB indications from the device tree
Configure the P9 XSL_DSNCTL register with PHB indications found in the device tree, or else use legacy hard-coded values. Signed-off-by: Philippe Bergheaud <felix@linux.vnet.ibm.com> Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Reviewed-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/cxllib.c')
-rw-r--r--drivers/misc/cxl/cxllib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/cxllib.c b/drivers/misc/cxl/cxllib.c
index 30ccba436b3b..bea1eb004b49 100644
--- a/drivers/misc/cxl/cxllib.c
+++ b/drivers/misc/cxl/cxllib.c
@@ -99,7 +99,7 @@ int cxllib_get_xsl_config(struct pci_dev *dev, struct cxllib_xsl_config *cfg)
if (rc)
return rc;
- rc = cxl_get_xsl9_dsnctl(capp_unit_id, &cfg->dsnctl);
+ rc = cxl_get_xsl9_dsnctl(dev, capp_unit_id, &cfg->dsnctl);
if (rc)
return rc;
if (cpu_has_feature(CPU_FTR_POWER9_DD1)) {