]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers: net: phy: aquantia: make it less verbose
authorAlex Marginean <alexandru.marginean@nxp.com>
Wed, 4 Dec 2019 13:32:16 +0000 (15:32 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Mar 2020 23:11:24 +0000 (18:11 -0500)
The driver now unconditionally prints some information that's not
universally useful.  Replace printf with debug.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/aquantia.c

index 25d30a65e7942bf5264f8d379d2e80de81958481..8ece926dd376992a8d6b3f1b0ff000cf792bc928 100644 (file)
@@ -424,9 +424,9 @@ int aquantia_config(struct phy_device *phydev)
        fault = phy_read(phydev, MDIO_MMD_VEND1, GLOBAL_FAULT);
 
        if (id != 0)
-               printf("%s running firmware version %X.%X.%X\n",
-                      phydev->dev->name, (id >> 8), id & 0xff,
-                      (rstatus >> 4) & 0xf);
+               debug("%s running firmware version %X.%X.%X\n",
+                     phydev->dev->name, (id >> 8), id & 0xff,
+                     (rstatus >> 4) & 0xf);
 
        if (fault != 0)
                printf("%s fault 0x%04x detected\n", phydev->dev->name, fault);
@@ -507,12 +507,12 @@ int aquantia_config(struct phy_device *phydev)
 
                if (usx_an) {
                        reg_val1 |= AQUANTIA_USX_AUTONEG_CONTROL_ENA;
-                       printf("%s: system interface USXGMII\n",
-                              phydev->dev->name);
+                       debug("%s: system interface USXGMII\n",
+                             phydev->dev->name);
                } else {
                        reg_val1 &= ~AQUANTIA_USX_AUTONEG_CONTROL_ENA;
-                       printf("%s: system interface XFI\n",
-                              phydev->dev->name);
+                       debug("%s: system interface XFI\n",
+                             phydev->dev->name);
                }
 
                phy_write(phydev, MDIO_MMD_PHYXS,
@@ -539,11 +539,11 @@ int aquantia_config(struct phy_device *phydev)
        val = phy_read(phydev, MDIO_MMD_VEND1, AQUANTIA_RESERVED_STATUS);
        reg_val1 = phy_read(phydev, MDIO_MMD_VEND1, AQUANTIA_FIRMWARE_ID);
 
-       printf("%s: %s Firmware Version %x.%x.%x\n", phydev->dev->name,
-              phydev->drv->name,
-              (reg_val1 & AQUANTIA_FIRMWARE_MAJOR_MASK) >> 8,
-              reg_val1 & AQUANTIA_FIRMWARE_MINOR_MASK,
-              (val & AQUANTIA_FIRMWARE_BUILD_MASK) >> 4);
+       debug("%s: %s Firmware Version %x.%x.%x\n", phydev->dev->name,
+             phydev->drv->name,
+             (reg_val1 & AQUANTIA_FIRMWARE_MAJOR_MASK) >> 8,
+             reg_val1 & AQUANTIA_FIRMWARE_MINOR_MASK,
+             (val & AQUANTIA_FIRMWARE_BUILD_MASK) >> 4);
 
        return 0;
 }