Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944070AbdDTJV2 (ORCPT ); Thu, 20 Apr 2017 05:21:28 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:42744 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940010AbdDTJVY (ORCPT ); Thu, 20 Apr 2017 05:21:24 -0400 Subject: Re: [PATCH] net: phy: fix auto-negotiation stall due to unavailable interrupt To: Alexander Kochetkov , Florian Fainelli References: <1492609604-16359-1-git-send-email-al.kochet@gmail.com> <24E19B31-CCD8-4032-B17B-D226D4DB881D@gmail.com> <754f7cfe-6914-570a-d0e5-4a26b6787281@gmail.com> CC: , , , , From: Roger Quadros Message-ID: <3b0cca7f-bffe-0717-fbea-7d9ba47a858f@ti.com> Date: Thu, 20 Apr 2017 12:21:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1371 Lines: 44 Hi, On 19/04/17 19:53, Alexander Kochetkov wrote: > >> 19 апр. 2017 г., в 19:32, Florian Fainelli написал(а): >> >> http://patchwork.ozlabs.org/patch/743773/ >> >> Roger can you also test Alexander's patch? This patch fixes my problem and doesn't have the 1 second delay that my patch had. So, Tested-by: Roger Quadros > > If MAC use phy_start_aneg() instead of phy_start() my patch will not work as > expected. Roger, if patch don’t work for you please check what MAC bring up PHY using > phy_start(): Our MAC driver is using phy_start() and I didn't face any issues with your patch. > > http://patchwork.ozlabs.org/patch/752308/ > > Is it correct to start PHY inside MAC probe using phy_start_aneg()? Or phy_start() must be used? > > And probably this tags should be added for my patch: > Fixes: 3c293f4e08b5 ("net: phy: Trigger state machine on state change and not polling.") > Cc: stable # v4.9+ > > Because I bisected to commit 529ed1275263 ("net: phy: phy drivers > should not set SUPPORTED_[Asym_]Pause») that looks pretty good. > > Also, there is another issue I found. link_timeout doesn’t work for interrupt driven PHY. > It is possible to implement timer to handle this case. > Florian, what do you think? Should this be fixed? > > Alexander. > cheers, -roger