Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4874922rwb; Sun, 4 Dec 2022 09:41:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf46bDWwiN2luO0xbsiPNjQ5xWVVy/f8sfnjulscyNlpAv9nQgoy4npsO35f2aT0TXZNnPy0 X-Received: by 2002:a17:902:7296:b0:189:a9d7:7880 with SMTP id d22-20020a170902729600b00189a9d77880mr21791303pll.24.1670175686802; Sun, 04 Dec 2022 09:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670175686; cv=none; d=google.com; s=arc-20160816; b=aG9OKhikGtDnIJfcsP13RnCM0tpPsR1kenP1AKkqNAyQsfUwP+f+YpRPaKPpsr8z50 PSMosJ017jDsT+hb7Xu6L6kCrXZ25y9cSiGg1DZe5FMO0rbPENZwpn2rdAhLV/DSRq7A AHMT9xhE8TWFGCz0GiCLw2oF8QbglQhcIwk+Km4g8iIW4kce7HvtQjxY6bDYilwdCmG0 PFqUtorzX739FWUjlow1HCeOMxmP4QS+e2QjPaayi4nOT8yvPz8jIMXSxz2uLhdqqrO0 QuyAN3MrqRYBQGYro5KPWiTtCXLjiKekZb2UDLsNdc6XxshmauX7V/HC3AbCGdpJ981t YAgw== 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=MvoNu+9faBq3vPebtwFdjPGYYsL9BPsqHiP4qhDEpPg=; b=E0O4E/KaOndTMhxR23Bw2pVh1AwZzPzPUNAJuxcJKnFURi5Kojx45PlnTZRPCFQOA/ Ih3HJC1vW/nZdFmESVMZqmTnM0noE28VQ6I+j3hh5Qv7lXaiRT6Z1MSOqepTjNCIuuxY lnqfGeX4QUHEi6TDe//ghDVHLPD1mxReLil9uvB/llrAqezKd/0LIXk3ADZGlvX94iiH CMT0APl5l+u24fr3BslMxvg5cPg78JaLi650WC69Q0DvBNvjfNhWVJ9M7BrM3jALn3zS vTNKelzxO+OOeOACEbSwofaItDAmKf0TNyLy4MaPVRzxWk7XIRlh8/8RN9tjdtgeDr31 C1iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Pvudnvh5; 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=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a630f02000000b004782dc93af4si12232934pgl.307.2022.12.04.09.41.16; Sun, 04 Dec 2022 09:41:26 -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=@lunn.ch header.s=20171124 header.b=Pvudnvh5; 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=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230246AbiLDRZN (ORCPT + 82 others); Sun, 4 Dec 2022 12:25:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbiLDRZL (ORCPT ); Sun, 4 Dec 2022 12:25:11 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB6110FC4; Sun, 4 Dec 2022 09:24:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=MvoNu+9faBq3vPebtwFdjPGYYsL9BPsqHiP4qhDEpPg=; b=Pvudnvh58fnczY7xhx77dxo/Gd 3oBgHycnCZWP3Q7HKDXZciTkj5dMSyxlIyJ4iLLJveHNMlv6tOf+WODyp7uwfFd5QTlAmTzQVlOX5 yqSumFZUZPDgaFPQiekCSQ8BMm9QS4A/bxUbJqcdfOWaicFg3f0hnCKpZoZEzekgonXI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p1siT-004KeJ-Te; Sun, 04 Dec 2022 18:23:49 +0100 Date: Sun, 4 Dec 2022 18:23:49 +0100 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Piergiorgio Beruto , 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,SPF_HELO_PASS,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 > > + > > + // bring up the link (link_ctrl is mapped to BMCR_ANENABLE) > > + // clear also ISOLATE mode and Collision Test > > + return phy_write(phydev, MII_BMCR, BMCR_ANENABLE); > > You always use AN even when ethtool turns off AN? If AN is mandatory, > it seems there should be some way that phylib can force that to be > the case. Hi Russell The comment is trying to explain that the bit BMCR_ANENABLE does not actually mean Enable Autoneg. Since AN is not supported by T1S PHYs, and the standard, some vendors have repurposed this bit. Maybe we need BMCR_T1S_LINK_CTRL, local to this driver. Andrew