summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorMaxim Uvarov <muvarov@gmail.com>2017-08-10 10:47:47 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-11 14:23:59 -0700
commitcc147a0dc312e5c85fe083b1712913e4496c11e5 (patch)
treed7960c099d15db8ee3a6de2b30c9b7315221273a /drivers/net/ethernet/ti
parent2e1c80847b9983a8c93a678f6de2dc3c42f19661 (diff)
downloadlinux-cc147a0dc312e5c85fe083b1712913e4496c11e5.tar.bz2
drivers: net: davinci_mdio: print bus frequency
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>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r--drivers/net/ethernet/ti/davinci_mdio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index 611e7cc5f07b..3c33f4504d8e 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -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;