[PATCH v3 0/2] net: qcom/emac: add shared mdio bus support
From: Wang Dongsheng <hidden>
Date: 2018-10-25 18:41:30
From: Wang Dongsheng <hidden>
Date: 2018-10-25 18:41:30
The emac include MDIO controller, and the motherboard has more than one PHY connected to an MDIO bus. So share the shared mii_bus for others MAC device that not has MDIO bus connected. Based on ACPI, since "phy-handle" cannot directly point to a _DSD sub-package, so we use "phy-handle" to point an internal MDIO device port. The port describes the phy address. Tested: QDF2400 (ACPI), buildin/insmod/rmmod V3: - Add "phy-handle" support. - Remove all of DT changes. V2: - Separate patch. Wang Dongsheng (2): net: qcom/emac: split phy_config to mdio bus create and get phy device net: qcom/emac: add phy-handle support for ACPI drivers/net/ethernet/qualcomm/emac/emac-phy.c | 183 ++++++++++++++---- 1 file changed, 142 insertions(+), 41 deletions(-) -- 2.18.0