]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: rk: rk3528: gmac0 only supports RMII
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 4 Feb 2026 09:14:33 +0000 (09:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Feb 2026 17:20:38 +0000 (09:20 -0800)
commitd7d92037cbd82ac6581ef9c97f14d2432f921fba
tree8a3f82d3c29947fd219c80d58303771deee7a10e
parentf365541bf7b6a32759c32c047df4ea80ff1cab86
net: stmmac: rk: rk3528: gmac0 only supports RMII

RK3528 gmac0 dtsi contains:

                gmac0: ethernet@ffbd0000 {
                        phy-handle = <&rmii0_phy>;
                        phy-mode = "rmii";

                        mdio0: mdio {
                                rmii0_phy: ethernet-phy@2 {
                                        phy-is-integrated;
                                };
                        };
                };

This follows the same pattern as rk3328, where this gmac instance
only supports RMII. Disable RGMII in phylink's supported_interfaces
mask for this gmac instance.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/E1vnYy1-00000007hp3-0hKm@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c