From: Tony Lindgren <tony@atomide.com>
To: Pierre Ossman <pierre@ossman.eu>
Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>,
"Gadiyar, Anand" <gadiyar@ti.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Adrian Hunter <adrian.hunter@nokia.com>
Subject: Re: [PATCH] OMAP: HSMMC: Do not enable buffer ready interrupt if using DMA
Date: Thu, 30 Apr 2009 11:58:45 -0700 [thread overview]
Message-ID: <20090430185844.GG12986@atomide.com> (raw)
In-Reply-To: <20090428213833.18afbba0@mjolnir.ossman.eu>
* Pierre Ossman <pierre@ossman.eu> [090428 12:38]:
> Jarkko? Tony?
Hmm, we haven't heard from Jarkko for a while.. Adrian, care to take
a look at this patch?
Tony
> On Tue, 21 Apr 2009 13:09:22 +0530
> "Gadiyar, Anand" <gadiyar@ti.com> wrote:
>
> > From: Anand Gadiyar <gadiyar@ti.com>
> >
> > OMAP: HSMMC: Do not enable buffer ready interrupt if using DMA
> >
> > This considerably reduces the number of interrupts during a transfer
> > and ought to result in some power saving.
> >
> > Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
> > Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
> > Acked-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
> > ---
> > diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> > index e62a22a..2d83807 100644
> > --- a/drivers/mmc/host/omap_hsmmc.c
> > +++ b/drivers/mmc/host/omap_hsmmc.c
> > @@ -70,6 +70,8 @@
> > #define DTO_MASK 0x000F0000
> > #define DTO_SHIFT 16
> > #define INT_EN_MASK 0x307F0033
> > +#define BWR_ENABLE (1 << 4)
> > +#define BRR_ENABLE (1 << 5)
> > #define INIT_STREAM (1 << 1)
> > #define DP_SELECT (1 << 21)
> > #define DDIR (1 << 4)
> > @@ -241,7 +243,12 @@ mmc_omap_start_command(struct mmc_omap_host *host, struct mmc_command *cmd,
> > */
> > OMAP_HSMMC_WRITE(host->base, STAT, STAT_CLEAR);
> > OMAP_HSMMC_WRITE(host->base, ISE, INT_EN_MASK);
> > - OMAP_HSMMC_WRITE(host->base, IE, INT_EN_MASK);
> > +
> > + if (host->use_dma)
> > + OMAP_HSMMC_WRITE(host->base, IE,
> > + INT_EN_MASK & ~(BRR_ENABLE | BWR_ENABLE));
> > + else
> > + OMAP_HSMMC_WRITE(host->base, IE, INT_EN_MASK);
> >
> > host->response_busy = 0;
> > if (cmd->flags & MMC_RSP_PRESENT) {
>
>
> --
> -- Pierre Ossman
>
> WARNING: This correspondence is being monitored by the
> Swedish government. Make sure your server uses encryption
> for SMTP traffic and consider using PGP for end-to-end
> encryption.
next prev parent reply other threads:[~2009-04-30 18:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-21 7:39 [PATCH] OMAP: HSMMC: Do not enable buffer ready interrupt if using DMA Gadiyar, Anand
2009-04-28 19:38 ` Pierre Ossman
2009-04-30 18:58 ` Tony Lindgren [this message]
2009-05-05 9:57 ` Jarkko Lavinen
2009-05-06 8:01 ` Gadiyar, Anand
2009-05-22 13:57 ` Gadiyar, Anand
2009-07-01 6:29 ` Gadiyar, Anand
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=20090430185844.GG12986@atomide.com \
--to=tony@atomide.com \
--cc=adrian.hunter@nokia.com \
--cc=gadiyar@ti.com \
--cc=jarkko.lavinen@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=pierre@ossman.eu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.