]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: fix power class selection
authorSubhash Jadavani <subhashj@codeaurora.org>
Tue, 3 Apr 2012 06:55:58 +0000 (12:25 +0530)
committerChris Ball <cjb@laptop.org>
Tue, 3 Apr 2012 11:30:49 +0000 (07:30 -0400)
commitcc517982d4a53c325099024c11ec39606b7c6f12
tree43744a575117eb7eef9cbb8a266bea6b9d4ede8f
parent0460e47651588f41cd2b3a4b7133796f739b398c
mmc: core: fix power class selection

mmc_select_powerclass() function returns error if eMMC
VDD level supported by host is between 2.7v to 3.2v.

According to eMMC specification, valid voltage for high
voltage cards is 2.7v to 3.6v. This patch ensures that
2.7v to 3.6v VDD range is treated as valid range.

Also, failure to set the power class shouldn't be treated
as fatal error because even if setting the power class
fails, card can still work in default power class.
If mmc_select_powerclass() returns error, just print
the warning message and go ahead with rest of the card
initialization.

Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Acked-by: Girish K S <girish.shivananjappa@linaro.org>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c