Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apci_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,12 @@ long ioctl_apci(struct file *filp, unsigned int cmd, unsigned long arg)


case apci_wait_for_irq_ioctl:
if (!ddata->irq_capable)
{
apci_error("Not capable of generating IRQs.\n");
return -EINVAL;
}

if (ddata->irq_disabled)
{
apci_error("IRQ is disabled.\n");
Expand Down Expand Up @@ -298,6 +304,12 @@ long ioctl_apci(struct file *filp, unsigned int cmd, unsigned long arg)
break;

case apci_cancel_wait_ioctl:
if (!ddata->irq_capable)
{
apci_error("Not capable of generating IRQs.\n");
return -EINVAL;
}

if (ddata->irq_disabled)
{
apci_error("IRQ is disabled.\n");
Expand Down