NTB: MFV 5ae0beb6: Enable link for Intel root port mode in probe

We skip actually bringing up Rootport/Transparent configurations, so
most of this doesn't apply.  Original Linux commit log:

Link training should be enabled in the driver probe for root port mode.
We should not have to wait for transport to be loaded for this to
happen.  Otherwise the ntb device will not show up on the transparent
bridge side of the link.

Authored by:	Dave Jiang
Obtained from:	Linux (Dual BSD/GPL driver)
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2015-10-20 01:46:14 +00:00
parent 6849146f9d
commit fb6531b056

View File

@ -1481,8 +1481,11 @@ static inline bool
link_is_up(struct ntb_softc *ntb)
{
if (ntb->type == NTB_XEON)
if (ntb->type == NTB_XEON) {
if (ntb->conn_type == NTB_CONN_TRANSPARENT)
return (true);
return ((ntb->lnk_sta & NTB_LINK_STATUS_ACTIVE) != 0);
}
KASSERT(ntb->type == NTB_SOC, ("ntb type"));
return ((ntb->ntb_ctl & SOC_CNTL_LINK_DOWN) == 0);