Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp481278imp; Thu, 21 Feb 2019 05:26:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IaY/n4YVdWRNV1M6RSPF3eqmwQQPvAwc3KgUcpSiOGbno0nD+O2cNRWkB7FMB7r90bUqXT5 X-Received: by 2002:a63:e14e:: with SMTP id h14mr23745725pgk.184.1550755610966; Thu, 21 Feb 2019 05:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550755610; cv=none; d=google.com; s=arc-20160816; b=rOLJAIm4DHoOdu3aHV7Fv5p4wE+2Gv88uRp4j9gsbwBmGKWrZRYb3VJcCaPXphxRat BEKcUiycJ4Yz/VhBixclsrqukRZB+SvSjtDR9m1+vwdWbAyZ+y6grAxLoFVndAey56AJ ZBO5LLcYAVKRYJdceD7Ym1msNHhpGtqi30OB1x584UFXcYaJYK3HtfxdBFBYaAUEwqDQ oUh/whSgWR4mhO6c+qMmR17TCSavREwZRzCGtgod+acptYXHECEC1RbWnu7oWUaMrFK4 Z2b2ZPEGF9vc0AAAeCyi8D4gs2iuBekx51rX6ckk2ZvJ55jTYarC+Fj0wXgiZZy/e93r ndMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BFLs3ECdBd7OUEOL+jbLAelIbJgRI2yEE0FpFhcbazc=; b=T0ds70XiCUItlyzJRMp1PxfKbaHlRYnF9A+pMTQpexD5Abfbe1LVbCwvhLMCLqtRWl DfOy5l9BxyE6W++2Z3AT0jWl+gktXhucnPqoeL8kPaPoQHM3GoB+UF6g3XrHrnd9Ro4k bGbOiWAWrdXRHkyWMjM1M0ABk9gJLKdBoasXC/VQkyceESj/AivvygR6N9OllEoLf4QU JEB/nZlfSbIp2XHo96dJYeXEAvVa86cyTf0ltD1b7/+9YlmHAHRqPQMu1i3OXMNNOX7S 5MEKMp9EYnwl9XAhuZqrI8XNoCNlN9HgfFmvmMj67KzoZoeJ+/6FXrut1g2JoFpWlddZ a7Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=4iDD1ZOB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si9699350pgd.22.2019.02.21.05.26.35; Thu, 21 Feb 2019 05:26:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=4iDD1ZOB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727974AbfBUN0C (ORCPT + 99 others); Thu, 21 Feb 2019 08:26:02 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:33045 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfBUN0B (ORCPT ); Thu, 21 Feb 2019 08:26:01 -0500 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=BFLs3ECdBd7OUEOL+jbLAelIbJgRI2yEE0FpFhcbazc=; b=4iDD1ZOBjqTPCQj5NooPXDXoH3 Jf55W0AvB3ShZjYnQVTigYFdSjvfEWouNT/SEZYlzkK9CRnroNlHr5KnPKiUh97JjGGd6odWPn6nQ qOWZgtEnk9eOh92BBYxXH7XXySzVClYKlYGv/h8p3WkbJ7rXg62xhV7LtM5jhwGjhjhE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gwoMQ-0001ub-3O; Thu, 21 Feb 2019 14:25:58 +0100 Date: Thu, 21 Feb 2019 14:25:58 +0100 From: Andrew Lunn To: Rundong Ge Cc: Florian Fainelli , hkallweit1@gmail.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: m88e6390_config_aneg will always reset the phy Message-ID: <20190221132558.GB5653@lunn.ch> References: 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 21, 2019 at 06:55:54PM +0800, Rundong Ge wrote: > Hi Andrew > > Before the "net: phy: marvell: Errata for mv88e6390 internal PHYs", > phydev will only be soft reset when register value was changed. > But after this patch, the phydev will always be reset when entering > the "m88e6390_config_aneg". > So is there any side effect of this change? Hi Rundong I tried to avoid the reset, but it does not appear you can read back the magic values which got poked into the magic registers. So there is no way to tell if the Errata has already been applied, e.g. by the boot loader. Side effects? The PHY might work :-) It might take a little bit longer to report link up, since there is an additional soft reset. Andrew