cxgb3: simplify port type struct and usage
Second step in overall phy layer reorganization. Clean up the port_type_info structure. Support coextistence of clause 22 and clause 45 MDIO devices. Select the type of MDIO transaction on a per transaction basis. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
78e4689e90
commit
044979827e
@@ -2368,7 +2368,7 @@ static void check_link_status(struct adapter *adapter)
|
||||
struct net_device *dev = adapter->port[i];
|
||||
struct port_info *p = netdev_priv(dev);
|
||||
|
||||
if (!(p->port_type->caps & SUPPORTED_IRQ) && netif_running(dev))
|
||||
if (!(p->phy.caps & SUPPORTED_IRQ) && netif_running(dev))
|
||||
t3_link_changed(adapter, i);
|
||||
}
|
||||
}
|
||||
@@ -2731,7 +2731,7 @@ static void __devinit print_port_info(struct adapter *adap,
|
||||
if (!test_bit(i, &adap->registered_device_map))
|
||||
continue;
|
||||
printk(KERN_INFO "%s: %s %s %sNIC (rev %d) %s%s\n",
|
||||
dev->name, ai->desc, pi->port_type->desc,
|
||||
dev->name, ai->desc, pi->phy.desc,
|
||||
is_offload(adap) ? "R" : "", adap->params.rev, buf,
|
||||
(adap->flags & USING_MSIX) ? " MSI-X" :
|
||||
(adap->flags & USING_MSI) ? " MSI" : "");
|
||||
|
Reference in New Issue
Block a user