linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Hunold <hunold@linuxtv.org>
To: linux-omap@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
Subject: omap_hsmmc.c and MMC_CAP_SDIO_IRQ
Date: Tue, 24 Jan 2012 15:33:07 +0100	[thread overview]
Message-ID: <4F1EC123.8070103@linuxtv.org> (raw)

Hi,

I am experimenting with an SDIO card on the Beagleboard. I have started
my experiments with Linux-3.1.4 some time ago and basically everything
is working.

Except the fact that currently no native SDIO interrupts are used, but
the status register is polled to recognise the interrupts. Ugh.

So I tried to find out the current state of MMC_CAP_SDIO_IRQ support.

0. No support for MMC_CAP_SDIO_IRQ in omap_hsmmc.c is present in mainline.

1. The "beagleboard-validation" kernel seems to have support for
MMC_CAP_SDIO_IRQ in omap_hsmmc.c:

http://gitorious.org/beagleboard-validation/linux/blobs/beagleboardXM/drivers/mmc/host/omap_hsmmc.c

But this is an ancient 2.6.32 kernel. I tried to use it anyway, but
compilation failed for me. I did not try to find the route cause of the
problem.

2. Another indication of MMC_CAP_SDIO_IRQ support in omap_hsmmc.c can be
found here:

http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/tree/recipes-kernel/linux/linux-omap-2.6.39/sakoman/0013-Enable-the-use-of-SDIO-card-interrupts.patch?id=1735237550d85da337ea57cb5d6be9ccc8c0355c

I don't use Angstrom, so I just got a 2.6.39.4 kernel and tried to apply
that patch (and the
0012-Don-t-turn-SDIO-cards-off-to-save-power.-Doing-so-wi.patch) patch
as well, but they did not apply cleanly.

I tried to apply these patches to my 3.1.4 kernel, but of course they
did not apply cleanly either.

3. There is one discussion from October 2009:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg17802.html

4. There is patchset from David Vrabel from Februrary 2010:
http://www.spinics.net/lists/linux-mmc/msg01184.html

This seems to be the same as in 2.

So what is the current state of MMC_CAP_SDIO_IRQ support in omap_hsmmc.c?

Any hints how to proceed or which road to take?

I noticed that the Pandaboard uses a wifi SDIO adapter. AFAIK the OMAP4
uses omap_hsmmc.c as well. Is it true that interrupt polling is used
there, too?

CU
Michael.

             reply	other threads:[~2012-01-24 14:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 14:33 Michael Hunold [this message]
2012-01-27 14:09 ` omap_hsmmc.c and MMC_CAP_SDIO_IRQ Steve Sakoman
2012-01-29 17:37   ` S, Venkatraman
2012-02-08 16:51     ` Steve Sakoman
2012-01-30 11:16   ` Michael Hunold

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=4F1EC123.8070103@linuxtv.org \
    --to=hunold@linuxtv.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-omap@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;
as well as URLs for NNTP newsgroup(s).