drivers: net: davinci_mdio: print bus frequency
authorMaxim Uvarov <muvarov@gmail.com>
Thu, 10 Aug 2017 07:47:47 +0000 (10:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:23:59 +0000 (14:23 -0700)
Frequency can be adjusted in DT it make sense to
print current used value on driver init.

Signed-off-by: Max Uvarov <muvarov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c

index 611e7cc5f07b81e927462e014aeee88243665740..3c33f4504d8e23f45e6b7668f20b1c399d5806f6 100644 (file)
@@ -159,8 +159,10 @@ static int davinci_mdio_reset(struct mii_bus *bus)
 
        /* dump hardware version info */
        ver = __raw_readl(&data->regs->version);
-       dev_info(data->dev, "davinci mdio revision %d.%d\n",
-                (ver >> 8) & 0xff, ver & 0xff);
+       dev_info(data->dev,
+                "davinci mdio revision %d.%d, bus freq %ld\n",
+                (ver >> 8) & 0xff, ver & 0xff,
+                data->pdata.bus_freq);
 
        if (data->skip_scan)
                goto done;