Skip to content

Commit

Permalink
staging: rts_pstor: clear error when read sd lba0 fail
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wwang authored and Greg Kroah-Hartman committed Apr 26, 2011
1 parent 29bad1a commit e0ce58d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e0ce58d

Please sign in to comment.