Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp610855rwl; Thu, 5 Jan 2023 01:55:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXtaQ5O7v+wi+ccZW8cyFZVSs+6Y7/qZgZOGk3g6Lo9PauhJ231VXm2XDJiZjIKe6pO1cgea X-Received: by 2002:a62:aa12:0:b0:582:7ea5:c298 with SMTP id e18-20020a62aa12000000b005827ea5c298mr13108750pff.32.1672912541341; Thu, 05 Jan 2023 01:55:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672912541; cv=none; d=google.com; s=arc-20160816; b=MkMHpKu08AtGyg0+Jt0tuDVYZEt1mGSNqffR22H1a7schoJHeBjaE4zFrToxj3s1BH AlEkUkdK7Sz5As0Tsr/24hnIGpNB3FFkHYdYDJrDFyf2OorQpUhRxEpL+HZ6SNWOn7i1 qHd/238x+SxkIQZ5z4hZcxbAKdjxSUGwSiouh96Zu3tHz5cHZQDNvP/OwEWCb5B0q83w JIvMx3BEaLAZKZXnan5q6iF2/ARCEZOZecfkAkTA9MgIh1RiJd3JO0kMD6RIAEAQQnrG ffAHVtCDAY/iVXnq5NHOwbrAQneCga6fjUdVH8FP5f/d++xXAOSiP9zdGpuriJXO/DWW 7y0A== 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=cECC/uSVPt2OAwJwUc1SWvh1SlO12ndY//poec2NRhQ=; b=zZAmTc0Md2xy26VD63ZE1jsD42mUNKGd082XF0XmG4coCfi+cpZV2hLQXk/T+fdJRj eB/Cb6yoN656b4fdgj3ZBZUx/Ce02PPldnl+J9WyxRBsa9/adDMU+EbLPqguITRFLutU 8UV/H7NvS94XnnaUddxbNTftQsqEuV8EymUZsxuhm+F6fW+1nixbp2dt8mUHRULpdBr2 rMo2fsH9idcy2qVBOQe6RSb3D8np3gsKo6Gjuw6kFF40S3JpKD7yEGRaIdmqTeHxrcg9 PtcO0siFZsQ1GGdUc/4dwdC72w0Mk9E8yLE2CbTmsauE3KNdbDANHIixQ3ijpCERWlPU unRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uZ1klsaO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a056a000c8c00b00572dc2ed1f7si37963311pfv.191.2023.01.05.01.55.34; Thu, 05 Jan 2023 01:55:41 -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=@kernel.org header.s=k20201202 header.b=uZ1klsaO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231954AbjAEJHG (ORCPT + 55 others); Thu, 5 Jan 2023 04:07:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232131AbjAEJGS (ORCPT ); Thu, 5 Jan 2023 04:06:18 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BEC64C736; Thu, 5 Jan 2023 01:05:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 1426ECE19D2; Thu, 5 Jan 2023 09:05:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62384C433D2; Thu, 5 Jan 2023 09:05:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672909553; bh=baAOE4+yFIq/j4hki6KWlqPxYaH8DEklh/gqmV8KbDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uZ1klsaOLspBGhpGKcGUSpYyQKubmDeDTy59c8ONzNovpy3uEQHDlX8NdbOCfGWsg ezccQsk154UD2NLG/KiF1IY6Bb3y7gAe7XW877Gw6TjR2W0o0XID64kM0CwqGDaNe0 BWVzrEiZw6uPSboewO3nbt+dAoWk6Nx4MjWaCMckXVL/Oenv1e3bxy0SDxkNyNml30 QM/ffFR67IWIXGS6t4eqVnKEDsy0/XsORMkAYNn0C7n54oJqTLMyon74aJpAkQEazD VLN6DJ6ZlFWorloo4vHSvl4ZgRLgVnSwiDFfcjAxEJJiBSJJ/uvmhajLif5/nE/CXm PTQEHvfsOvfAA== Date: Thu, 5 Jan 2023 11:05:48 +0200 From: Leon Romanovsky To: Piergiorgio Beruto Cc: Andrew Lunn , Heiner Kallweit , Russell King , "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 5/5] drivers/net/phy: add driver for the onsemi NCN26000 10BASE-T1S PHY Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Jan 04, 2023 at 03:07:05PM +0100, Piergiorgio Beruto wrote: > This patch adds support for the onsemi NCN26000 10BASE-T1S industrial > Ethernet PHY. The driver supports Point-to-Multipoint operation without > auto-negotiation and with link control handling. The PHY also features > PLCA for improving performance in P2MP mode. > > Signed-off-by: Piergiorgio Beruto > --- > MAINTAINERS | 7 ++ > drivers/net/phy/Kconfig | 7 ++ > drivers/net/phy/Makefile | 1 + > drivers/net/phy/ncn26000.c | 171 +++++++++++++++++++++++++++++++++++++ > 4 files changed, 186 insertions(+) > create mode 100644 drivers/net/phy/ncn26000.c <...> > +static int ncn26000_config_aneg(struct phy_device *phydev) > +{ > + // Note: the NCN26000 supports only P2MP link mode. Therefore, AN is not > + // supported. However, this function is invoked by phylib to enable the > + // PHY, regardless of the AN support. Please use C-style comments for multi lines blocks. > + phydev->mdix_ctrl = ETH_TP_MDI_AUTO; > + phydev->mdix = ETH_TP_MDI; > + > + // bring up the link Thanks