]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: Fix printing of card DDR type
authorPhilip Rakity <prakity@marvell.com>
Sun, 7 Nov 2010 21:22:28 +0000 (16:22 -0500)
committerChris Ball <cjb@laptop.org>
Sun, 7 Nov 2010 21:45:08 +0000 (16:45 -0500)
commit40d07fcb6b0d6ce4be2a76e8da6dfa24fbff5da5
tree2da310eee6d3673e14ad5c0fa7e2a6667ebbff49
parent587f1401ab56eea3206b9103499c8efff53399a3
mmc: Fix printing of card DDR type

We should not call mmc_card_set_ddr_mode() if we are in single data
mode.  This sets DDR and causes the kernel log to say the card is DDR
when it is not.

Explicitly set ddr to 0 rather then rely on MMC_SDR_MODE being 0 when
doing the checks.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c