提交 5879823f 编写于 作者: B Bo Shen 提交者: David S. Miller

net/macb: Add hardware revision information during probe

Print the IP revision when probing.
Signed-off-by: NBo Shen <voice.shen@atmel.com>
Signed-off-by: NNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 45f85a25
...@@ -2241,9 +2241,9 @@ static int __init macb_probe(struct platform_device *pdev) ...@@ -2241,9 +2241,9 @@ static int __init macb_probe(struct platform_device *pdev)
netif_carrier_off(dev); netif_carrier_off(dev);
netdev_info(dev, "Cadence %s at 0x%08lx irq %d (%pM)\n", netdev_info(dev, "Cadence %s rev 0x%08x at 0x%08lx irq %d (%pM)\n",
macb_is_gem(bp) ? "GEM" : "MACB", dev->base_addr, macb_is_gem(bp) ? "GEM" : "MACB", macb_readl(bp, MID),
dev->irq, dev->dev_addr); dev->base_addr, dev->irq, dev->dev_addr);
phydev = bp->phy_dev; phydev = bp->phy_dev;
netdev_info(dev, "attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n", netdev_info(dev, "attached PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册