Re: [PATCH] mmc: clear MMC_PM_KEEP_POWER flag on resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, (adding Nico to CC in case he has comments)

On Mon, May 09 2011, Eliad Peller wrote:
> Since the MMC_PM_KEEP_POWER flag should be set on each suspend,
> it should also cleared on each resume.
>
> Upon resuming, we have to know if power was kept
> (for re-initialization, etc.), so clear it just after resuming.
>
> Signed-off-by: Eliad Peller <eliad@xxxxxxxxxx>
> ---
>  drivers/mmc/core/core.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index c2350e4..99941eb 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -1789,6 +1789,7 @@ int mmc_resume_host(struct mmc_host *host)
>  			err = 0;
>  		}
>  	}
> +	host->pm_flags &= ~MMC_PM_KEEP_POWER;
>  	mmc_bus_put(host);
>  
>  	return err;

Thanks, this looks correct to me, pushed to mmc-next for .40.

- Chris.
-- 
Chris Ball   <cjb@xxxxxxxxxx>   <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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux