summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli.c5
-rw-r--r--dma.c4
2 files changed, 6 insertions, 3 deletions
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) {
diff --git a/dma.c b/dma.c
index 19ac5ab..c65bad6 100644
--- a/dma.c
+++ b/dma.c
@@ -100,12 +100,12 @@ int pcilib_stop_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t f
int pcilib_enable_irq(pcilib_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flags_t flags) {
const pcilib_dma_info_t *info = pcilib_get_dma_info(ctx);
if (!info) {
- pcilib_error("DMA is not supported by the device");
+ //pcilib_error("DMA is not supported by the device");
return PCILIB_ERROR_NOTSUPPORTED;
}
if (!ctx->model_info.dma_api) {
- pcilib_error("DMA Engine is not configured in the current model");
+ //pcilib_error("DMA Engine is not configured in the current model");
return PCILIB_ERROR_NOTAVAILABLE;
}