From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Dongsheng Subject: [PATCH v3 0/2] net: qcom/emac: add shared mdio bus support Date: Thu, 25 Oct 2018 18:08:36 +0800 Message-ID: References: <78719753-77bd-596a-dfc7-ccd676850283@kernel.org> Mime-Version: 1.0 Content-Type: text/plain Cc: Wang Dongsheng , , , To: , Return-path: Received: from mx01.hxt-semitech.com ([223.203.96.7]:55396 "EHLO barracuda.hxt-semitech.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727240AbeJYSla (ORCPT ); Thu, 25 Oct 2018 14:41:30 -0400 In-Reply-To: <78719753-77bd-596a-dfc7-ccd676850283@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: 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