From: Andrew Morton <akpm@linux-foundation.org>
To: Paul Fertser <fercerpav@gmail.com>
Cc: sameo@linux.intel.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pcf50633: use a dedicated workqueue for irq processing
Date: Thu, 30 Jul 2009 15:34:25 -0700 [thread overview]
Message-ID: <20090730153425.9a3fc5ac.akpm@linux-foundation.org> (raw)
In-Reply-To: <200907281845.n6SIjIlf025081@home.pavel.comp>
On Tue, 28 Jul 2009 00:41:15 +0400
Paul Fertser <fercerpav@gmail.com> wrote:
> Using the default kernel "events" workqueue causes problems with
> synchronous adc readings if initiated from some task on the same
> workqueue.
>
> I had a deadlock trying to use pcf50633_adc_sync_read from a
> power_supply class driver because the reading was initiated from the
> workqueue and it waited for the irq processing to complete (to get the
> result) and that was put on the same workqueue.
I don't get it.
Do you meant that pcf50633_adc_sync_read() was called via a
schedule_work() handler? If so, wasn't that a bug?
The patch looks reasonable, but creating yet another kernel thread is a
bit sad. And I suspect that other MFD drivers are doing the same thing
as pcf50633-core.c, in which case we should change those as well?
So.. please provide a more complete description of the problem which
is being solved so that we can explore alternative fixes.
next prev parent reply other threads:[~2009-07-30 22:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 20:41 [PATCH] pcf50633: use a dedicated workqueue for irq processing Paul Fertser
2009-07-30 22:34 ` Andrew Morton [this message]
2009-07-31 9:23 ` Paul Fertser
2009-08-18 13:29 ` Anton Vorontsov
2009-07-31 10:45 ` Mark Brown
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=20090730153425.9a3fc5ac.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=fercerpav@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.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