Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc147a0d authored by Maxim Uvarov's avatar Maxim Uvarov Committed by David S. Miller
Browse files

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: default avatarMax Uvarov <muvarov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2e1c8084
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;