ramips: do not print error log when mdio bus is disabled
authorShiji Yang <yangshiji66@qq.com>
Thu, 22 Jun 2023 18:05:21 +0000 (02:05 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 25 Jun 2023 16:48:29 +0000 (18:48 +0200)
The mdio bus is used to control externel switch. In most cases, they are
disabled, which is the normal behavior. Treating this as an error makes
no sense, so we need to change the notification level from error to info.

Fixes: a2acdf960704 ("ramips: mt7620: remove useless GMAC nodes")
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c

index a6448443c01f3e30bba5c0d9a40915916dbe9d0a..7e896644f8a332c2573d5b7732dbbb6d6588de74 100644 (file)
@@ -257,7 +257,7 @@ err_free_bus:
 err_put_node:
        of_node_put(mii_np);
 err_no_bus:
-       dev_err(priv->dev, "%s disabled", "mdio-bus");
+       dev_info(priv->dev, "%s disabled", "mdio-bus");
        priv->mii_bus = NULL;
        return err;
 }