From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80D90C4321E for ; Sun, 4 Dec 2022 17:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbiLDRZN (ORCPT ); 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: 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