summaryrefslogtreecommitdiff
path: root/drivers/staging/rts_pstor/sd.c
diff options
context:
space:
mode:
authorwwang <wei_wang@realsil.com.cn>2011-04-20 07:14:05 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-26 00:26:19 (GMT)
commite0ce58d7b05eba3d79ea8124d417224dae65c71f (patch)
treeeaf85568cfce1444d969180dc33c62b2b0fb5dd0 /drivers/staging/rts_pstor/sd.c
parent29bad1a139af7574df37613259298c198c4bf93c (diff)
downloadlinux-fsl-qoriq-e0ce58d7b05eba3d79ea8124d417224dae65c71f.tar.xz
staging: rts_pstor: clear error when read sd lba0 fail
Call rtsx_clear_sd_error if sd_read_data fail when reading sd lba0. Signed-off-by: wwang <wei_wang@realsil.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rts_pstor/sd.c')
-rw-r--r--drivers/staging/rts_pstor/sd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rts_pstor/sd.c b/drivers/staging/rts_pstor/sd.c
index 8d066bd..fbcc148 100644
--- a/drivers/staging/rts_pstor/sd.c
+++ b/drivers/staging/rts_pstor/sd.c
@@ -2227,6 +2227,7 @@ static int sd_read_lba0(struct rtsx_chip *chip)
retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd,
5, 512, 1, bus_width, NULL, 0, 100);
if (retval != STATUS_SUCCESS) {
+ rtsx_clear_sd_error(chip);
TRACE_RET(chip, STATUS_FAIL);
}