Skip to contentSkip to conversation

IB/qib: add missing serdes init sequeuce

PATCH New Mike Marciniszyn 1 participant 1 message Feb 12, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/qib: add missing serdes init sequeuce

Research has shown that commit a77fcf89
("IB/qib: Use a single txselect module parameter for serdes tuning") missed a key serdes init sequence.

This patch add that sequence.

---
 drivers/infiniband/hw/qib/qib_iba7322.c |    5 +++++
 1 file changed, 5 insertions(+)
drivers/infiniband/hw/qib/qib_iba7322.c +5 -0
index 5bfc02f..d1bd213 100644
@@ -2395,6 +2395,11 @@ static int qib_7322_bringup_serdes(struct qib_pportdata *ppd)
 	qib_write_kreg_port(ppd, krp_ibcctrl_a, ppd->cpspec->ibcctrl_a);
 	qib_write_kreg(dd, kr_scratch, 0ULL);
 
+	/* ensure previous Tx parameters are not still forced */
+	qib_write_kreg_port(ppd, krp_tx_deemph_override,
+		SYM_MASK(IBSD_TX_DEEMPHASIS_OVERRIDE_0,
+		reset_tx_deemphasis_override));
+
 	if (qib_compat_ddr_negotiate) {
 		ppd->cpspec->ibdeltainprog = 1;
 		ppd->cpspec->ibsymsnap = read_7322_creg32_port(ppd,

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html