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.
Unified · Split
| @@ -1023,6 +1023,14 @@ static struct phy_driver realtek_drvs[] = { · 1022 unmodified lines | ||
| 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 | |