Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3597920imw; Mon, 18 Jul 2022 10:57:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vwHFWWB5w7YsgDx5g1RbB8IAJEq+zX+bspfwSE1coTHdYt6OexiEBRvd+kqiHhGbiMIq6g X-Received: by 2002:a17:907:7ea6:b0:72b:4afb:e8b with SMTP id qb38-20020a1709077ea600b0072b4afb0e8bmr27146496ejc.205.1658167032527; Mon, 18 Jul 2022 10:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658167032; cv=none; d=google.com; s=arc-20160816; b=Fm95YuPXj8sFKEhmUbtGEqYbIvYim7S/DmbL04tkPg07W+N3bfNNONtxZ2ppSgAkeu 5YsJUxNys7DQT0C4AqTZTmiAV6uD2h/ZvlL/nycycgqnTHlowwlF5H8yRNwxKNoYWdIA 2lfv/2CtM7PUID9hF1EgAPurqU7cfGgiPqPwlBLXpdOU39G2HZnB4sRvbO3KHSQQCDvv Dvw/zywDZNK0DRDla2ov2LkgZjkImJvd+ycNlSUctbJMQNPIquV0cDyPwdLjzsQunOAs tnGcWlNalawfuA5qAjh7UYckMQX1JXhW4pz0Y6RhKzKmMHkRzA2GzrcGYjhqLdi0wNkD 1KNA== 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=xKnevU/94YSw3Ocux7u+8CQU8vdT2o5/n6VI6gzr4dI=; b=gnHAL42Wz0eVwqctx6uTnMa2ivh9k++mD3CQNJ6WYOhFye9hfjlDxCSn3qBtBwHJQo al0oDxPZ89ovRTlOQ/l53Ny4DcYbMd+sTaorUKiHcCOB6gOg7+mA8anSXh9oQxeR7/cY /qRekFQFx/hbVFOPHUaPi/RQfbUTNFyZycrtyUI9iGK/2D/NVO/FP2zCTzvDNjVTtoY3 CJMkAdnpYKe0ieMM4Ap/VWU8ud377sScubZMTlr96qEvO0t88gX8qai2sCw1dln4G2ei 3Bk+DPi1E/9+v7VlhdkkLwnfzngDrmmljHYEs9YJnmPt0J1r80L5YQ6BlEXBlEnyxRJB INIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AIxDr+4p; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020aa7d9c5000000b0043779a90504si9732196eds.606.2022.07.18.10.56.41; Mon, 18 Jul 2022 10:57:12 -0700 (PDT) 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=@lunn.ch header.s=20171124 header.b=AIxDr+4p; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235719AbiGRR31 (ORCPT + 99 others); Mon, 18 Jul 2022 13:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233477AbiGRR30 (ORCPT ); Mon, 18 Jul 2022 13:29:26 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B8106555; Mon, 18 Jul 2022 10:29:24 -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=xKnevU/94YSw3Ocux7u+8CQU8vdT2o5/n6VI6gzr4dI=; b=AIxDr+4psF5lfR3bm5dgm153bc c2SMjcvQ5ce1MzJy3TsI9xEe+GQ9O1hI75pjUmSUgcfTqIjguCuA7br09XH70MOsPO3hxlIXZxB7s yl6yr9mojJQfEfLdJotr9gz/ht0zIMqdBopCaAwGinS8v62iyNCegNw4cqKiUoRfbTTE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oDUYE-00AjbS-5Y; Mon, 18 Jul 2022 19:28:58 +0200 Date: Mon, 18 Jul 2022 19:28:58 +0200 From: Andrew Lunn To: Sean Anderson Cc: "Russell King (Oracle)" , "David S . Miller" , Jakub Kicinski , Madalin Bucur , netdev@vger.kernel.org, Paolo Abeni , Eric Dumazet , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandru Marginean , Heiner Kallweit , Vladimir Oltean Subject: Re: [PATCH net-next v3 08/47] net: phylink: Support differing link speeds and interface speeds Message-ID: References: <20220715215954.1449214-1-sean.anderson@seco.com> <20220715215954.1449214-9-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 > > I am rather worried that we have drivers using ->speed today in their > > mac_config and we're redefining what that means in this patch. > > Well, kind of. Previously, interface speed was defined to be link speed, > and both were just "speed". The MAC driver doesn't really care what the > link speed is if there is a phy, just how fast the phy interface mode > speed is. I'm not sure that is true. At least for SGMII, the MAC is passed the line side speed, which can be 10, 100, or 1G. The PHY interface mode speed is fixed at 1G, since it is SGMII, but the MAC needs to know if it needs to repeat symbols because the line side speed is lower than the host side speed. Andrew