diff options
author | Divy Le Ray <divy@chelsio.com> | 2008-10-08 20:38:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 20:38:29 -0400 |
commit | 044979827eda13675abab99879ebe3ea535d59fa (patch) | |
tree | bc4917540c36679c56cd1d3e70d26242233a555c /drivers/net/cxgb3/cxgb3_main.c | |
parent | 78e4689e908adc8334272756c32c9218d1967408 (diff) |
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>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_main.c')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index fea2c719c8f7..5b8251decbdc 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -2368,7 +2368,7 @@ static void check_link_status(struct adapter *adapter) | |||
2368 | struct net_device *dev = adapter->port[i]; | 2368 | struct net_device *dev = adapter->port[i]; |
2369 | struct port_info *p = netdev_priv(dev); | 2369 | struct port_info *p = netdev_priv(dev); |
2370 | 2370 | ||
2371 | if (!(p->port_type->caps & SUPPORTED_IRQ) && netif_running(dev)) | 2371 | if (!(p->phy.caps & SUPPORTED_IRQ) && netif_running(dev)) |
2372 | t3_link_changed(adapter, i); | 2372 | t3_link_changed(adapter, i); |
2373 | } | 2373 | } |
2374 | } | 2374 | } |
@@ -2731,7 +2731,7 @@ static void __devinit print_port_info(struct adapter *adap, | |||
2731 | if (!test_bit(i, &adap->registered_device_map)) | 2731 | if (!test_bit(i, &adap->registered_device_map)) |
2732 | continue; | 2732 | continue; |
2733 | printk(KERN_INFO "%s: %s %s %sNIC (rev %d) %s%s\n", | 2733 | printk(KERN_INFO "%s: %s %s %sNIC (rev %d) %s%s\n", |
2734 | dev->name, ai->desc, pi->port_type->desc, | 2734 | dev->name, ai->desc, pi->phy.desc, |
2735 | is_offload(adap) ? "R" : "", adap->params.rev, buf, | 2735 | is_offload(adap) ? "R" : "", adap->params.rev, buf, |
2736 | (adap->flags & USING_MSIX) ? " MSI-X" : | 2736 | (adap->flags & USING_MSIX) ? " MSI-X" : |
2737 | (adap->flags & USING_MSI) ? " MSI" : ""); | 2737 | (adap->flags & USING_MSI) ? " MSI" : ""); |