From 67cd67b13eeefb8b89fc7448f8dad176897c8f7b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 12 Nov 2012 19:11:38 +0100 Subject: Allow IRQs without DMA engine --- cli.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli.c') diff --git a/cli.c b/cli.c index 852b82c..aeb5918 100644 --- a/cli.c +++ b/cli.c @@ -2241,7 +2241,10 @@ int WaitIRQ(pcilib_t *handle, pcilib_model_description_t *model_info, pcilib_irq size_t count; err = pcilib_enable_irq(handle, PCILIB_EVENT_IRQ, 0); - if (err) Error("Error enabling IRQs"); + if (err) { + if ((err != PCILIB_ERROR_NOTSUPPORTED)&&(err != PCILIB_ERROR_NOTAVAILABLE)) + Error("Error enabling IRQs"); + } err = pcilib_wait_irq(handle, irq_source, timeout, &count); if (err) { -- cgit v1.2.3