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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5838AC433EF for ; Mon, 18 Jul 2022 17:29:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235677AbiGRR31 (ORCPT ); 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: 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