mmc: sdio: remember new card RCA when redetecting card
authorStefan Nilsson XK <stefan.xk.nilsson@stericsson.com>
Tue, 1 Mar 2011 13:41:04 +0000 (14:41 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 17 Mar 2011 19:35:09 +0000 (15:35 -0400)
commit0aab3995485b8a994bf29a995a008c9ea4a28054
treeca4d3aba01b94ce9b8cb771536665c1b31f1fcdc
parentba6a902d9d89b976bf64a435ec97a490cd160dec
mmc: sdio: remember new card RCA when redetecting card

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>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio.c