Commit 1a314643 authored by Alessandro Rubini's avatar Alessandro Rubini

kernel/wr-nic-eth: wait 1us after serving to vic irq, to force the edge

The Gennum manual doesn't say what is the miminum glitch for it to
detect the edge, but this appears to work. I can't be sure, though.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 0dcf4ed3
......@@ -72,6 +72,7 @@ irqreturn_t wrn_handler(int irq, void *dev_id)
fmc->op->irq_ack(fmc);
/* after ack, disable and re-enable the irq, so to force an edge */
writel(WRN_ALL_MASK, &vic->IDR);
udelay(1);
writel(WRN_ALL_MASK, &vic->IER);
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment