From: Tony Lindgren <tony@atomide.com>
To: Felipe Balbi <me@felipebalbi.com>
Cc: Roman Tereshonkov <roman.tereshonkov@nokia.com>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded.
Date: Tue, 10 Jun 2008 14:02:12 -0700 [thread overview]
Message-ID: <20080610210211.GK23796@atomide.com> (raw)
In-Reply-To: <20080610190312.GA4881@kedavra.cpe.vivax.com.br>
* Felipe Balbi <me@felipebalbi.com> [080610 12:05]:
> On Tue, Jun 10, 2008 at 03:16:36PM +0300, Tereshonkov Roman wrote:
> >
> > Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
>
> tsc2005_disable() sleeps.
>
> Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Pushing today.
Tony
> > ---
> > drivers/input/touchscreen/tsc2005.c | 5 ++---
> > 1 files changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c
> > index fa01799..408caf0 100644
> > --- a/drivers/input/touchscreen/tsc2005.c
> > +++ b/drivers/input/touchscreen/tsc2005.c
> > @@ -661,11 +661,10 @@ err1:
> > static int __devexit tsc2005_remove(struct spi_device *spi)
> > {
> > struct tsc2005 *ts = dev_get_drvdata(&spi->dev);
> > - unsigned long flags;
> >
> > - spin_lock_irqsave(&ts->lock, flags);
> > + mutex_lock(&ts->mutex);
> > tsc2005_disable(ts);
> > - spin_unlock_irqrestore(&ts->lock, flags);
> > + mutex_unlock(&ts->mutex);
> >
> > device_remove_file(&ts->spi->dev, &dev_attr_disable_ts);
> > device_remove_file(&ts->spi->dev, &dev_attr_pen_down);
> > --
> > 1.5.5.1
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> --
> Best Regards,
>
> Felipe Balbi
> me@felipebalbi.com
> http://blog.felipebalbi.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2008-06-10 21:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 12:16 [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded Roman Tereshonkov
2008-06-10 19:03 ` Felipe Balbi
2008-06-10 21:02 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080610210211.GK23796@atomide.com \
--to=tony@atomide.com \
--cc=linux-omap@vger.kernel.org \
--cc=me@felipebalbi.com \
--cc=roman.tereshonkov@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox