aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/misc/cxl/irq.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-05-27 16:07:07 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-03 13:27:17 +1000
commit6428832a7bfae73345706d63a228a6ce60af0081 (patch)
tree07c521ff77d82219c477d2589ec8932d7284ef3f /drivers/misc/cxl/irq.c
parentcxl: Dump debug info on the AFU configuration record (diff)
downloadwireguard-linux-6428832a7bfae73345706d63a228a6ce60af0081.tar.xz
wireguard-linux-6428832a7bfae73345706d63a228a6ce60af0081.zip
cxl: Add cookie parameter to afu_release_irqs()
Add cookie parameter to afu_release_irqs() so that we can pass in a different cookie than the context structure. This will be useful for other kernel drivers that want to call this but get their own cookie back in the interrupt handler. Update all existing call sites. Signed-off-by: Michael Neuling <mikey@neuling.org> Acked-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--drivers/misc/cxl/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cxl/irq.c b/drivers/misc/cxl/irq.c
index c8929c526691..c740c7bc2bd2 100644
--- a/drivers/misc/cxl/irq.c
+++ b/drivers/misc/cxl/irq.c
@@ -477,7 +477,7 @@ out:
return -ENOMEM;
}
-void afu_release_irqs(struct cxl_context *ctx)
+void afu_release_irqs(struct cxl_context *ctx, void *cookie)
{
irq_hw_number_t hwirq;
unsigned int virq;
@@ -488,7 +488,7 @@ void afu_release_irqs(struct cxl_context *ctx)
for (i = 0; i < ctx->irqs.range[r]; hwirq++, i++) {
virq = irq_find_mapping(NULL, hwirq);
if (virq)
- cxl_unmap_irq(virq, ctx);
+ cxl_unmap_irq(virq, cookie);
}
}