All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Ball <cjb@laptop.org>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: Aaron Lu <aaron.lu@amd.com>,
	linux-mmc@vger.kernel.org, Philip Rakity <prakity@marvell.com>
Subject: Re: [PATCH v3 2/2] mmc: sdhci: Deal with failure case in sdhci_suspend_host
Date: Wed, 11 Jan 2012 14:39:34 -0500	[thread overview]
Message-ID: <m2mx9udo5l.fsf@bob.laptop.org> (raw)
In-Reply-To: <4F0B001C.9010205@intel.com> (Adrian Hunter's message of "Mon, 09 Jan 2012 16:56:28 +0200")

Hi,

On Mon, Jan 09 2012, Adrian Hunter wrote:
> On 04/01/12 04:07, Aaron Lu wrote:
>> V3: Rework on top of Adrian's vmmc patch
>> 
>> V2: Error processing code in sdhci_pci_suspend should not be deleted,
>> it is used to resume hosts which are already successfully suspended for
>> a multi slot pci device as suggested by Adrian.
>> 
>> If there are errors happened in sdhci_suspend_host, handle it so that
>> when the function returns with an error, the host's behaviour is the
>> same before this function call, e.g. card detection is enabled and
>> tuning timer is active, etc.
>> 
>> Signed-off-by: Philip Rakity <prakity@marvell.com>
>> Signed-off-by: Aaron Lu <aaron.lu@amd.com>
>> Cc: Adrian Hunter <adrian.hunter@intel.com>
>
> Acked-by: Adrian Hunter <adrian.hunter@intel.com>

Thanks, I'll push for 3.3 with Adrian's ACK and:

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index a8f1f7e..0636e9a 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2348,7 +2348,8 @@ out:
 
 int sdhci_suspend_host(struct sdhci_host *host)
 {
-	int ret, has_tuning_timer;
+	int ret;
+	bool has_tuning_timer;
 
 	sdhci_disable_card_detection(host);
 
- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

      reply	other threads:[~2012-01-11 19:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04  2:07 [PATCH v3 2/2] mmc: sdhci: Deal with failure case in sdhci_suspend_host Aaron Lu
2012-01-09 14:56 ` Adrian Hunter
2012-01-11 19:39   ` Chris Ball [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=m2mx9udo5l.fsf@bob.laptop.org \
    --to=cjb@laptop.org \
    --cc=aaron.lu@amd.com \
    --cc=adrian.hunter@intel.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=prakity@marvell.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 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.