lkml.org 
[lkml]   [2011]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] NFC: Driver for Inside Secure MicroRead NFC chip
On Fri, Mar 18, 2011 at 01:19:53PM +0100, Arnd Bergmann wrote:
> On Friday 18 March 2011, Waldemar Rymarkiewicz wrote:

> > +
> > + mutex_lock(&info->rx_mutex);
> > + info->irq_state = 1;
> > + mutex_unlock(&info->rx_mutex);
> > +
> > + wake_up_interruptible(&info->rx_waitq);
> > +
> > + return IRQ_HANDLED;
> > +}

> You cannot take a mutex from interrupt context, that may
> cause deadlocks.

This is a threaded IRQ handler so mutexes are fine.


\
 
 \ /
  Last update: 2011-03-18 13:55    [from the cache]
©2003-2011 Jasper Spaans