From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967255AbdDSQyl (ORCPT ); Wed, 19 Apr 2017 12:54:41 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:35644 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966966AbdDSQxi (ORCPT ); Wed, 19 Apr 2017 12:53:38 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] net: phy: fix auto-negotiation stall due to unavailable interrupt From: Alexander Kochetkov In-Reply-To: <754f7cfe-6914-570a-d0e5-4a26b6787281@gmail.com> Date: Wed, 19 Apr 2017 19:53:24 +0300 Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, Roger Quadros , nsekhar@ti.com, kyle.roeschley@ni.com Message-Id: 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> To: Florian Fainelli X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v3JGt0Pj027686 > 19 апр. 2017 г., в 19:32, Florian Fainelli написал(а): > > http://patchwork.ozlabs.org/patch/743773/ > > Roger can you also test Alexander's patch? 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(): 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.