Advertisement
Guest User

irq

a guest
Sep 1st, 2013
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. static irqreturn_t enc28j60_irq(int irq, void *dev_id)
  2. {
  3.     struct enc28j60_net *priv = dev_id;
  4.  
  5.     /*
  6.      * Can't do anything in interrupt context because we need to
  7.      * block (spi_sync() is blocking) so fire of the interrupt
  8.      * handling workqueue.
  9.      * Remember that we access enc28j60 registers through SPI bus
  10.      * via spi_sync() call.
  11.      */
  12.     schedule_work(&priv->irq_work);
  13.  
  14.     return IRQ_HANDLED;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement