]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net: mdio: Demote probed message to debug print
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 3 Jan 2022 19:40:24 +0000 (11:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:04:27 +0000 (09:04 +0100)
[ Upstream commit 7590fc6f80ac2cbf23e6b42b668bbeded070850b ]

On systems with large numbers of MDIO bus/muxes the message indicating
that a given MDIO bus has been successfully probed is repeated for as
many buses we have, which can eat up substantial boot time for no
reason, demote to a debug print.

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220103194024.2620-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/mdio_bus.c

index 3207da2224f67b1906d6d21431aeaec1c9928eba..eaa890a6a5d21e139048373f349cd9906fb3b2de 100644 (file)
@@ -426,7 +426,7 @@ int __mdiobus_register(struct mii_bus *bus, struct module *owner)
        mdiobus_setup_mdiodev_from_board_info(bus, mdiobus_create_device);
 
        bus->state = MDIOBUS_REGISTERED;
-       pr_info("%s: probed\n", bus->name);
+       dev_dbg(&bus->dev, "probed\n");
        return 0;
 
 error: