Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325022
b: refs/heads/master
c: 82ee0c8
h: refs/heads/master
v: v3
  • Loading branch information
Toshiaki Yamane authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent e3eef0c commit 421d712
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c39c0584a6dd5f4449869fed308ee4e91aec719
refs/heads/master: 82ee0c898b358084248463355ad8f8cbadcf971d
12 changes: 4 additions & 8 deletions trunk/drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1743,30 +1743,26 @@ static int sd_ddr_pre_tuning_tx(struct rtsx_chip *chip)
}

retval = sd_change_phase(chip, (u8)i, TUNE_TX);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
continue;
}

retval = sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr,
SD_RSP_TYPE_R1, NULL, 0);
if ((retval == STATUS_SUCCESS) || !sd_check_err_code(chip, SD_RSP_TIMEOUT)) {
if ((retval == STATUS_SUCCESS) || !sd_check_err_code(chip, SD_RSP_TIMEOUT))
phase_map |= 1 << i;
}
}

RTSX_WRITE_REG(chip, SD_CFG3, SD_RSP_80CLK_TIMEOUT_EN, 0);

RTSX_DEBUGP("DDR TX pre tune phase_map = 0x%08x\n", phase_map);

final_phase = sd_search_final_phase(chip, phase_map, TUNE_TX);
if (final_phase == 0xFF) {
if (final_phase == 0xFF)
TRACE_RET(chip, STATUS_FAIL);
}

retval = sd_change_phase(chip, final_phase, TUNE_TX);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
TRACE_RET(chip, STATUS_FAIL);
}

RTSX_DEBUGP("DDR TX pre tune phase: %d\n", (int)final_phase);

Expand Down

0 comments on commit 421d712

Please sign in to comment.