mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
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>
This commit is contained in:
parent
29bad1a139
commit
e0ce58d7b0
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue