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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4FB1AC433EF for ; Mon, 18 Jul 2022 18:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fJfth3W+uunplo/lulppoMgWGBtYVUYRYloKgjqoRlA=; b=fUMqkEZ9jeblG8 zpjI0IvRt9DojijauBwQpc8PEtE62E6ZMd1+kkIAi3NNr9LOw6HpvBTkI6vBhVAs/kNPzDmgAeuNY OGY78KEIEPPnAp8vLe7tSw6xfHa7WgwzvoXaQb6SZng3DK27N7mMyjRD59k3LWIddrK5NLLsN7T1u thhLKXnToRP9zefMgV8HCvXbCUs14Wd8Vxm4Iy1DBouBzL/XR6e+BupUGXr9K/v644cIY0+IY2qJj cXLtcLAvLAMDAGrR4j27x/z2aR4HsHmtSd5Dn7G0b+ncBzuJBqetqgwRxUZTyGT4HBYy04N4eIcBR Q3usbS7LpctRchiN1H/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDV3v-00HQ8r-Pa; Mon, 18 Jul 2022 18:01:44 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDV3r-00HQ5z-QI for linux-arm-kernel@lists.infradead.org; Mon, 18 Jul 2022 18:01:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fvDvYNh033IOlQjqYKmG7DkfegtAnkMbbjHUTcpexCw=; b=Mkf+EnOO5lL4TN07vG/v1CkFSK O9h2x7xk2EK3aIgRnG4AwBANgxMawFV8s5A/9WP9DRo8lxNkhDCVrYA8ELqmaZyJ9O/BfhdRQ8l6Z yzkVB5uAXV5KRLG28A3gtiEPabNpKDH28R8EPRrlO2YFRtqcZO5N+HVYxUYzl3FSi9Dw/olJPlqwn 1Uc5OlexNfAlnU+PPOKLHFEMxTV+gZwXCPmw2oDdrRPJdxVH1xo7cYn/P3YEreDdQ/UUGAfPOjLbe 7HlNRrEailyn6mm3h1EYu94Ii94VpJE9o4I+1ly4EGFJE00+eo1I7vwrZWPfmm5icIJGiT2O3qSB4 jDzo7BsQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33428) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oDV3j-0001xD-MR; Mon, 18 Jul 2022 19:01:31 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oDV3i-0002A1-Oo; Mon, 18 Jul 2022 19:01:30 +0100 Date: Mon, 18 Jul 2022 19:01:30 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Sean Anderson , "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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220718_110139_886980_FC85768B X-CRM114-Status: GOOD ( 18.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jul 18, 2022 at 07:28:58PM +0200, Andrew Lunn wrote: > > > 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. ... and passing the SGMII link speed (1G) will break a lot of stuff where the MAC/PCS may need to know the media speed to do the right number of symbol replication. So I don't think we can get away with just saying ->speed is the link speed which will prevent drivers breaking. I don't think it's that simple. Like everything with phylink, all the drivers need to be looked at and tweaked with every damn change, which makes phylink development painfully slow. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel