Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F148AC282CE for ; Tue, 4 Jun 2019 21:12:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C3E2D2070B for ; Tue, 4 Jun 2019 21:12:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="6URlGzZ1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbfFDVMZ (ORCPT ); Tue, 4 Jun 2019 17:12:25 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56308 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfFDVMZ (ORCPT ); Tue, 4 Jun 2019 17:12:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SUzG4EHR7GoUCu4/NmOaeCPfw8sW2i47plyzCSAIqoc=; b=6URlGzZ1aFoDkxdebjwD5KMOTq wvQjSilcJDhE09wEXXDZuxb+rUvLEWxcB3rmuwYJcekR2q65uYcudnfgjiOEWv0U4cHYQnfp+1Jsh UYzGJ7kVqsYrVKL8zFvsDMv6OAl96ktu5aw/NgfDvaWxhd4/AWqEx9aEdwcV/VKM8jTE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hYGjF-0008Gx-48; Tue, 04 Jun 2019 23:12:21 +0200 Date: Tue, 4 Jun 2019 23:12:21 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: "linux@armlinux.org.uk" , Heiner Kallweit , Florian Fainelli , "netdev@vger.kernel.org" , Ioana Ciornei Subject: Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect? Message-ID: <20190604211221.GW19627@lunn.ch> References: <52888d1f-2f7d-bfa1-ca05-73887b68153d@gmail.com> <20190604200713.GV19627@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > But now the second question: between a phy_connect and a phy_start, > shouldn't the PHY be suspended too? Experimentally it looks like it > still isn't. This is not always clear cut. Doing auto-neg is slow. Some systems want to get networking going as fast as possible. The PHY can be strapped so that on power up it starts autoneg. That can be finished by the time linux takes control of the PHY, and it can take over the results, rather than triggering another auto-neg, which will add another 3 seconds before the network is up. If we power the PHY down, between connect and start, we loose all this. I don't remember anybody submitting patches because the PHY passed frames to the MAC too early. So i don't think there is much danger there. Andrew