Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4747271rdb; Fri, 15 Sep 2023 11:00:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7X3SYxmNa0xlKpF/UWFb5vD2+kL0jKweKGsm7DnMRdND/2T05mjJ0/pE5XCMolA9ltGsz X-Received: by 2002:a05:6a20:2594:b0:14c:c393:6af with SMTP id k20-20020a056a20259400b0014cc39306afmr2459574pzd.0.1694800857942; Fri, 15 Sep 2023 11:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694800857; cv=none; d=google.com; s=arc-20160816; b=AAMecmKWOjR1kB0MKSIL2x4euASkzSQ1nc5GWCBgR6x79roaiarxk5fMEbzxqWckMc VVbVVJa6mqewsgMK4LJHxGl8hrW3LfpAFaNyAiKrADaepk/XLUFVdz2UxdHg1MieJKE+ pOy8oDClWWyRIWHZKe3h2eW3VfItEUO0cF1DhZmg3oKy49jEMk4BDxHTaFVIn45cIK5Q 6AVFsECpLV0xHX/EhQS7CESxrQHicKD/gb0vOsNi+OZRKUYXiRBUpOlNT8AIOQ/u82rr +7bzQGSWnP+OiVNnkNR2FN8KkL7OyPbizNQ21ynyIGP/SCad1aI1/t8FgXzVgaMnxdNv WSFQ== 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:references :mail-followup-to:message-id:subject:cc:to:from:dkim-signature:date; bh=Ux5xZRDiOjiMz+hImc9jtfpq/h9ISkG9PxE6ObbWyIw=; fh=F6tDSjw0Ri5xlbMVaoBMwxQQvkNAoLzYymUxfQFct6M=; b=kSjFOfvXcNXhOA064Eyc0P1PwNJybBLJeFXQQRvDD7KMdyAsnbbx/f3TX4NZMqAnSp /HKEDI4uo1OAFEYudLQ7ZfhShU4bzfI65A4k0DetUPy0xAOM56v5MjPy54kxnwoSHyo/ 9B8nRqblPa8JLlX/bKnSltYVKKuNoUIVb+itHcXJHiD5A2/wwsXza8qVkNcj3h0bBoP7 N4iNfEgv6W/jMg0JzLvHMKGv5yruxsaktYaSlYiQyJVovnRpp8Xx8XmcL6c7zCHAqBEI qLscRWVuj48pD3te93G4QzF8Qfw07r7ExnZUIaoaATCi06vfumPkY83NKFRA0vuuCUXr Bl2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@thorsis.com header.s=default header.b=IpNjFulO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=thorsis.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o25-20020a635a19000000b0056da0ae25d0si3523512pgb.499.2023.09.15.11.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 11:00:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@thorsis.com header.s=default header.b=IpNjFulO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=thorsis.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C507880CFD12; Fri, 15 Sep 2023 07:05:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235522AbjIOOFa (ORCPT + 99 others); Fri, 15 Sep 2023 10:05:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235563AbjIOOF2 (ORCPT ); Fri, 15 Sep 2023 10:05:28 -0400 X-Greylist: delayed 450 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 15 Sep 2023 07:05:20 PDT Received: from mail.thorsis.com (mail.thorsis.com [92.198.35.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C12052724; Fri, 15 Sep 2023 07:05:20 -0700 (PDT) Date: Fri, 15 Sep 2023 15:56:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1694786268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=Ux5xZRDiOjiMz+hImc9jtfpq/h9ISkG9PxE6ObbWyIw=; b=IpNjFulOG7+2aIpsDgLTFB3n7bccNHyZIC2aJjCR7MV1ivDTikTmWi9LDt+4UocDr+xEEA QnxUg3mDCdux39o7o0g9NE5mcpoilHi4B2DvgzoVuQCBZWF2Jy3GBkfR53q7ZOQmKsl5JX sy9jsMSVZRMUQIONQyq2OvjrM6QO6jHQObK0nBMnwCfa5p/cAraDqW/nCnfJ14NgpAep9O J8iOP/8fMyn+/Ml1zS4Ldom/Fh9a7UGyhkMzxyOKc56hKB+MOa5mS2/JPknDsFL1AJ0OJT 83IhqCAeZYREp5MfOj74yVaM8WxUm1kaerde9Cs988ac7qUdnKt7aPDwXiH+2w== From: Alexander Dahl To: Parthiban Veerasooran Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, steen.hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, andrew@lunn.ch, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, horatiu.vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com, Alexandru Tachici Subject: Re: [RFC PATCH net-next 0/6] Add support for OPEN Alliance 10BASE-T1x MACPHY Serial Interface Message-ID: <20230915-wizard-junction-b58f2aad64c5@ifak-system.com> Mail-Followup-To: Parthiban Veerasooran , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, steen.hegelund@microchip.com, rdunlap@infradead.org, horms@kernel.org, casper.casan@gmail.com, andrew@lunn.ch, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, horatiu.vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com, Alexandru Tachici References: <20230908142919.14849-1-Parthiban.Veerasooran@microchip.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230908142919.14849-1-Parthiban.Veerasooran@microchip.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 15 Sep 2023 07:05:31 -0700 (PDT) Hello, this is interesting, by chance I just looked at a chip claiming similar features today, which already has a driver in kernel: Analog Devices ADIN1110. Am Fri, Sep 08, 2023 at 07:59:13PM +0530 schrieb Parthiban Veerasooran: > This patch series contain the below updates, > - Adds support for OPEN Alliance 10BASE-T1x MACPHY Serial Interface in the > net/ethernet/oa_tc6.c. So this implements the "10BASE-T1x MAC-PHY Serial Interface Specification" which is Ethernet over SPI if I understand correctly? The above mentioned chip claims do use the same interface and the same standard. How does its driver work then? Do you add code for a thing already present in the kernel or does the other driver do something completely different and I just misunderstood? Can the drivers for ADIN1110 and for LAN865X share code because they use the same specified interface? The patch set does not look like it? (Added the other driver author to Cc.) Greets Alex > - Adds driver support for Microchip LAN8650/1 Rev.B0 10BASE-T1S MACPHY > Ethernet driver in the net/ethernet/microchip/lan865x.c. > > Parthiban Veerasooran (6): > net: ethernet: implement OPEN Alliance control transaction interface > net: ethernet: add mac-phy interrupt support with reset complete > handling > net: ethernet: implement OA TC6 configuration function > net: ethernet: implement data transaction interface > microchip: lan865x: add driver support for Microchip's LAN865X MACPHY > microchip: lan865x: add device-tree support for Microchip's LAN865X > MACPHY > > .../bindings/net/microchip,lan865x.yaml | 54 ++ > Documentation/networking/oa-tc6-framework.rst | 231 +++++ > MAINTAINERS | 15 + > drivers/net/ethernet/microchip/Kconfig | 10 + > drivers/net/ethernet/microchip/Makefile | 3 + > drivers/net/ethernet/microchip/lan865x.c | 589 +++++++++++++ > drivers/net/ethernet/oa_tc6.c | 807 ++++++++++++++++++ > include/linux/oa_tc6.h | 130 +++ > 8 files changed, 1839 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/microchip,lan865x.yaml > create mode 100644 Documentation/networking/oa-tc6-framework.rst > create mode 100644 drivers/net/ethernet/microchip/lan865x.c > create mode 100644 drivers/net/ethernet/oa_tc6.c > create mode 100644 include/linux/oa_tc6.h > > -- > 2.34.1 > >