From: Kevin Hilman <khilman@deeprootsystems.com>
To: Venkatraman S <svenkatr@ti.com>
Cc: linux-mmc@vger.kernel.org, linux-omap@vger.kernel.org,
cjb@laptop.org, balbi@ti.com
Subject: Re: [PATCHv2 1/2] mmc: omap_hsmmc: convert from IP timer to hrtimer
Date: Fri, 07 Sep 2012 14:59:03 -0700 [thread overview]
Message-ID: <877gs5jxzs.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1346159947-3194-1-git-send-email-svenkatr@ti.com> (Venkatraman S.'s message of "Tue, 28 Aug 2012 18:49:06 +0530")
Venkatraman S <svenkatr@ti.com> writes:
> omap hsmmc controller IP has a built in timer that can be programmed to
> guard against unresponsive operations. But its range is very narrow,
> and the maximum countable time is a few seconds.
>
> Card maintenance operations like BKOPS and MMC_ERASE and long
> stream writes like packed command require timers of order of
> several minutes, much beyond the capability of the IP timer.
> So get rid of using the IP timer entirely and use kernel's hrtimer
> functionality for guarding the device operations.
> As part of this change, a workaround that disabled timeouts for
> MMC_ERASE command is removed, and the arbitary timing of 100ms
> is used only when the timeout is not explicitly specified by core.
>
> A trivial change to get rid of unnecessary dealiasing of host->data
> in omap_hsmmc_do_irq is also included.
>
> Signed-off-by: Venkatraman S <svenkatr@ti.com>
Dumb question: if the timers needed are on the order of minutes, why do
you need to use high-resolution timers? I'm guessing the normal
kernel-internal timers should suffice here (see <linux/timer.h,
init_timer().)
Also, if they're on the order of minutes, I assume the actual firing
doesn't have to be precise, so deferrable timers can probably be used
(and thus help PM by coalescing wakeup events.)
If my assumptions are true, it might be worth considering using the
normal timers, and use init_timer_deferrable().
Kevin
next prev parent reply other threads:[~2012-09-07 21:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-28 13:19 [PATCHv2 1/2] mmc: omap_hsmmc: convert from IP timer to hrtimer Venkatraman S
2012-08-28 13:19 ` [PATCH 2/2] mmc: omap_hsmmc: cleanup the bitmap definitions of Interrupt Register Venkatraman S
2012-08-28 13:23 ` Felipe Balbi
2012-08-29 6:59 ` T Krishnamoorthy, Balaji
2012-08-28 13:21 ` [PATCHv2 1/2] mmc: omap_hsmmc: convert from IP timer to hrtimer Felipe Balbi
2012-09-07 21:59 ` Kevin Hilman [this message]
2012-09-10 4:33 ` S, Venkatraman
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=877gs5jxzs.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=balbi@ti.com \
--cc=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=svenkatr@ti.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