diff options
author | Bo Shen <voice.shen@atmel.com> | 2014-09-13 01:57:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-13 17:34:37 -0400 |
commit | 5879823fc66decc1c0416cad6cd506adbbda6a7f (patch) | |
tree | 385728936026d728d5936152244407ab11561a7a /drivers/net/ethernet/cadence/macb.c | |
parent | 45f85a2565a9ba4ab4dc095d4d32c4cd2a56b168 (diff) | |
download | talos-obmc-linux-5879823fc66decc1c0416cad6cd506adbbda6a7f.tar.gz talos-obmc-linux-5879823fc66decc1c0416cad6cd506adbbda6a7f.zip |
net/macb: Add hardware revision information during probe
Print the IP revision when probing.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.c')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index ca5d7798b265..d9b8e94b805f 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -2241,9 +2241,9 @@ static int __init macb_probe(struct platform_device *pdev) netif_carrier_off(dev); - netdev_info(dev, "Cadence %s at 0x%08lx irq %d (%pM)\n", - macb_is_gem(bp) ? "GEM" : "MACB", dev->base_addr, - dev->irq, dev->dev_addr); + netdev_info(dev, "Cadence %s rev 0x%08x at 0x%08lx irq %d (%pM)\n", + macb_is_gem(bp) ? "GEM" : "MACB", macb_readl(bp, MID), + dev->base_addr, dev->irq, dev->dev_addr); phydev = bp->phy_dev; netdev_info(dev, "attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n", |