Commit f3f777cdf00433866b1178e23a9a99e2eaf7d89e

Authored by Marek Vasut
1 parent f5f8c411de

ddr: altera: Remove unnecessary ODT mode config

There is no point in resetting the ODT setting if the write test
failed, since the code will always retry the calibration and thus
reconfigure the ODT anyway OR the code will fail calibration and
halt.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

drivers/ddr/altera/sequencer.c
... ... @@ -1207,7 +1207,6 @@
1207 1207 *bit_chk == param->write_correct_mask);
1208 1208 return *bit_chk == param->write_correct_mask;
1209 1209 } else {
1210   - set_rank_and_odt_mask(0, RW_MGR_ODT_MODE_OFF);
1211 1210 debug_cond(DLEVEL == 2,
1212 1211 "write_test(%u,%u,ONE) : %u != %i => %i\n",
1213 1212 write_group, use_dm, *bit_chk, 0, *bit_chk != 0);