Skip to content

Commit cc147a0

Browse files
muvarovdavem330
authored andcommitted
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>
1 parent 2e1c808 commit cc147a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/ti/davinci_mdio.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ static int davinci_mdio_reset(struct mii_bus *bus)
159159

160160
/* dump hardware version info */
161161
ver = __raw_readl(&data->regs->version);
162-
dev_info(data->dev, "davinci mdio revision %d.%d\n",
163-
(ver >> 8) & 0xff, ver & 0xff);
162+
dev_info(data->dev,
163+
"davinci mdio revision %d.%d, bus freq %ld\n",
164+
(ver >> 8) & 0xff, ver & 0xff,
165+
data->pdata.bus_freq);
164166

165167
if (data->skip_scan)
166168
goto done;

0 commit comments

Comments
 (0)