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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D99B7C433E0 for ; Sat, 23 Jan 2021 01:33:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A60FE23B53 for ; Sat, 23 Jan 2021 01:33:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726304AbhAWBde (ORCPT ); Fri, 22 Jan 2021 20:33:34 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:55582 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725881AbhAWBdc (ORCPT ); Fri, 22 Jan 2021 20:33:32 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l37n4-002B2R-3T; Sat, 23 Jan 2021 02:32:38 +0100 Date: Sat, 23 Jan 2021 02:32:38 +0100 From: Andrew Lunn To: Sergej Bauer Cc: Florian Fainelli , netdev@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Bryan Whitehead , UNGLinuxDriver@microchip.com, Simon Horman , Mark Einon , Madalin Bucur , Arnd Bergmann , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] lan743x: add virtual PHY for PHY-less devices Message-ID: References: <20210122214247.6536-1-sbauer@blackbox.su> <3174210.ndmClRx9B8@metabook> <5306ffe6-112c-83c9-826a-9bacd661691b@gmail.com> <4496952.bab7Homqhv@metabook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4496952.bab7Homqhv@metabook> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > it migth be helpful for developers work on userspace networking tools with > PHY-less lan743x (the interface even could not be brought up) > of course, there nothing much to do without TP port but the difference is > representative. > > sbauer@metamini ~$ sudo ethtool eth7 > Settings for eth7: > Cannot get device settings: No such device > Supports Wake-on: pumbag > Wake-on: d > Current message level: 0x00000137 (311) > drv probe link ifdown ifup tx_queued > Link detected: no > sbauer@metamini ~$ sudo ifup eth7 > sbauer@metamini ~$ sudo ethtool eth7 > Settings for eth7: > Supported ports: [ MII ] > Supported link modes: 10baseT/Full > 100baseT/Full > 1000baseT/Full > Supported pause frame use: Symmetric Receive-only > Supports auto-negotiation: Yes > Supported FEC modes: Not reported > Advertised link modes: 10baseT/Full > 100baseT/Full > 1000baseT/Full > Advertised pause frame use: Symmetric Receive-only > Advertised auto-negotiation: Yes > Advertised FEC modes: Not reported > Speed: 1000Mb/s > Duplex: Full > Port: MII > PHYAD: 0 > Transceiver: internal > Auto-negotiation: on > Supports Wake-on: pumbag > Wake-on: d > Current message level: 0x00000137 (311) > drv probe link ifdown ifup tx_queued > Link detected: yes > sbauer@metamini ~$ sudo mii-tool -vv eth7 > Using SIOCGMIIPHY=0x8947 > eth7: negotiated 1000baseT-FD, link ok > registers for MII PHY 0: > 5140 512d 7431 0011 4140 4140 000d 0000 > 0000 0200 7800 0000 0000 0000 0000 2000 > 0000 0000 0000 0000 0000 0000 0000 0000 > 0000 0000 0000 0000 0000 0000 0000 0000 > product info: vendor 1d:0c:40, model 1 rev 1 > basic mode: loopback, autonegotiation enabled > basic status: autonegotiation complete, link ok > capabilities: 1000baseT-FD 100baseTx-FD 10baseT-FD > advertising: 1000baseT-FD 100baseTx-FD 10baseT-FD > link partner: 1000baseT-FD 100baseTx-FD 10baseT-FD You have not shown anything i cannot do with the ethernet interfaces i have in my laptop. And since ethtool is pretty standardized, what lan743x offers should be pretty much the same as any 1G Ethernet MAC using most 1G PHYs. Andrew