From: Adrian Hunter Date: Mon, 3 Oct 2011 12:33:33 +0000 (+0300) Subject: mmc: core: move ->request() call from atomic context X-Git-Tag: v3.2-rc1~129^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a7e1dfaa63bf5132b5b7231fcf9a33473c78f5;p=pandora-kernel.git mmc: core: move ->request() call from atomic context mmc_request_done() is sometimes called from interrupt or other atomic context. Mostly all mmc_request_done() does is complete(), however it contains code to retry on error, which uses ->request(). As the error path is certainly not performance critical, this may be moved to the waiting function mmc_wait_for_req_done(). This allows ->request() to use runtime PM get_sync() and guarantee it is never in an atomic context. Signed-off-by: Adrian Hunter Acked-by: Ulf Hansson Signed-off-by: Chris Ball --- Reading git-diff-tree failed