Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static irqreturn_t enc28j60_irq(int irq, void *dev_id)
- {
- struct enc28j60_net *priv = dev_id;
- /*
- * Can't do anything in interrupt context because we need to
- * block (spi_sync() is blocking) so fire of the interrupt
- * handling workqueue.
- * Remember that we access enc28j60 registers through SPI bus
- * via spi_sync() call.
- */
- schedule_work(&priv->irq_work);
- return IRQ_HANDLED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement