]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Prevent too long response times for suspend
authorUlf Hansson <ulf.hansson@stericsson.com>
Thu, 13 Oct 2011 14:03:58 +0000 (16:03 +0200)
committerChris Ball <cjb@laptop.org>
Wed, 26 Oct 2011 20:32:31 +0000 (16:32 -0400)
commit64fc67ddb0e439ffdb9d25af542acd499768c8db
treedc2413bb2454ca3aec4c2a5c894c7b926690abcb
parentec39c4e5ef502d2a7db66a564cb4be7a052ce415
mmc: core: Prevent too long response times for suspend

While trying to suspend the mmc host there could still be
ongoing requests that we need to wait for. At the same time
a device driver must respond to a suspend request rather quickly.

Instead of potentially wait "forever" by claiming the host we now
"try" to claim the host instead. If it fails, -EBUSY is returned.

Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c