Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4988889rwb; Sun, 4 Dec 2022 12:04:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wXkf1UM+j1BB94gPmRm9MqYvo74UPnxjbg+Bq9vISpxFEsbt2Nc+QsjQcXHuScTFYByY6 X-Received: by 2002:a63:5042:0:b0:46f:e658:a8ff with SMTP id q2-20020a635042000000b0046fe658a8ffmr57184262pgl.493.1670184287845; Sun, 04 Dec 2022 12:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670184287; cv=none; d=google.com; s=arc-20160816; b=0tRTpzDJvoztIo0gzRPJCQu3x7EKEhc8e+6GDK6SQTvsEpcagyzBx+uMe+mDN1Msjj Q2ra8u1eIegH4lnPl9zbUUz5TTGwWRfHBhXh6BVs6ygYJijV+KX7TLNoC39HPs87SDOZ QbUbOxk99nxdVLMJRl3cgug3PzsyvV9o0TOMihOUm6EBcF30fkOpz6gIA1+LFKB+qtlF alrOeIyr6oAiNzCoeDCyBIvyKyQU3FQy+kyENCd7Q2pTjArXmHj5CRncehn24LwM0FJG Ytsm8cJ2+QDsMPrF6Au/EOR8F52bnZWYBxRgGJztBnsZ7BU8uhq261bqRoxnZ1x2UW+C GXCA== 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=gn5F6cGaMlevc3P+NWYHVafrK/+jYG7DO6PO569PTNQ=; b=dX0XY9Y8FuC0TXNqF28t4teZ69lKI+0eXD2xe2CTy3rEZw9vYXL2vF01lRhCHxrim8 3rz8nI0KDICg/bCQCnwfCz9c88zvRNy7k9CN/ku1cNa8EfZA1YivpHLrM1X4l+23ViBC z+xYK4sMt/sXRXBpvMXkpvgk9uwQ8+Q+b+ipfWZ1UVNnyXBG+J8Di+eEiBhKhRE1OoaP pQp4ia+oKh2HJgxlRzVyh6T1cnVdq5ukVf4lcAMSa1LXa+oU0jzOIu41xtmJ5OSMwH5q bqNw3yhI3kHfZNt49Smq28VzJSOYMaxEQpN7LF4oNAVWCQqA4HyDkhsoau9FQj8BEp4r OCxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Haqoljlk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z36-20020a631924000000b0046f4d395e6dsi12707686pgl.573.2022.12.04.12.04.36; Sun, 04 Dec 2022 12:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Haqoljlk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230177AbiLDTst (ORCPT + 83 others); Sun, 4 Dec 2022 14:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbiLDTsr (ORCPT ); Sun, 4 Dec 2022 14:48:47 -0500 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 B37DC11825; Sun, 4 Dec 2022 11:48:35 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id fc4so16252532ejc.12; Sun, 04 Dec 2022 11:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gn5F6cGaMlevc3P+NWYHVafrK/+jYG7DO6PO569PTNQ=; b=Haqoljlk3Xt52rAEQuBNRyk5fWWF+Fr62JGGaCnEjtBAAIQRN6CpmqHUqN4hQ42eIw 5+3KkEVjY9WYJoXX5hTssho+uCGLm75sBbvqAGSX9/fbRM3pPKltPEWKBDM2TwLIJ/I0 wXHeyUStjcsuXhAJwF99NiJBlRBrJRbgdsYuol2c6FFR7iRoMRZLBXzbxFpQq9m0nK5z BPlN6A8guXTAX+ztClf1T8ClknQaWCemsg0p8RoHQQkhvDHc9y8hjy6AI7sL5TjlqUDP VDDwh0zZJJGrFeuyTLw5/KuyRI5HAfB6wvLmcuS5D+6nLS3UYDGqg3iMcO5kCAb5+0EF BRZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gn5F6cGaMlevc3P+NWYHVafrK/+jYG7DO6PO569PTNQ=; b=FmlLyT1AyVS9O1bN/H1Phs68A5ErcXjauTvMz6J4DNMeae2GRwY5PkrNRTuElxN7Wg YnJWsFy+uJdjNetmR888LiWg4Zevfc+mL2w7Oy/8G5DlHuUUcY1kO/q4mYMDiwq6Yp94 yiEDjx0ryWxsBhwILWH+780FCWvDlAzo2uS+U53bYK+yu2TCtxol3oqpP3C4NFMMpFjW C+N1MeYMW+4X415ODpZERjrxwKvBZVEcK49/cX5MqnPfQU7wbZyquwcQeUBIN1KUz63d hcMnX9zQBxhHXogkTIYaBy/wD8KfgrdozvvylsEVk0UnUi0YQkBqqOfpsavIvDdGGDvK Mr5g== X-Gm-Message-State: ANoB5plpJQJz+Z32zMXKPdCB3rXtwOiKSAViVPwXV0Ztgmja30KNqoeD zsJ6akML3S/iw5Bf9hBp6UaYsgcfAiDU7qQL X-Received: by 2002:a17:906:a155:b0:7b5:576e:b7d6 with SMTP id bu21-20020a170906a15500b007b5576eb7d6mr58705512ejb.127.1670183314297; Sun, 04 Dec 2022 11:48:34 -0800 (PST) Received: from gvm01 (net-2-45-26-236.cust.vodafonedsl.it. [2.45.26.236]) by smtp.gmail.com with ESMTPSA id c5-20020a1709060fc500b007ae10525550sm5461458ejk.47.2022.12.04.11.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 11:48:33 -0800 (PST) Date: Sun, 4 Dec 2022 20:48:42 +0100 From: Piergiorgio Beruto To: Andrew Lunn Cc: "Russell King (Oracle)" , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH net-next 3/4] drivers/net/phy: Add driver for the onsemi NCN26000 10BASE-T1S PHY Message-ID: References: <834be48779804c338f00f03002f31658d942546b.1670119328.git.piergiorgio.beruto@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 04, 2022 at 07:58:07PM +0100, Andrew Lunn wrote: > > > > +static int ncn26000_enable(struct phy_device *phydev) > > > > +{ > > > > > > This is actually the config_aneg() implementation, it should be named > > > as such. > > I can certainly rename it, however I did this for a reason. The NCN26000 > > only supports P2MP mode. Therefore, it does not support AN (this is > > clearly indicated in the IEEE specifications as well). > > > > However, it is my understanding that the config_aneg() callback is > > invoked also for PHYs that do not support AN, and this is actually the > > only way to set a link_control bit to have the PHY enable the PMA/PCS > > functions. So I thought to call this function "enable" to make it clear > > we're not really implementing autoneg, but link_control. > > Anybody familiar with PHY drivers knows the name is not ideal, but > when they see config_aneg() they have a good idea what it does without > having to look at the code. All PHY drivers should have the same basic > structure, naming etc, just to make knowledge transfer between drivers > easy, maintenance easy, etc. Fair enough, I'll change the name in the next patchset version