Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbcCKTGr (ORCPT ); Fri, 11 Mar 2016 14:06:47 -0500 Received: from vps0.lunn.ch ([178.209.37.122]:55016 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbcCKTGp (ORCPT ); Fri, 11 Mar 2016 14:06:45 -0500 Date: Fri, 11 Mar 2016 20:06:27 +0100 From: Andrew Lunn To: David Daney Cc: David Daney , "David S. Miller" , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Florian Fainelli , Robert Richter , Sunil Goutham , Kumar Gala , Ian Campbell , Mark Rutland , Pawel Moll , Rob Herring , Radha Mohan Chintakuntla , linux-kernel@vger.kernel.org, David Daney Subject: Re: [PATCH 1/3] net: thunderx: Cleanup PHY probing code. Message-ID: <20160311190627.GC19277@lunn.ch> References: <1457714822-5754-1-git-send-email-ddaney.cavm@gmail.com> <1457714822-5754-2-git-send-email-ddaney.cavm@gmail.com> <20160311173125.GI3153@lunn.ch> <56E30332.7060003@caviumnetworks.com> <20160311180030.GB19277@lunn.ch> <56E30DDF.5040506@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56E30DDF.5040506@caviumnetworks.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1104 Lines: 25 > >I don't see why it should wait around forever. I have boards with > >Marvell PHYs, yet if i don't build the Marvell driver, the Ethernet > >driver still loads, because the generic PHY driver is used instead. > >Why does this not work here? > > As I said before, there is no driver for the device, so > of_phy_find_device() will always return NULL. I'm not yet convinced this is true. I really do expect that the generic PHY driver will bind to it. It might then go horribly wrong, because it is not standard compliant, but that is a different issue. The generic driver should probably have a black list for such devices. This is a PHY issue, not an MDIO issue, and the problem should be solved in the PHY layer, not in one MDIO driver. We should also consider what happens when somebody actually writes a driver for this PHY. Are you not going to use it? Before this patchset, you did not special case this compatible string. So at the very least, you need to split this into a separate patch, so the maintainers can ACK/NACK it, independent of the other change it is embedded in. Andrew