From: Aaron Lu <aaron.lu@amd.com>
To: Chris Ball <cjb@laptop.org>
Cc: linux-mmc@vger.kernel.org, Aaron Lu <aaron.lwe@gmail.com>
Subject: Re: [PATCH 2/2] mmc: sdhci: A new flag SDHCI_NEEDS_RETUNING_TIMER
Date: Fri, 29 Jun 2012 14:49:48 +0800 [thread overview]
Message-ID: <20120629064943.GA28362@localhost.amd.com> (raw)
In-Reply-To: <87ipea8x66.fsf@octavius.laptop.org>
Hi,
On Fri, Jun 29, 2012 at 02:11:29AM -0400, Chris Ball wrote:
> Hi,
>
> On Fri, Jun 29 2012, Aaron Lu wrote:
> > Add a new flag of SDHCI_NEEDS_RETUNING_TIMER to represent if the host
> > needs retuning timer currently when driving the card inserted.
> >
> > This flag is set when the host does tuning the first time for the card
> > and is used afterwards whenever needs to decide if the host is currently
> > using a retuning timer.
> >
> > This flag is cleared when the card is removed in sdhci_reinit.
> >
> > The set/clear of the flag and the start/stop of the retuning timer is
> > associated with the card's init/remove time, so there is no need to
> > touch it when the host is to be removed as at that time the card should
> > have already been removed.
>
> [...]
> > @@ -3097,10 +3092,6 @@ void sdhci_remove_host(struct sdhci_host *host, int dead)
> >
> > free_irq(host->irq, host);
> >
> > - del_timer_sync(&host->timer);
> > - if (host->version >= SDHCI_SPEC_300)
> > - del_timer_sync(&host->tuning_timer);
> > -
> > tasklet_kill(&host->card_tasklet);
> > tasklet_kill(&host->finish_tasklet);
>
> The last paragraph of the commit message explains why you remove the
> del_timer_sync() call on the tuning_timer; but why do you remove it
> from the main (timeouts) host->timer too?
Oops... My mistake, sorry for that.
Will send v2.
Thanks,
Aaron
>
> Thanks,
>
> - Chris.
> --
> Chris Ball <cjb@laptop.org> <http://printf.net/>
> One Laptop Per Child
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2012-06-29 6:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-29 5:59 [PATCH 0/2] Fixes for tuning stuffs Aaron Lu
2012-06-29 5:59 ` [PATCH 1/2] mmc: sdhci: restore host settings when card is removed Aaron Lu
2012-06-29 5:59 ` [PATCH 2/2] mmc: sdhci: A new flag SDHCI_NEEDS_RETUNING_TIMER Aaron Lu
2012-06-29 6:11 ` Chris Ball
2012-06-29 6:49 ` Aaron Lu [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=20120629064943.GA28362@localhost.amd.com \
--to=aaron.lu@amd.com \
--cc=aaron.lwe@gmail.com \
--cc=cjb@laptop.org \
--cc=linux-mmc@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