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, URIBL_BLOCKED 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 E0C6FC43465 for ; Thu, 17 Sep 2020 22:15:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 91A49206D4 for ; Thu, 17 Sep 2020 22:15:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726129AbgIQWP4 (ORCPT ); Thu, 17 Sep 2020 18:15:56 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41586 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbgIQWPz (ORCPT ); Thu, 17 Sep 2020 18:15:55 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kJ2Bv-00F8uw-VY; Fri, 18 Sep 2020 00:15:47 +0200 Date: Fri, 18 Sep 2020 00:15:47 +0200 From: Andrew Lunn To: Sergej Bauer Cc: "David S. Miller" , Jakub Kicinski , Bryan Whitehead , Microchip Linux Driver Support , Mauro Carvalho Chehab , Rob Herring , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] add virtual PHY for PHY-less devices Message-ID: <20200917221547.GD3598897@lunn.ch> References: <20200917214030.646-1-sbauer@blackbox.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917214030.646-1-sbauer@blackbox.su> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Sep 18, 2020 at 12:40:10AM +0300, Sergej Bauer wrote: > From: sbauer@blackbox.su > > Here is a kernel related part of my work which was helps to develop brand > new PHY device. > > It is migth be helpful for developers work with PHY-less lan743x > (7431:0011 in my case). It's just a fake virtual PHY which can change speed of > network card processing as a loopback device. Baud rate can be tuned with > ethtool from command line or by means of SIOCSMIIREG ioctl. Duplex mode not > configurable and it's allways DUPLEX_FULL. Hi Sergej What is the advantage of this over using driver/net/phy/fixed_phy.c which also emulates a standard PHY? Andrew