net/macb: Add hardware revision information during probe
authorBo Shen <voice.shen@atmel.com>
Fri, 12 Sep 2014 23:57:49 +0000 (01:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 21:34:37 +0000 (17:34 -0400)
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>
drivers/net/ethernet/cadence/macb.c

index ca5d7798b2651888e651c454bb0ae94f964ca438..d9b8e94b805fe70e1f59468761602ab108f4a436 100644 (file)
@@ -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",