Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-10-07 Thread Barry Song
2011/10/7 Pavel Machek pa...@ucw.cz: 2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-10-07 Thread Barry Song
2011/10/7 Barry Song 21cn...@gmail.com: 2011/10/7 Pavel Machek pa...@ucw.cz: 2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-10-04 Thread Rafael J. Wysocki
On Thursday, September 29, 2011, Barry Song wrote: hi Valdis, 2011/9/29 valdis.kletni...@vt.edu: On Thu, 29 Sep 2011 02:29:08 PDT, Barry Song said: This patch adds resumewait kernel param just like rootwait so that we have enough time to wait mmc ready. The differene is here we wait

[PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect mmc partitions then add disk. we do have wait_for_device_probe and scsi_complete_async_scans before calling swsusp_check, but it

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Valdis . Kletnieks
On Thu, 29 Sep 2011 02:29:08 PDT, Barry Song said: This patch adds resumewait kernel param just like rootwait so that we have enough time to wait mmc ready. The differene is here we wait for resume partition but rootwait waits for rootfs partition. OK, seems a reasonable idea...

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
hi Valdis, 2011/9/29 valdis.kletni...@vt.edu: On Thu, 29 Sep 2011 02:29:08 PDT, Barry Song said: This patch adds resumewait kernel param just like rootwait so that we have enough time to wait mmc ready. The differene is here we wait for resume partition but rootwait waits for rootfs

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Luca Tettamanti
On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect mmc partitions then add disk. we do have

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Luca Tettamanti
On Thu, Sep 29, 2011 at 5:47 PM, Luca Tettamanti kronos...@gmail.com wrote: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For example, drivers/mmc/host/sdhci.c launchs a 200ms delayed work to detect mmc

Re: [PATCH] PM: HIBERNATION: add resume_wait param to support MMC-like devices as resume file

2011-09-29 Thread Barry Song
2011/9/29 Luca Tettamanti kronos...@gmail.com: On Thu, Sep 29, 2011 at 5:47 PM, Luca Tettamanti kronos...@gmail.com wrote: On Thu, Sep 29, 2011 at 11:29 AM, Barry Song barry.s...@csr.com wrote: From: Barry Song baohua.s...@csr.com Some devices like mmc are async detected very slow. For