[openwrt/openwrt] ramips: do not print error log when mdio bus is disabled

LEDE Commits lede-commits at lists.infradead.org
Wed Jul 26 04:34:57 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/ead5860c569cfdf577408953ce7e3e0092d8866a

commit ead5860c569cfdf577408953ce7e3e0092d8866a
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Fri Jun 23 02:05:21 2023 +0800

    ramips: do not print error log when mdio bus is disabled
    
    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 at qq.com>
    (cherry picked from commit 285f0668f4058a935389985eb80353c8a5adbc7d)
---
 target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c
index a6448443c0..7e896644f8 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mdio.c
@@ -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;
 }




More information about the lede-commits mailing list