From: Andrew Lunn Subject: Re: net: phy: question about phy_is_internal for generic-phy Date: Fri, 9 Feb 2018 15:59:54 +0100 Message-ID: <20180209145954.GA29333@lunn.ch> References: <20180208190925.0B91.4A936039@socionext.com> <20180208125144.GA6642@lunn.ch> <20180209143157.11B8.4A936039@socionext.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: Kunihiko Hayashi Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:49504 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751038AbeBIO75 (ORCPT ); Fri, 9 Feb 2018 09:59:57 -0500 Content-Disposition: inline In-Reply-To: <20180209143157.11B8.4A936039@socionext.com> Sender: netdev-owner@vger.kernel.org List-ID: > There are some SoCs that have a built-in phy, and sometimes > these SoCs can choose to use built-in phy or external phy. O.K. This is the same use case we had at the end of last year. How are the MDIO busses arranged? Is there an internal MDIO bus and an external MDIO bus? How do you change between the internal and the external? Or is it one bus, with the two PHYs having different addresses? For the hardware in question last year, an MDIO MUX was implemented. The MAC has a phy-handle pointing to either the internal PHY on the internal MDIO bus, or the external PHY on the external MDIO bus. The MDIO MUX layer would then set the register to select between the two. https://patchwork.kernel.org/patch/10025279/ Andrew