* [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded.
@ 2008-06-10 12:16 Roman Tereshonkov
2008-06-10 19:03 ` Felipe Balbi
0 siblings, 1 reply; 3+ messages in thread
From: Roman Tereshonkov @ 2008-06-10 12:16 UTC (permalink / raw)
To: linux-omap; +Cc: Roman Tereshonkov
Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded.
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
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2008-06-10 19:03 UTC (permalink / raw)
To: Roman Tereshonkov; +Cc: linux-omap
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>
> ---
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] This patch fixes "scheduling while atomic" bug when driver is unloaded.
2008-06-10 19:03 ` Felipe Balbi
@ 2008-06-10 21:02 ` Tony Lindgren
0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2008-06-10 21:02 UTC (permalink / raw)
To: Felipe Balbi; +Cc: Roman Tereshonkov, linux-omap
* 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-10 21:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox