Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp282496ybl; Tue, 27 Aug 2019 20:21:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzou+DfcPM5swU4MUddv+kxHkLf9T8XL6ywgjnqLEw6QDnRJHx+n4mFE0LtmOsKrLRdJF0s X-Received: by 2002:a62:7996:: with SMTP id u144mr2182759pfc.228.1566962519048; Tue, 27 Aug 2019 20:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566962519; cv=none; d=google.com; s=arc-20160816; b=NogYW+wD5+nVRo0F48UcJS2MhcRqsDUET8jI0EZxc7XVXSkSYa+c2Tg7icGqLqBRUe xfoYs5UKzuJvQhsTGbKYKmhT3Wrdn81vdA3eQLrN7DEwT6i+TsuIyeR02IJu3aMPLNqd YUz4beHyzLVV2CLDZ48Jx95cNFP1NOkUlJUDHpzXjcgXUFVIdq0I+5sB05Fok3RiSdnQ bSEnzgeq17++Sz8EVuSEoE6ycArhEyhcOkvRm2z4/BevUHt3kUt5L+Ii43KZ3TsR+S22 kjPhBCqglBKZ1nQvO6yFCYfNzBkCNZKXH5FI8GTxHPwUKuGJxAW+C+Ilw3HEd2GFoRxs KJuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=3hyxDCeKtDm1Oi7dLljbYkbxri5H906tURq9jRBX6vQ=; b=NB4dgtcTR6Tu0LPtB7aVAa+2MCfZ4krMMR4o6/wiXZh3IWEWa87a7HqIqVdVXr+p0f eNMMfoAH5bExps+YqSrxiVssBOijTPyJIAIsoSLWtgHlrDrPVhkCTu5Uom/NqrZXveYV 5iHE5DW6Y9FGN9MURYHCaRQVRRPrh0gSnaDej0qoteEytmAC9BkizPKUg+10jbf+NICf GsmoP050vgONOcWqOyRx5znCPze1H3wkDHPe56KtfvUf0m3lHhHy4kBSi5gIC0RN/PeN w+FC3abzoD48Lyx3zm0Zu6JiklPL+UrufQ+ascY2sOAmsg6eli+WPYdVzwgm185Nv5QY imRQ== ARC-Authentication-Results: i=1; mx.google.com; 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 k13si1078907pgt.285.2019.08.27.20.21.40; Tue, 27 Aug 2019 20:21:59 -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; 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 S1726378AbfH1DUp (ORCPT + 99 others); Tue, 27 Aug 2019 23:20:45 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:54220 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbfH1DUo (ORCPT ); Tue, 27 Aug 2019 23:20:44 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 02D60153B917B; Tue, 27 Aug 2019 20:20:43 -0700 (PDT) Date: Tue, 27 Aug 2019 20:20:43 -0700 (PDT) Message-Id: <20190827.202043.766506227116086877.davem@davemloft.net> To: marco.hartmann@nxp.com Cc: andrew@lunn.ch, 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 From: David Miller In-Reply-To: <1566385208-23523-1-git-send-email-marco.hartmann@nxp.com> References: <1566385208-23523-1-git-send-email-marco.hartmann@nxp.com> X-Mailer: Mew version 6.8 on Emacs 26.1 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]); Tue, 27 Aug 2019 20:20:44 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > Changes in v2: > - corrected commit message > - reordered variables Applied to net-next.