Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753387AbbDFUgf (ORCPT ); Mon, 6 Apr 2015 16:36:35 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:48280 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751563AbbDFUgc (ORCPT ); Mon, 6 Apr 2015 16:36:32 -0400 Date: Mon, 06 Apr 2015 16:36:29 -0400 (EDT) Message-Id: <20150406.163629.812776722882819334.davem@davemloft.net> To: stsp@list.ru Cc: netdev@vger.kernel.org, thomas.petazzoni@free-electrons.com, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, stsp@users.sourceforge.net Subject: Re: [PATCH] mvneta: dont call mvneta_adjust_link() manually From: David Miller In-Reply-To: <551C1B81.1040706@list.ru> References: <551C1B81.1040706@list.ru> X-Mailer: Mew version 6.6 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 06 Apr 2015 13:36:31 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1036 Lines: 28 From: Stas Sergeev Date: Wed, 01 Apr 2015 19:23:29 +0300 > > mvneta_adjust_link() is a callback for of_phy_connect() and should > not be called directly. The result of calling it directly is as below: > --- > mvneta f1030000.ethernet eth1: Link is Up - Unsupported (update p > hy.c)/Half - flow control off > --- > > This is because initially the struct phy_device is created with > invalid parameters. phylib calls adjust_link() only when the parameters > are validated, but calling it by hands may happen too early. > > CC: Thomas Petazzoni > CC: netdev@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: Florian Fainelli > > Signed-off-by: Stas Sergeev Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/