]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: phy: realtek: support interrupt also for C22 variants
authorDaniel Golle <daniel@makrotopia.org>
Tue, 13 Jan 2026 03:44:00 +0000 (03:44 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sun, 18 Jan 2026 00:12:16 +0000 (16:12 -0800)
Now that access to MDIO_MMD_VEND2 works transparently also in Clause-22
mode, add interrupt support also for the C22 variants of the
RTL8221B-VB-CG and RTL8221B-VM-CG. This results in the C22 and C45
driver instances now having all the same features implemented.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/7620084b1de01580edc2d0e1b9548507fb4643a8.1768275364.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/realtek/realtek_main.c

index 7b7a48e5082a2247e4c021c8ec1d784bf0057a00..1e78f2b4e6dd8d665f696219f5a3c80f63cbc9af 100644 (file)
@@ -2316,6 +2316,8 @@ static struct phy_driver realtek_drvs[] = {
        }, {
                .match_phy_device = rtl8221b_vb_cg_c22_match_phy_device,
                .name           = "RTL8221B-VB-CG 2.5Gbps PHY (C22)",
+               .config_intr    = rtl8221b_config_intr,
+               .handle_interrupt = rtl8221b_handle_interrupt,
                .probe          = rtl822x_probe,
                .get_features   = rtl822x_get_features,
                .config_aneg    = rtl822x_config_aneg,
@@ -2348,6 +2350,8 @@ static struct phy_driver realtek_drvs[] = {
        }, {
                .match_phy_device = rtl8221b_vm_cg_c22_match_phy_device,
                .name           = "RTL8221B-VM-CG 2.5Gbps PHY (C22)",
+               .config_intr    = rtl8221b_config_intr,
+               .handle_interrupt = rtl8221b_handle_interrupt,
                .probe          = rtl822x_probe,
                .get_features   = rtl822x_get_features,
                .config_aneg    = rtl822x_config_aneg,