mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
	Russell King <linux@arm.linux.org.uk>,
	Chris Ball <chris@printf.net>,
	linux-mmc@vger.kernel.org, Ingo Molnar <mingo@elte.hu>
Subject: Re: [patch 2/2] genirq: Provide irq_wake_thread()
Date: Sat, 15 Feb 2014 10:50:28 +0100	[thread overview]
Message-ID: <20140215095028.GH14089@laptop.programming.kicks-ass.net> (raw)
In-Reply-To: <20140215003823.772565780@linutronix.de>

On Sat, Feb 15, 2014 at 12:55:19AM -0000, Thomas Gleixner wrote:
> In course of the sdhci/sdio discussion with Russell about killing the
> sdio kthread hackery we discovered the need to be able to wake an
> interrupt thread from software.
> 
> The rationale for this is, that sdio hardware can lack proper
> interrupt support for certain features. So the driver needs to poll
> the status registers, but at the same time it needs to be woken up by
> an hardware interrupt.
> 
> To be able to get rid of the home brewn kthread construct of sdio we
> need a way to wake an irq thread independent of an actual hardware
> interrupt.
> 
> Provide an irq_wake_thread() function which wakes up the thread which
> is associated to a given dev_id. This allows sdio to invoke the irq
> thread from the hardware irq handler via the IRQ_WAKE_THREAD return
> value and provides a possibility to wake it via a timer for the
> polling scenarios. That allows to simplify the sdio logic
> significantly.
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

Acked-by: Peter Zijlstra <peterz@infradead.org>

  reply	other threads:[~2014-02-15  9:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-15  0:55 [patch 0/2] genirq: Add functions to avoid driver hackery Thomas Gleixner
2014-02-15  0:55 ` [patch 1/2] genirq: Provide synchronize_hardirq() Thomas Gleixner
2014-02-15  9:50   ` Peter Zijlstra
2014-02-19 16:27   ` [tip:irq/core] " tip-bot for Thomas Gleixner
2014-02-15  0:55 ` [patch 2/2] genirq: Provide irq_wake_thread() Thomas Gleixner
2014-02-15  9:50   ` Peter Zijlstra [this message]
2014-02-19 16:27   ` [tip:irq/core] " tip-bot for Thomas Gleixner

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=20140215095028.GH14089@laptop.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=chris@printf.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /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

Powered by JetHome