From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: Need help with mdiobus_register and phy Date: Fri, 14 Oct 2016 14:57:36 +0200 Message-ID: <20161014125736.GK5822@lunn.ch> References: <5800159B.3080708@codeaurora.org> <20161014040641.GE5822@lunn.ch> <5800C3C7.60705@codeaurora.org> <20161014120624.GG5822@lunn.ch> <5800D214.70808@codeaurora.org> <20161014124928.GJ5822@lunn.ch> <5800D474.1030303@codeaurora.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: Timur Tabi Return-path: Received: from vps0.lunn.ch ([178.209.37.122]:45404 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755871AbcJNM5n (ORCPT ); Fri, 14 Oct 2016 08:57:43 -0400 Content-Disposition: inline In-Reply-To: <5800D474.1030303@codeaurora.org> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Oct 14, 2016 at 07:49:56AM -0500, Timur Tabi wrote: > Andrew Lunn wrote: > >So are you seeing that the reads to MII_PHYSID1 and MII_PHYSID2 return > >0xffff, when called from get_phy_id()? Have you tried using the ethernet-phy-id device tree property? It looks like that will allow you to skip get_phy_device and just create the phy device. You can then bring the phy out of sleep in the probe function? Andrew