You need to sign in or sign up before continuing.
提交 e0ce58d7 编写于 作者: W wwang 提交者: Greg Kroah-Hartman

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: Nwwang <wei_wang@realsil.com.cn>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 29bad1a1
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册