From: Andrew Lunn Subject: Re: [PATCH net-next 3/8] net: mscc: Add MDIO driver Date: Thu, 29 Mar 2018 16:57:27 +0200 Message-ID: <20180329145727.GB25752@lunn.ch> References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-4-alexandre.belloni@bootlin.com> <20180323204939.GS24361@lunn.ch> <20180329140544.GB12066@piout.net> <20180329144041.GA25752@lunn.ch> <20180329145352.GD12066@piout.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180329145352.GD12066@piout.net> Sender: linux-kernel-owner@vger.kernel.org To: Alexandre Belloni Cc: "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Florian Fainelli , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org List-Id: devicetree@vger.kernel.org > > It sounds like the correct fix is for get_phy_id() to look at the > > error code for mdiobus_read(bus, addr, MII_PHYSID1). If it is EIO and > > maybe ENODEV, set *phy_id to 0xffffffff and return. The scan code > > should then do the correct thing. > > > > That could work indeed. Do you want me to test and send a patch? Yes please. Thanks Andrew