unifreq / linux-6.1.y

clone from https://github.com/chewitt/linux branch amlogic-6.1.y, And will add some patches that I have collected, which can be used for the aarch64 openwrt firmware, or for general occasions such as armbian.
Other
39 stars 58 forks source link

linux 6.1.53对于s905x3系列的问题 #36

Open darcyg opened 8 months ago

darcyg commented 8 months ago

linux 6.1.53的更新有一个补丁 of: property: Simplify of_link_to_phandle() 这个影响DT(设备树)的compatible属性 https://github.com/erkia/linux/commit/c50fdd53344810b2ca977f4d4979fb1dec811627 linux-stable.git的c50fdd53344810b2ca977f4d4979fb1dec811627 提交

我发现所有依赖arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi文件的

        ethmac: ethernet@ff3f0000 {
            compatible = "amlogic,meson-g12a-dwmac",
                     "snps,dwmac-3.70a",
                     "snps,dwmac";
            reg = <0x0 0xff3f0000 0x0 0x10000>,
                  <0x0 0xff634540 0x0 0x8>;
            interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
            interrupt-names = "macirq";
            clocks = <&clkc CLKID_ETH>,
                 <&clkc CLKID_FCLK_DIV2>,
                 <&clkc CLKID_MPLL2>,
                 <&clkc CLKID_FCLK_DIV2>;
            clock-names = "stmmaceth", "clkin0", "clkin1",
                      "timing-adjustment";
            rx-fifo-depth = <4096>;
            tx-fifo-depth = <2048>;
            status = "disabled";

            mdio0: mdio {
                #address-cells = <1>;
                #size-cells = <0>;
                compatible = "snps,dwmac-mdio";
            };
        };

都会受影响 应该是compatible = "snps,dwmac-mdio"; 这句找不到上游设备,导致执行问题。 错误是

[   16.614435] platform ff64c000.mdio-multiplexer: deferred probe pending
[   16.614452] platform ff3f0000.ethernet: deferred probe pending

需要unpatch这个补丁才能解决问题。

目测6.1.53后面的版本全部受影响,所有x3可能还有其他G12甚至更早的芯片都受影响,其他芯片不确定,我手中只有x3的机顶盒 故障状态应该是有线网卡加载不了。

可能DTS要换写法,怎么换我也不知道。