Skip to content

Commit

Permalink
pci_ldt_th
Browse files Browse the repository at this point in the history
  • Loading branch information
Costa Shulyupin authored and Costa Shulyupin committed Dec 22, 2020
1 parent 0516428 commit 7d2e043
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pci-ldt.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,17 @@ static irqreturn_t pci_ldt_irq(int irq, struct instance_data *d)
dev_info(&d->pcid->dev, "%x\n", pci_status_get_and_clear_errors(d->pcid));
#endif
}
++irqs;
/* TODO: process interrupt */
/* TODO: check interrupt */
return IRQ_WAKE_THREAD;
}

static irqreturn_t pci_ldt_th(int irq, struct instance_data *d)
{
/* TODO: process interrupt
return IRQ_HANDLED;
*/
++irqs;
return IRQ_NONE;
}

static void pci_ldt_free(struct pci_dev *pcid)
Expand Down Expand Up @@ -111,7 +118,7 @@ static int pci_ldt_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
if (ret < 1) {
goto error;
}
ret = pci_request_irq(pcid, 0, (void *)pci_ldt_irq, NULL, data, "%s", pci_name(pcid));
ret = pci_request_irq(pcid, 0, (void *)pci_ldt_irq, (void *)pci_ldt_th, data, "%s", pci_name(pcid));
if (ret) {
dev_err(&pcid->dev, "request_irq failed\n");
goto error;
Expand Down

0 comments on commit 7d2e043

Please sign in to comment.