From: Fredrik Soderstedt Date: Tue, 23 Apr 2013 14:27:07 +0000 (+0200) Subject: mmc: core: Fix select power class after resume X-Git-Tag: v3.11-rc1~50^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60443712195bbcbbff9af189bdd9d2c1ef0a5cae;p=pandora-kernel.git mmc: core: Fix select power class after resume Use the saved values in card->ext_csd when selecting power class. By doing this the power class will be selected even if mmc_init_card is called with oldcard != NULL, which is the case after a suspend/resume. Today ext_csd is NULL if mmc_init_card is called with oldcard != NULL and power class will not be selected. According to the eMMC specification the POWER_CLASS value is reset after power failure, H/W reset assertion and any CMD0 reset. Signed-off-by: Fredrik Soderstedt Reviewed-by: Johan Rudholm Acked By: Girish K S Signed-off-by: Chris Ball --- Reading git-diff-tree failed