]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: phy: bcm7xxx: only show PHY revision once
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 11 Nov 2014 22:55:10 +0000 (14:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 18:58:06 +0000 (13:58 -0500)
bcm7xxx_28nm_config_init() can be called as frequently as needed by the
PHY library upon suspend/resume cycles and interface bring up/down, just
print the PHY revision once and for all in order not to spam kernel
logs.

Fixes: d8ebfed3f11b ("net: phy: bcm7xxx: utilize PHY revision in config_init")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm7xxx.c

index 437481be151d3bb80c8730e0f8ac803d12706eb6..e1ce0028565a99f91797dc6f7219624020bd0555 100644 (file)
@@ -200,7 +200,8 @@ static int bcm7xxx_28nm_config_init(struct phy_device *phydev)
        u8 patch = PHY_BRCM_7XXX_PATCH(phydev->dev_flags);
        int ret = 0;
 
-       dev_info(&phydev->dev, "PHY revision: 0x%02x, patch: %d\n", rev, patch);
+       pr_info_once("%s: %s PHY revision: 0x%02x, patch: %d\n",
+                    dev_name(&phydev->dev), phydev->drv->name, rev, patch);
 
        switch (rev) {
        case 0xa0: