mmc: sdio: remember new card RCA when redetecting card
commitd9b54f5d31b2f7be7500d0648586f86638fc166d
authorStefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Tue, 1 Mar 2011 13:41:04 +0000 (1 14:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Mar 2011 14:31:18 +0000 (28 07:31 -0700)
tree23f4dfd4cf17266dce1453961acde05d6600b3df
parentd94f53b9b054b9fd0e783323eaa0f53cc84a232c
mmc: sdio: remember new card RCA when redetecting card

commit 0aab3995485b8a994bf29a995a008c9ea4a28054 upstream.

During redetection of a SDIO card, a request for a new card RCA
was submitted to the card, but was then overwritten by the old RCA.
This caused the card to be deselected instead of selected when using
the incorrect RCA.  This bug's been present since the "oldcard"
handling was introduced in 2.6.32.

Signed-off-by: Stefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Reviewed-by: Ulf Hansson <ulf.hansson@stericsson.com>
Reviewed-by: Pawel Wieczorkiewicz <pawel.wieczorkiewicz@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mmc/core/sdio.c