Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: realtek: add support for RTL8365MB-VC internal PHYs

The RTL8365MB-VC ethernet switch controller has 4 internal PHYs for its
user-facing ports. All that is needed is to let the PHY driver core
pick up the IRQ made available by the switch driver.

Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alvin Šipraga and committed by
David S. Miller
2ca2969a 4af2950c

+8
+8
drivers/net/phy/realtek.c
··· 1023 1023 .resume = genphy_resume, 1024 1024 .read_page = rtl821x_read_page, 1025 1025 .write_page = rtl821x_write_page, 1026 + }, { 1027 + PHY_ID_MATCH_EXACT(0x001cc942), 1028 + .name = "RTL8365MB-VC Gigabit Ethernet", 1029 + /* Interrupt handling analogous to RTL8366RB */ 1030 + .config_intr = genphy_no_config_intr, 1031 + .handle_interrupt = genphy_handle_interrupt_no_ack, 1032 + .suspend = genphy_suspend, 1033 + .resume = genphy_resume, 1026 1034 }, 1027 1035 }; 1028 1036