Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp704742pxf; Thu, 18 Mar 2021 09:40:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbcBYNjcBINY3tsksWc+u9DtuvrBcxLkoZqLG/VICj0FT9XQrYjWseRSzVXpeYDmA/odjP X-Received: by 2002:a05:6402:1545:: with SMTP id p5mr4703011edx.155.1616085616562; Thu, 18 Mar 2021 09:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616085616; cv=none; d=google.com; s=arc-20160816; b=0FqEfv12Meed9YXbEIpuC1ilCIubxZD2isyCWzywuBvW7Zp58XZaRK6mOTVUPyHqpL PgsDHI75ocd1Uk4Ijlv7w8Nxr2609AKVQPeCGnXPuj9iOrQg3p4xPTxLu5pU9qGNFtKX 0FSQKF7PIL1ZaXPq6kAh0xSXHDj1sWs1zxEpX48uN4MaMEDt1PayR3whvgd5D0xdixvb gTl6Ku14hRohPU4H3P+HhoBRlWodGa3yIOdMZ30Kq7k9kYPNLUoWcG0X7vg69gTvTEVN tMmGva0q1Dv0TDOB7HbZ7gxZZp2lZFh8qoFF0g3++E5I4yPRQvCNBR+9herDakD3AqUm 34Zg== 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=MBkORc1i1EFSwgMZ1o0CjqSrDw+cjwMnNE9mNNijh+4=; b=bronBRZ3YNqYJeLNB/PklmaPQdeOm1Y13ifBimanN5xjpE59Cb3Z7QtQMZB8RwlF6q sVT88KiKxv/98A1I29glbLvMGyeVuZQxYKGYmTA5Emsc+SB5BeDNFOvrB+/v1MJRNp95 fkvdh/APxqqUr3hyMqCr+GXSPIpzHjdHTJEBYZHWTPzM2F6CiTyeDUpsd28hH0N8kvO0 QUyB5Zh+kuYzNrZoYWdWagG36zJlqg1sP11SFmaNFZdLIVv1cGwIgM6Z+uyef30e0SfW K6ujaOchfZ5MDFviz6b+xSTT3HWLO2f67pssNg0zUoL45Uy/jDf1ivZNXIxMRcVSLhau HbtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=rKY53G0+; 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 i23si2044137ejj.317.2021.03.18.09.39.53; Thu, 18 Mar 2021 09:40:16 -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=rKY53G0+; 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 S232122AbhCRQip (ORCPT + 99 others); Thu, 18 Mar 2021 12:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232120AbhCRQiQ (ORCPT ); Thu, 18 Mar 2021 12:38:16 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C2B4C06174A; Thu, 18 Mar 2021 09:38:16 -0700 (PDT) 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 2B7FB22205; Thu, 18 Mar 2021 17:38:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1616085494; 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=MBkORc1i1EFSwgMZ1o0CjqSrDw+cjwMnNE9mNNijh+4=; b=rKY53G0+6UHdq42l4sWeAQ4Z7hy1mhSs3fUxYiqUKzPrZZrxOojNKpJjpy229u3RugTXX7 Y4NuZik5fMGFK7fjRZPd0b7Hxzl9r8dQiCdMwmhTgZXKKc84H16azNB0L6nqHvfTEgQ+Nt T7fwhYd1LDgdLwzjWsk+IWK3nphLvIc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 18 Mar 2021 17:38:13 +0100 From: Michael Walle To: Heiner Kallweit Cc: Vladimir Oltean , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn , Russell King , "David S . Miller" , Jakub Kicinski Subject: Re: [PATCH net-next] net: phy: at803x: remove at803x_aneg_done() In-Reply-To: References: <20210318142356.30702-1-michael@walle.cc> <411c3508-978e-4562-f1e9-33ca7e98a752@gmail.com> <20210318151712.7hmdaufxylyl33em@skbuf> 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 17:21, schrieb Heiner Kallweit: > On 18.03.2021 16:17, Vladimir Oltean wrote: >> On Thu, Mar 18, 2021 at 03:54:00PM +0100, Heiner Kallweit wrote: >>> On 18.03.2021 15:23, Michael Walle wrote: >>>> at803x_aneg_done() is pretty much dead code since the patch series >>>> "net: phy: improve and simplify phylib state machine" [1]. Remove >>>> it. >>>> >>> >>> Well, it's not dead, it's resting .. There are few places where >>> phy_aneg_done() is used. So you would need to explain: >>> - why these users can't be used with this PHY driver >>> - or why the aneg_done callback isn't needed here and the >>> genphy_aneg_done() fallback is sufficient >> >> The piece of code that Michael is removing 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 >> you >> have said about it: >> https://www.spinics.net/lists/stable/msg389193.html >> >> | 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. >> > I don't argue against the change, I just think that the current commit > description isn't sufficient. What you just said I would have expected > in the commit description. I'll come up with a better one, Vladimir, may I use parts of the text above? -michael