]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Hibernate: Add resumewait param to support MMC-like devices as resume file
authorBarry Song <baohua.song@csr.com>
Thu, 6 Oct 2011 18:34:46 +0000 (20:34 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 7 Oct 2011 21:24:46 +0000 (23:24 +0200)
commitb9def2e577c32fc8bb2ee5fb82246d3fa6826ff8
treee151e425009df4c671ac2ef6cbda546305799bec
parentc73633d3c690c1e8e03f497b16f9e3544d9f29a7
PM / Hibernate: Add resumewait param to support MMC-like devices as resume file

Some devices like MMC are async detected very slow. For example,
drivers/mmc/host/sdhci.c launches a 200ms delayed work to detect
MMC partitions then add disk.

We have wait_for_device_probe() and scsi_complete_async_scans()
before calling swsusp_check(), but it is not enough to wait for MMC.

This patch adds resumewait kernel param just like rootwait so
that we have enough time to wait until MMC is ready. The difference is
that we wait for resume partition whereas rootwait waits for rootfs
partition (which may be on a different device).

This patch will make hibernation support many embedded products
without SCSI devices, but with devices like MMC.

[rjw: Modified the changelog slightly.]

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Reviewed-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Documentation/kernel-parameters.txt
kernel/power/hibernate.c