Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp757068ybl; Fri, 23 Aug 2019 07:57:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/u+A+5kiJqioA+h3Oj9tEsFq7S4Zvx4jNmHU9+GWzqIQ9qyCyNyu3eupCF+Zqx/lUnsuA X-Received: by 2002:a63:e14d:: with SMTP id h13mr4316883pgk.431.1566572277907; Fri, 23 Aug 2019 07:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566572277; cv=none; d=google.com; s=arc-20160816; b=TKW0akzA4kykg0NuOsThuz85FYQJRKpj/JWhV0uUtBI4nPp1xYk0oYGFTs37OyAJXv QICJHMtTjekfn1GJS2MO7lqzDcDqJbSyvXI5NNwRJFCfYZJQnEOnb32JkXg2qIZkWDRV e7aMqf1cfvkOdjZXa5/tkxefOH2O258Y6nmXPzB3zzyoySPxePLJy/TNVZj6bJ7zGJJs CVJ8WB7qqZlt2Pv+Om5YknF+z0sX6aPoPP63lsuxp/joHQqtApOQYPn95CWL8VJL8EFd 4RiFq8QATttSJdZo6jYUpZ836T0i+ylQYYHHIe46KxUE7LCaouTB214fMvs1+vDfUu8J PqlQ== 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=ambNEG36ec95w5RxO1/M+C+kDWbA2/2/OyQfYwkMGdw=; b=alWZEnuUJYlpJvH3B2BXL3Y53LbANz0DY+ChknqPda+Rse/HEIrUl2ubmUfz/Ubvkl N8GcQYBMMHAopOM/WzMW8tRtcVmW3hfQeKeWtC+zumaFzMyhXmNx2vsRJ3uiX0NKiS5L mouCmxt60Qlr3TH5q/C09CUkl4AQXqxjs5JRiVoFbQZunBDgr1+IChVaKTpEjej5PSoM VaCiV07KKOWlKvoPOHvOkVe1yWpF31mePTf2RPiWFJfO3a9Upm3e+P8oCeRk3ciHCA0m mlhGxIvbC6V40bckEaQ5K5d2jSfv2h3U8Z5b+BYtPwBFo6TS7sIdMliEnLrFCp02cers PW6Q== 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 26si2593088pja.6.2019.08.23.07.57.42; Fri, 23 Aug 2019 07:57:57 -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 S2394279AbfHVXPW (ORCPT + 99 others); Thu, 22 Aug 2019 19:15:22 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:50390 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394267AbfHVXPV (ORCPT ); Thu, 22 Aug 2019 19:15:21 -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 3A1D11539AF1B; Thu, 22 Aug 2019 16:15:21 -0700 (PDT) Date: Thu, 22 Aug 2019 16:15:20 -0700 (PDT) Message-Id: <20190822.161520.1087789793326068678.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]); Thu, 22 Aug 2019 16:15:21 -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 Andrew, Heiner, et al. where are we with this patch?