Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp79864ybl; Tue, 27 Aug 2019 16:11:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzD98zG+ZvlkpYp28fvC5aXesPmDlpS5XnW6KniSsKOz74F+jTYQPsHnfSttX+rgWuq+Wob X-Received: by 2002:aa7:9a12:: with SMTP id w18mr1195157pfj.110.1566947474180; Tue, 27 Aug 2019 16:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566947474; cv=none; d=google.com; s=arc-20160816; b=DqoZyVuBkNeCfn7KPe9sXxHfJQaXyDnLBPNW45PJnxM949HGMeD8Rc0eVTwwJ+S8Eh 1PyFT6PgAKJEATvK974WxBt6FvvIk0LMp6OLHwADZsLCvSwyB7n0HLoxH8gSFGTjeWna 7AcSvdLLKLNYwOKFm/JcKWrZJMZnTZFt7y0YZdIGcPpqqxOlVMxIVTuOacPYb7IaUfe4 ub2lWajL2zACSTxHguRoI5W586zn1XPs5WhZaUkVui66zZlcqGB410yqBymYTBEDznBx 9K5BtLoHmCbVuizegnTmBLXT+GY9dShltbvU7J1jJYCOfsAzBh5VO2HIvzD55w97gxAl fEXA== 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=YR2u+b2LhnAELUHnWiGJHlda9p+tN1nN+D0ZxNNeSFg=; b=wEyQfwcYmiTpikVXjRjEL/KO0Jz5mvg0QXAD6iDJtTL/WUw0FLN2ToRVSTnLIljQ6t B8/fylUBc0z6eY4DLqc6tMHu5FirE0baxKiWuwKZYIbewKgA7l0phY4i0nwimRCwVKhL jgelxzgw3tPSNrruRQ8Dk6KTjnWvlSqS5T3Lh2BU4vMUZf2X/KtQYot4scGi/tolYt7O V/i3SK6TBXbSAE3fjBRMwilAYcD0LLFbAQBeHxvXNzykIkgLCMdjVamA4SBYE0U4P5ne uIxzKN4q8xC+WexA3nvQXKBPUsx4sSPALS2BcetA9vIXyALH/Ie7sHVnl5XU3D1RQudg LJFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=Sku2ku6u; 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 s1si356886pjo.82.2019.08.27.16.10.57; Tue, 27 Aug 2019 16:11:14 -0700 (PDT) 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=Sku2ku6u; 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 S1726289AbfH0XKG (ORCPT + 99 others); Tue, 27 Aug 2019 19:10:06 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:35938 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbfH0XKF (ORCPT ); Tue, 27 Aug 2019 19:10:05 -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=YR2u+b2LhnAELUHnWiGJHlda9p+tN1nN+D0ZxNNeSFg=; b=Sku2ku6uvXejga+FlHP4Ua6LSc X5gdiJkvBtcjGDgiSAcFfFC0Gbfgpy2k8EzblZKgGxL8FcEFxg9V1mAM4TJ6NfaYydV092VkNonx6 QL+Qp1QqgIh6aHRSB84A6Av0KoemlAKI1fb9TLcITbhvHy96AZpWYjewXq5XDTa0BUmY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1i2kbA-0007AK-8H; Wed, 28 Aug 2019 01:10:00 +0200 Date: Wed, 28 Aug 2019 01:10:00 +0200 From: Andrew Lunn To: David Miller Cc: marco.hartmann@nxp.com, f.fainelli@gmail.com, hkallweit1@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, christian.herber@nxp.com Subject: Re: [PATCH v2 net] Add genphy_c45_config_aneg() function to phy-c45.c Message-ID: <20190827231000.GA26248@lunn.ch> References: <1566385208-23523-1-git-send-email-marco.hartmann@nxp.com> <20190827.150103.723109968950216148.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190827.150103.723109968950216148.davem@davemloft.net> 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 Tue, Aug 27, 2019 at 03:01:03PM -0700, David Miller wrote: > From: Marco Hartmann > Date: Wed, 21 Aug 2019 11:00:46 +0000 > > > Commit 34786005eca3 ("net: phy: prevent PHYs w/o Clause 22 regs from calling > > genphy_config_aneg") introduced a check that aborts phy_config_aneg() > > if the phy is a C45 phy. > > This causes phy_state_machine() to call phy_error() so that the phy > > ends up in PHY_HALTED state. > > > > Instead of returning -EOPNOTSUPP, call genphy_c45_config_aneg() > > (analogous to the C22 case) so that the state machine can run > > correctly. > > > > genphy_c45_config_aneg() closely resembles mv3310_config_aneg() > > in drivers/net/phy/marvell10g.c, excluding vendor specific > > configurations for 1000BaseT. > > > > Fixes: 22b56e827093 ("net: phy: replace genphy_10g_driver with genphy_c45_driver") > > > > Signed-off-by: Marco Hartmann > > Andrew, gentle ping to respond to Heiner who said: It at least makes it consistent with phy_restart_aneg() and phy_aneg_done(). Reviewed-by: Andrew Lunn Andrew