Re: [PATCHv2] net/macb: Add hardware revision information during probe

2014-09-13 Thread David Miller
From: Alexandre Belloni 
Date: Sat, 13 Sep 2014 01:57:49 +0200

> From: Bo Shen 
> 
> Print the IP revision when probing.
> 
> Signed-off-by: Bo Shen 
> Signed-off-by: Nicolas Ferre 
> ---
> Changes in v2:
>  - condense information on one line

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCHv2] net/macb: Add hardware revision information during probe

2014-09-13 Thread David Miller
From: Alexandre Belloni alexandre.bell...@free-electrons.com
Date: Sat, 13 Sep 2014 01:57:49 +0200

 From: Bo Shen voice.s...@atmel.com
 
 Print the IP revision when probing.
 
 Signed-off-by: Bo Shen voice.s...@atmel.com
 Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com
 ---
 Changes in v2:
  - condense information on one line

Applied, thanks.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCHv2] net/macb: Add hardware revision information during probe

2014-09-12 Thread Alexandre Belloni
From: Bo Shen 

Print the IP revision when probing.

Signed-off-by: Bo Shen 
Signed-off-by: Nicolas Ferre 
---
Changes in v2:
 - condense information on one line

 drivers/net/ethernet/cadence/macb.c | 6 +++---
 1 file 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",
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCHv2] net/macb: Add hardware revision information during probe

2014-09-12 Thread Alexandre Belloni
From: Bo Shen voice.s...@atmel.com

Print the IP revision when probing.

Signed-off-by: Bo Shen voice.s...@atmel.com
Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com
---
Changes in v2:
 - condense information on one line

 drivers/net/ethernet/cadence/macb.c | 6 +++---
 1 file 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,
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/