kernel: rtl836x: change missing mdio node log level to info
authorShiji Yang <yangshiji66@outlook.com>
Fri, 12 Dec 2025 16:40:41 +0000 (00:40 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 17:22:01 +0000 (18:22 +0100)
mdio node is optional for the rtl836x switch. Some devices use GPIO to
control the switch chip. Missing mdio is a normal behavior.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/21143
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/files/drivers/net/phy/rtl8366_smi.c

index f043b2b875a0373df44b0060b6a2963870a145b0..f4879a827b163c80f8d9a5a15fc12d5ec04cf00b 100644 (file)
@@ -1489,7 +1489,7 @@ static int rtl8366_smi_probe_of(struct platform_device *pdev, struct rtl8366_smi
 
        mdio_node = of_parse_phandle(np, "mii-bus", 0);
        if (!mdio_node) {
-               dev_err(&pdev->dev, "cannot find mdio node phandle");
+               dev_info(&pdev->dev, "cannot find mdio node phandle");
                goto try_gpio;
        }