summaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl/irq.c
diff options
context:
space:
mode:
authorChristophe Lombard2016-03-04 12:26:35 +0100
committerMichael Ellerman2016-03-09 03:05:54 +0100
commitcbffa3a5146a90f46806cef3a98b8be5833727e8 (patch)
tree888ecaf9a7b9640b62dc98cbf1a1844954c7983a /drivers/misc/cxl/irq.c
parentcxl: New hcalls to support cxl adapters (diff)
downloadkernel-qcow2-linux-cbffa3a5146a90f46806cef3a98b8be5833727e8.tar.gz
kernel-qcow2-linux-cbffa3a5146a90f46806cef3a98b8be5833727e8.tar.xz
kernel-qcow2-linux-cbffa3a5146a90f46806cef3a98b8be5833727e8.zip
cxl: Separate bare-metal fields in adapter and AFU data structures
Introduce sub-structures containing the bare-metal specific fields in the structures describing the adapter (struct cxl) and AFU (struct cxl_afu). Update all their references. Co-authored-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com> Acked-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/irq.c')
-rw-r--r--drivers/misc/cxl/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/irq.c b/drivers/misc/cxl/irq.c
index 3c04c14d1c60..be646dc41a2c 100644
--- a/drivers/misc/cxl/irq.c
+++ b/drivers/misc/cxl/irq.c
@@ -270,7 +270,7 @@ int afu_allocate_irqs(struct cxl_context *ctx, u32 count)
if (cpu_has_feature(CPU_FTR_HVMODE)) {
/* Multiplexed PSL Interrupt */
- ctx->irqs.offset[0] = ctx->afu->psl_hwirq;
+ ctx->irqs.offset[0] = ctx->afu->native->psl_hwirq;
ctx->irqs.range[0] = 1;
}