Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932730AbcJLJjH (ORCPT ); Wed, 12 Oct 2016 05:39:07 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:36977 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932609AbcJLJio (ORCPT ); Wed, 12 Oct 2016 05:38:44 -0400 Subject: Re: [RFC] net: phy: smsc: Disable auto-negotiation on startup To: Kyle Roeschley References: <20161010174123.21436-1-kyle.roeschley@ni.com> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn From: Florian Fainelli Message-ID: <0c2488d0-45f5-1ab7-bfa5-f19ae687a90f@gmail.com> Date: Wed, 12 Oct 2016 02:13:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20161010174123.21436-1-kyle.roeschley@ni.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 903 Lines: 22 On 10/10/2016 10:41 AM, Kyle Roeschley wrote: > Because the SMSC PHY completes auto-negotiation before the driver is > ready to handle interrupts, the PHY state machine never realizes that we > have a link. Clear the ANENABLE bit on initialization, which lets > genphy_config_aneg do its thing when that code is hit later. > > While this patch does fix the problem we see (no link on boot without > re-plugging the cable), it seems like the generic PHY code should be > able to handle auto-negotiation completing before interrupts are > enabled. Submitted as an RFC in the hopes that someone has an idea as to > how that could be done. > > This fix is copied from commit 99f81afc139c ("phy: micrel: Disable auto > negotiation on startup"). Do you mind trying: https://www.spinics.net/lists/netdev/msg397857.html and see if you do get link interrupts without your patch applied? Thanks! -- Florian