Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp630644pxf; Thu, 18 Mar 2021 08:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKGMeF4Anwc+GPJ2WTXuObwb6XdWV9pzeiaGvIAhtWv3eLSwCDBpseEyqdccFfAj4WA+hj X-Received: by 2002:a05:6402:c8:: with SMTP id i8mr4326829edu.57.1616080726381; Thu, 18 Mar 2021 08:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616080726; cv=none; d=google.com; s=arc-20160816; b=yM6WpTzu2Dj+0fHavk7GoRI6/mmrzVqh70Uhec5VToxgijzTiimVinbxcO0UVGSm/B Io2/u4UDWTaXf/d/F6GOpXMKD7M8fItRqH7io7/ZHG/R7de6QkpPEAyFFGkaYdDRv16Y DpBZNmU1A5hu2+CH3NlA6zAUVCBwxKPUxJLouMIIojFJ/+c/B84nAdRgNyz2C/6rVKov WjUH2k/+it29iYo2cYkua484xOei53c90IpNS9MvjGhrigciglWJXwuEujPgzkPy1sCE 0AFLp+RMGRz47ay8Q7XFtiA/hUstcxDPMOk8cpfIcFzRQqGfubMyIsJsgij2lcp7CC/G 530w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6I4fK3KIh7nvVeDlxIvnlzTbH7aTWaFZ8rA7KEHulZM=; b=b3PnR76Re5XA3kEvZXi1jJNYIjQTOv1NZovatfERv7g5bXeAO6f9T69VuWToQqLQtc IXYP87tQPp8QwqugvSFgo8+41l21I11qcv37wQHfBRubnJ2WVeHr90NmN5vs6pCqMrCu rgD+z2X7757cfCDnCshC/X7n4OQbP9welBZuSXxOK8hxNzb5N1G9JkMEwZp8hFqHMgi4 30kHNjskRiZQWUbPtzFFsnbnT6+v0mSOX7XwD9iE3bQGhG1NSMLjm8/2dNLw/xVGBQ/v xURj/6bjJAMb3b4JLHmuUEq/0EGvsnFmlXjJky2sL6jVVbzrQycpLf57Jvg4hZ/CB2Eo lhIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Hm/hDDK3"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si1975627ejd.179.2021.03.18.08.18.23; Thu, 18 Mar 2021 08:18:46 -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=@gmail.com header.s=20161025 header.b="Hm/hDDK3"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231785AbhCRPR1 (ORCPT + 99 others); Thu, 18 Mar 2021 11:17:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231790AbhCRPRQ (ORCPT ); Thu, 18 Mar 2021 11:17:16 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A009CC06174A; Thu, 18 Mar 2021 08:17:15 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id b7so4555506ejv.1; Thu, 18 Mar 2021 08:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=6I4fK3KIh7nvVeDlxIvnlzTbH7aTWaFZ8rA7KEHulZM=; b=Hm/hDDK3WOdEnJMWhOW9dFY7wxB13DGJ31r5esJ259MdDXGuOZt793vesPgJj4JYkl YaOuXj7qes7nYKz6miLhz9xEEJ0US4y7gYiPSKp9Nv2lm3qRzmee3XpZFhOAndl7A5fF EtOMyIZaA/K+hC1K8QRPfcazt2qrkNNw64uJD2QAg8sz04J7tyHuxWqyjfFXAp728iay egMQig/Hy1iq8vR9zJ7qNuYCMjrfGFHcbhitCjswfw6d5IKX3nc8eqc+y7Xd4ESMljiK 6idzOxUxirdUB6DyFeNxE/EvQQwuYFFAwqio4pO95dbCotGG1yHF+yHZI44IC6UNsW/m 1hzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6I4fK3KIh7nvVeDlxIvnlzTbH7aTWaFZ8rA7KEHulZM=; b=Wy2cC2oQoyvSx798SqQiACgpcfVSBZM/2z0o4rvO7BUrccirtc12JbGQzJe0JTW+W0 XZ/BISyAzC35BiP0dEQ3zS7mg13kgCDAmIeNy0PKTN/mKeyiEbHtVObm8F6hKWPp3xAn xYqFKgDRnUsmNq6z5L8+MZWSoVHBy2ZdrQUbEBtRnCdjUIsthZJWMbZdqx0S9QSfqe6u yg9XMTgV87UmWrR2+t62Cau4lkhxyLTA6JSWvs4JS4+ILFwUkIEDawR9RzXvA2maEnpg Ytpgey0cVIi+YY5ozPJbMdDP6ivkG1sC84Zs6oM5NJCfml3Cu8bRQyT9Fbsg6A6Vd7o6 8PJg== X-Gm-Message-State: AOAM530/LS0j2uwx9TiggsP1aHZ8OfM3/7JzXwFu4ZLhn6h2o1EP20uv b7tZ9wYx68yc9mhvhyjUR3I= X-Received: by 2002:a17:906:c051:: with SMTP id bm17mr40738915ejb.21.1616080634298; Thu, 18 Mar 2021 08:17:14 -0700 (PDT) Received: from skbuf (5-12-16-165.residential.rdsnet.ro. [5.12.16.165]) by smtp.gmail.com with ESMTPSA id l18sm2095560ejk.86.2021.03.18.08.17.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 08:17:13 -0700 (PDT) Date: Thu, 18 Mar 2021 17:17:12 +0200 From: Vladimir Oltean To: Heiner Kallweit Cc: Michael Walle , 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() Message-ID: <20210318151712.7hmdaufxylyl33em@skbuf> References: <20210318142356.30702-1-michael@walle.cc> <411c3508-978e-4562-f1e9-33ca7e98a752@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <411c3508-978e-4562-f1e9-33ca7e98a752@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.