Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2139056pxb; Fri, 25 Mar 2022 11:47:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySGgnSFwjjOvOSEiN3RyLF/vv7tcWyMhdd3JEY1jcHHCIek3u8XyYf7KCgkufb05z6H3bd X-Received: by 2002:a17:903:3091:b0:153:9dcf:de71 with SMTP id u17-20020a170903309100b001539dcfde71mr13026932plc.7.1648234032673; Fri, 25 Mar 2022 11:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648234032; cv=none; d=google.com; s=arc-20160816; b=bBqK/DR7xv+vJiYoT2vqj+6KtEKA2xJlrJhx9+zMe/AvP+BTPL7JiOZ/nbH3QV+iAD N/sY0Ht6ZJUFDBy5xMlJDCtVucE7VveJPmD86JTb8uraklkkxO4BdhGqfNgcCEigCAeb bBe8zhETmFa/jseQ+/nioKw0LgZnjhH3bXYnRymy7ILHVs+bM8iBuOG+sdQZnf7Zgt8R 1Y4qY++WdtFeeg5b5jwLqky9AlUqtDO7s8dtK9/29iKJTbEPAtTLpWxemtMjHx96MkLd hMEOmXyq+WJVCTt7uXBHpprkGSeZcrZlMXP+48w8hO7KoS538NtSA600Tdr+yQvBL5v5 A2rA== 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=kxcZ3Ts1vMvwQxmsVPjGSMWCuWeLygWepKF7aZQMkHk=; b=XkPBC6eqmDIwBvaaqAQpBEYOFB9CFkJ2/XPNvZZNQG/0XY+flVtwC/enSRqY6QIL2D gSNof5qFYFVqzu+qL0yO39sFoe3srtSKjSbjNkCxOh5V0KpS3CBHbxmp8fWMC9nhkamF lFlEwvN1rAdOLsdBOl6e2eui5LrGTHZY3/EyMaI3BRjCeEHpm6MCtipQvkIgvuaYmYpC VSHY7kdoo1JQyB+B5gkfHTkLF6wRSE9PiPZvu2OZUq6LG1fanJTfo3KZsPWhXmSRA//m HfB3fCF+mmg8fUewUWg+r77N/XMywvuxRucIBqTRvEpAj5X/CM9ao6glNo5v4VCUHhrc HMtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VgM7ZiWY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t1-20020a654b81000000b003816043ee19si3047994pgq.14.2022.03.25.11.47.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:47:12 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VgM7ZiWY; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8DDE01C2D83; Fri, 25 Mar 2022 11:05:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352270AbiCXS5T (ORCPT + 99 others); Thu, 24 Mar 2022 14:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343982AbiCXS5Q (ORCPT ); Thu, 24 Mar 2022 14:57:16 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1974CB8212; Thu, 24 Mar 2022 11:55:43 -0700 (PDT) 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=kxcZ3Ts1vMvwQxmsVPjGSMWCuWeLygWepKF7aZQMkHk=; b=VgM7ZiWYzagzYCgF7dXOdhh1CH aIkc+G0jgqhGa3WXSNldiJKThj55WKpvpswddC1mjsCbIdda07uJ03UKnYxZsr9YeIO/DwoDvFcMZ x64FI1te8hz2yA8qvV5pPKQE6GTQ+YMe/VNdodvl5N7gJqxX8b6eqR4LZznNZO0P6+lM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nXScK-00CUdM-U2; Thu, 24 Mar 2022 19:55:28 +0100 Date: Thu, 24 Mar 2022 19:55:28 +0100 From: Andrew Lunn To: Michael Walle Cc: Heiner Kallweit , Russell King , Jakub Kicinski , Paolo Abeni , "David S . Miller" , Xu Liang , Alexandre Belloni , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC net-next 4/5] net: phy: introduce is_c45_over_c22 flag Message-ID: References: <20220323183419.2278676-1-michael@walle.cc> <20220323183419.2278676-5-michael@walle.cc> <8304fb3578ee38525a158af768691e75@walle.cc> <30012bd8256be3be9977bd15d1486c84@walle.cc> <0d4a2654acd2cc56f7b17981bf14474e@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d4a2654acd2cc56f7b17981bf14474e@walle.cc> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 > The > > only valid case i can think of is for a very oddball PHY which has C45 > > register space, but cannot actually do C45 transfers, and so C45 over > > C22 is the only option. > > And how would you know that the PHY has the needed registers in c22 > space? Or do we assume that every C45 PHY has these registers? I think it is a reasonable assumption at the moment. We have around 170 MDIO bus masters in Linux. All but one can do C22. There are around 15 which can do both C22 and C45, and only one that i know of which is C45 only. So anybody making a C45 transfer only PHY is making their device hard to sell. I suppose a PHY integrated with the MAC could by C45 only, and not support C22, but i've not seen such a device yet. My guess such a device would be an Ethernet switch, or a USB device, or maybe an automotive device with a T1 PHY. Andrew