Commit 82f7c848 authored by James Bottomley's avatar James Bottomley

Fix sym2 Ultra160 mode

From: Anton Blanchard <anton@samba.org>
parent 49822268
...@@ -1058,13 +1058,11 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram) ...@@ -1058,13 +1058,11 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram)
* and BUS width. * and BUS width.
*/ */
if (np->features & FE_ULTRA3) { if (np->features & FE_ULTRA3) {
if (tp->tinfo.user.period <= 9 &&
tp->tinfo.user.width == BUS_16_BIT) {
tp->tinfo.user.options |= PPR_OPT_DT; tp->tinfo.user.options |= PPR_OPT_DT;
tp->tinfo.user.period = np->minsync_dt;
tp->tinfo.user.offset = np->maxoffs_dt; tp->tinfo.user.offset = np->maxoffs_dt;
tp->tinfo.user.spi_version = 3; tp->tinfo.user.spi_version = 3;
} }
}
if (!tp->usrtags) if (!tp->usrtags)
tp->usrflags &= ~SYM_TAGS_ENABLED; tp->usrflags &= ~SYM_TAGS_ENABLED;
...@@ -2126,9 +2124,15 @@ sym_setsync(hcb_p np, int target, ...@@ -2126,9 +2124,15 @@ sym_setsync(hcb_p np, int target,
sym_settrans(np, target, 0, ofs, per, wide, div, fak); sym_settrans(np, target, 0, ofs, per, wide, div, fak);
tp->tinfo.goal.period = tp->tinfo.curr.period = per; tp->tinfo.curr.period = per;
tp->tinfo.goal.offset = tp->tinfo.curr.offset = ofs; tp->tinfo.curr.offset = ofs;
tp->tinfo.goal.options = tp->tinfo.curr.options = 0; tp->tinfo.curr.options = 0;
if (!(tp->tinfo.goal.options & PPR_OPT_MASK)) {
tp->tinfo.goal.period = per;
tp->tinfo.goal.offset = ofs;
tp->tinfo.goal.options = 0;
}
sym_xpt_async_nego_sync(np, target); sym_xpt_async_nego_sync(np, target);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment