From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbdC0Lw4 (ORCPT ); Mon, 27 Mar 2017 07:52:56 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:10443 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbdC0LvT (ORCPT ); Mon, 27 Mar 2017 07:51:19 -0400 Subject: Re: [PATCH v2 1/2] net: phy: Fix PHY AN done state machine for interrupt driven PHYs To: Sergei Shtylyov , References: <1490180524-28675-1-git-send-email-rogerq@ti.com> <1490180524-28675-2-git-send-email-rogerq@ti.com> CC: , , , , , , "stable # v4 . 9+" From: Roger Quadros Message-ID: <587458e9-7287-2036-50a9-00c009a7f02c@ti.com> Date: Mon, 27 Mar 2017 14:50:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/17 11:52, Sergei Shtylyov wrote: > Hello! > > On 3/22/2017 2:02 PM, Roger Quadros wrote: > >> he ethernet link on an interrupt driven PHY was not coming up if the > > s/he/The/? > >> ethernet cable was plugged before the ethernet interface was brought up. > > Also, my spell checker trips on "ethernet", perhaps should be capitalized? Thanks. I'll fix both issues. > >> The PHY state machine seems to be stuck from RUNNING to AN state >> with no new interrupts from the PHY. So it doesn't know when the >> PHY Auto-negotiation has been completed and doesn't transition to RUNNING >> state with ANEG done thus netif_carrier_on() is never called. >> >> NOTE: genphy_config_aneg() will not restart PHY Auto-negotiation of >> advertisement parameters didn't change. >> >> Fix this by scheduling the PHY state machine in phy_start_aneg(). >> >> Fixes: 3c293f4e08b5 ("net: phy: Trigger state machine on state change and not polling.") >> Cc: stable # v4.9+ >> Signed-off-by: Roger Quadros > [...] > > MBR, Sergei > cheers, -roger