Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5879823f authored by Bo Shen's avatar Bo Shen Committed by David S. Miller
Browse files

net/macb: Add hardware revision information during probe



Print the IP revision when probing.

Signed-off-by: default avatarBo Shen <voice.shen@atmel.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 45f85a25
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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",