projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29bad1a
)
staging: rts_pstor: clear error when read sd lba0 fail
author
wwang
<wei_wang@realsil.com.cn>
Wed, 20 Apr 2011 07:14:05 +0000
(15:14 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 26 Apr 2011 00:26:19 +0000
(17:26 -0700)
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>
drivers/staging/rts_pstor/sd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rts_pstor/sd.c
b/drivers/staging/rts_pstor/sd.c
index 8d066bd428c4ad94e4785a974c2b98c2acceddb0..fbcc148d7b75d7b0ed3ab205e52b4a9710ff32b0 100644
(file)
--- 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);
}