From: Andy Ross Date: Mon, 3 Jan 2011 18:36:56 +0000 (-0800) Subject: mmc: Fix sd/sdio/mmc initialization frequency retries X-Git-Tag: v2.6.38-rc1~418^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=807e8e40673d9628fa7dcdd14423424b4ee5f43b;p=pandora-kernel.git mmc: Fix sd/sdio/mmc initialization frequency retries Rewrite and clean up mmc_rescan() to properly retry frequencies lower than 400kHz. Failures can happen both in sd_send_* calls and mmc_attach_*. Break out "mmc_rescan_try_freq" from the frequency selection loop. Symmetrize claim/release logic in mmc_attach_* API, and move the sd_send_* calls there to make mmc_rescan easier to read. Signed-off-by: Andy Ross Reviewed-and-Tested-by: Hein Tibosch Reviewed-by: Chris Ball Signed-off-by: Chris Ball --- Reading git-diff-tree failed