From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752900AbcDOWFQ (ORCPT ); Fri, 15 Apr 2016 18:05:16 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:58099 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbcDOWFN (ORCPT ); Fri, 15 Apr 2016 18:05:13 -0400 Date: Sat, 16 Apr 2016 00:05:08 +0200 From: Andrew Lunn To: Alexandre Belloni Cc: Florian Fainelli , "David S . Miller" , Nicolas Ferre , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: Ensure the state machine is called when phy is UP Message-ID: <20160415220508.GC26665@lunn.ch> References: <1460750172-7796-1-git-send-email-alexandre.belloni@free-electrons.com> <57114AA4.5080803@gmail.com> <20160415205613.GE25196@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160415205613.GE25196@piout.net> 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 > Trace without my patch: > libphy: MACB_mii_bus: probed > macb f8020000.ethernet eth0: Cadence GEM rev 0x00020120 at 0xf8020000 irq 27 (fc:c2:3d:0c:6e:05) > Micrel KSZ8081 or KSZ8091 f8020000.etherne:01: attached PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=f8020000.etherne:01, irq=171) > Micrel KSZ8081 or KSZ8091 f8020000.etherne:01: PHY state change READY -> READY > [...] > Micrel KSZ8081 or KSZ8091 f8020000.etherne:01: PHY state change READY -> READY Are there some state changes before this? How is it getting to state READY? It would expect it to start in DOWN, from when the phy device was created in phy_device_create(). Andrew