From: Ulf Hansson Date: Tue, 14 Jan 2014 22:17:36 +0000 (+0100) Subject: mmc: core: Respect host's max_busy_timeout when sending sleep cmd X-Git-Tag: v3.15-rc1~42^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb962e04b04fb67dbaf1455d3c60d64297ef4933;p=pandora-kernel.git mmc: core: Respect host's max_busy_timeout when sending sleep cmd When sending the sleep command for host drivers supporting MMC_CAP_WAIT_WHILE_BUSY, we need to confirm that max_busy_timeout is big enough comparing to the sleep timeout specified from card's EXT_CSD. If this isn't case, we use a R1 response instead of R1B and fallback to use a delay instead. Do note that a max_busy_timeout set to zero by the host, is interpreted as it can cope with whatever timeout the mmc core provides it with. Signed-off-by: Ulf Hansson Signed-off-by: Chris Ball --- Reading git-diff-tree failed