mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] irq: get_irq_disable_depth.
Date: Tue, 26 Mar 2013 12:14:29 +0100 (CET)	[thread overview]
Message-ID: <alpine.LFD.2.02.1303261210230.22263@ionos> (raw)
In-Reply-To: <1364251295-26358-1-git-send-email-andreas.fenkart@streamunlimited.com>

On Mon, 25 Mar 2013, Andreas Fenkart wrote:
> Used to verify invariant in omap_hsmmc, were a gpio is used to detect
> sdio irqs during suspend phase. The ref count from irq_enable/irq_disable
> is used to control when the irq should be effectively enabled.
> 
>                  irq en     irq dis
>             ------------------------
>   pm suspend  |    0     |   1
>   pm default  |    1     |   2
> 
>               irq disable depth
> 
> When the sdio irq is enabled AND the module is in runtime suspend,
> the ref must be zero so the irq is effectively enabled.
> 
> This function helps to verify, that the disable depth has the
> right value at different driver states.

I'm really not getting it. The SDIO driver knows whether it has
interrupts enabled or not, so what needs to be verified?

If you need this just to debug your driver, then please keep it in
your private tree. I really can't see a general value for this.

Thanks,

	tglx

      reply	other threads:[~2013-03-26 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-25 22:41 Andreas Fenkart
2013-03-26 11:14 ` Thomas Gleixner [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=alpine.LFD.2.02.1303261210230.22263@ionos \
    --to=tglx@linutronix.de \
    --cc=andreas.fenkart@streamunlimited.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®