]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Bus width testing needs to handle suspend/resume
authorPhilip Rakity <prakity@marvell.com>
Thu, 7 Jul 2011 16:04:55 +0000 (09:04 -0700)
committerChris Ball <cjb@laptop.org>
Wed, 13 Jul 2011 18:54:37 +0000 (14:54 -0400)
commit2c8f8cfde628b00ef8ffb316fe9105622328d8ce
tree3801f7d6793529d737fcbfd6af05b6900ef2cd06
parent7ccd92661e32954121b03c58e89cb24cf0a3c257
mmc: core: Bus width testing needs to handle suspend/resume

On reading the ext_csd for the first time (in 1 bit mode), save the
ext_csd information needed for bus width compare.

On every pass we make re-reading the ext_csd, compare the data
against the saved ext_csd data.

This fixes a regression introduced in 3.0-rc1 by 2d07ccfe6f9a6c95
("mmc: core: eMMC bus width may not work on all platforms"), which
incorrectly assumed we would be re-reading the ext_csd at resume-
time.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c
include/linux/mmc/card.h