staging: rts_pstor: fix a bug that a greenhouse sd card can't be recognized
commit2d2322b269c2524996a259024f82c7e318719696
authorwwang <wei_wang@realsil.com.cn>
Fri, 4 Mar 2011 02:56:36 +0000 (4 10:56 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Mar 2011 21:42:34 +0000 (7 13:42 -0800)
treea4f691c1bfad16ea331c6f24fc4e0ebb159a729c
parent1254a459a376962ba771618742af47c8a1b92a6e
staging: rts_pstor: fix a bug that a greenhouse sd card can't be recognized

A greenhouse sd card can't be recognized using rts5209.
To fix this bug, these modifications are applied:
1, Move some codes which clear sd internal variables from sd_init_type to
sd_prepare_reset. So sd_init_type is useless any more and is removed
entirely;
2, If a sd card can't pass sd3.0 mode, the action of tunning phase should be
avoided when retrying sd2.0 mode.

Signed-off-by: wwang <wei_wang@realsil.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rts_pstor/sd.c