[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTiki_Sky6pry+vWAoTtJ5ctVUpawAH6iRYV6L-+z@mail.gmail.com>
Date: Wed, 13 Oct 2010 09:54:29 +0200
From: Vitaly Wool <vitalywool@...il.com>
To: Ohad Ben-Cohen <ohad@...ery.com>
Cc: linux-mmc@...r.kernel.org, Greg Kroah-Hartman <gregkh@...e.de>,
Maxim Levitsky <maximlevitsky@...il.com>,
libertas-dev@...ts.infradead.org, Nicolas Pitre <nico@...xnic.net>,
Sven Neumann <s.neumann@...mfeld.com>,
linux-kernel@...r.kernel.org, "Rafael J. Wysocki" <rjw@...k.pl>,
Daniel Mack <daniel@...aq.de>,
Colin Cross <ccross@...roid.com>, Chris Ball <cjb@...top.org>,
stable@...nel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] sdio: fix suspend/resume regression
Hi Ohad,
On Wed, Oct 13, 2010 at 9:31 AM, Ohad Ben-Cohen <ohad@...ery.com> wrote:
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index c94565d..515ff39 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -1682,6 +1682,19 @@ int mmc_suspend_host(struct mmc_host *host)
> if (host->bus_ops && !host->bus_dead) {
> if (host->bus_ops->suspend)
> err = host->bus_ops->suspend(host);
> + if (err == -ENOSYS || !host->bus_ops->resume) {
> + /*
> + * We simply "remove" the card in this case.
> + * It will be redetected on resume.
> + */
> + if (host->bus_ops->remove)
> + host->bus_ops->remove(host);
> + mmc_claim_host(host);
> + mmc_detach_bus(host);
> + mmc_release_host(host);
> + host->pm_flags = 0;
> + err = 0;
> + }
> }
> mmc_bus_put(host);
>
what about moving this logic to sdio bus_ops as this seems to be
completely specific to sdio right now?
Thanks,
Vitaly
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists