Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp839849pxf; Thu, 18 Mar 2021 12:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmSVF5DtxDY4xVKSp2E7ozHy63WDkGyykzxZSfCae2UQh1l40mE/UQh0mqliXLDkgKu5zB X-Received: by 2002:a17:906:9386:: with SMTP id l6mr215999ejx.455.1616097038502; Thu, 18 Mar 2021 12:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616097038; cv=none; d=google.com; s=arc-20160816; b=rvv68JWYP7n4JL38ALndkJamrYAPxCR3XIfuInd/eW7vd1M+UNjsxsAn06GQaBT/DN JXYuGblYaln5tKDXWX7W4VtU5QA6H118VsVSOvjyu7zaPzZPO/bQTol0DPgXnmuzgCrJ cykG3BeDOcjLX2V5RWAS3EU87jrAOR9ipioUaNpWZ/lg6cEE6OSAkhqfDtueapOTWSoc l5ClZl8wu1uI/FkNQWmlP1n4dpHZEPI/lDHt3oWrDqnVplrOox9m/3tidH/cpLN1Q/rY GrNjE/1ZWLTv2yhJy8fxOb4xnSkeUJopoatnVMwFezxD2+hl1HqWnOuC62Ks9aE7oBjy 3qvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=kN8bZjd6MucBwy0bM3Jw4atHdJPuaGWV/aoke/M32Sg=; b=hA42KbRkccXawLHntR7u+342bNTzNyEy3XVruieP/CdE4SCRh27fWb4Wamvnxrc2xf IiOrsWH15Au6fpOYJYctWFdX5BZzSyvkxy/dsCs+d6HBPGzTFmuOj/xJRbRWDVrvzvgM 92YO8nvYBBN6dU0EN51pR7plKBE4DKvJkA56FSHJnCO9uYZ8vjshH8iXig9ob91z00tA zDPUVmi/jaYIkAn5aJ0S0rFjjkuJLd3Fg3mHSVjbRA4m4O8eMB+5DgKJ84fKIpatrbpM b7lp46XxSdb+6kS9vaFZVSbyI7gDisZIZ1k2p2r2ClwqGiQxal+D+dRhuoJa/X2w1yJf RMUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=TgeZAwWc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si2419063edr.409.2021.03.18.12.50.15; Thu, 18 Mar 2021 12:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=TgeZAwWc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232699AbhCRTrm (ORCPT + 99 others); Thu, 18 Mar 2021 15:47:42 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:56973 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230220AbhCRTrX (ORCPT ); Thu, 18 Mar 2021 15:47:23 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 00C0822205; Thu, 18 Mar 2021 20:47:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1616096842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kN8bZjd6MucBwy0bM3Jw4atHdJPuaGWV/aoke/M32Sg=; b=TgeZAwWc6memHmA1xkgNRFkRTNYd56fxGCqKDiW5Dp/tEM8TUW0Ua9eanj0bWjcuI7X/Tg VhzENmExgKtTLQ7cDSw+m8+XUqNXP1yJq3LHYjOHkBcY/5UnZqP/RvhzlsLHEm7bMo8+HS 4w51Y2FLu6fRbv77M5pIKMHlNbRz6uY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 18 Mar 2021 20:47:21 +0100 From: Michael Walle To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Vladimir Oltean Subject: Re: [PATCH v2 net-next] net: phy: at803x: remove at803x_aneg_done() In-Reply-To: <20210318194431.14811-1-michael@walle.cc> References: <20210318194431.14811-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.11 Message-ID: X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-03-18 20:44, schrieb Michael Walle: > Here is what Vladimir says about it: > > at803x_aneg_done() keeps the aneg reporting as "not done" even when > the copper-side link was reported as up, but the in-band autoneg has > not finished. > > That was the _intended_ behavior when that code was introduced, and > Heiner have said about it [1]: > > | That's not nice from the PHY: > | It signals "link up", and if the system asks the PHY for link > details, > | then it sheepishly says "well, link is *almost* up". > > If the specification of phy_aneg_done behavior does not include > in-band autoneg (and it doesn't), then this piece of code does not > belong here. > > The fact that we can no longer trigger this code from phylib is yet > another reason why it fails at its intended (and wrong) purpose and > should be removed. > > Removing the SGMII link check, would just keep the call to > genphy_aneg_done(), which is also the fallback. Thus we can just remove > at803x_aneg_done() altogether. > > [1] > https://lore.kernel.org/netdev/fdf0074a-2572-5914-6f3e-77202cbf96de@gmail.com/ > > Suggested-by: Vladimir Oltean > Signed-off-by: Michael Walle > --- Sorry forgot the version history: Changes since v1: - more detailed commit message -michael