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 BD1E0C433EF for ; Wed, 29 Jun 2022 09:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type: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=FnVMalTUeoK5NYDPcJD2pQwPBID5bcHUMECiiKgpzDc=; b=UcqFSXpA5MRiB2BOQhXsnkXuHs 3QN5cfIbUrFIhFBfr7/t3zS8XfeAwladCv2YCd1hQCQT6VJ6RyYRx/nle3SX9RTteJSvJAtUOa55P 2Em1tzteNgG2g8x6T7eHtYBjhNxGo9vSM7ibk280NjsKWu0sEUYgaKVlERclV9kZA1DpXeGugRom7 cHlIVZVQ4AcmFGrbLrVvG39nccCdzxDWVRVTfZyuC2xoFLHGAlqtr3mvA7JilmRv2QUtnKSgLksMs s72heWmQZkzHaOqCXzln5TgI7A1mV7yEDefqeH0uFX+DZHPvL+Azn1EpD85a/O2HC0ZHiUPvyOItD lXAPHprg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6U6c-00Ahwl-TK; Wed, 29 Jun 2022 09:35:30 +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 1o6U5z-00AheD-Ns; Wed, 29 Jun 2022 09:34:57 +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-Transfer-Encoding:Content-Type: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FnVMalTUeoK5NYDPcJD2pQwPBID5bcHUMECiiKgpzDc=; b=ZG29/l86CiXjrqTr2ipqeRsP1G aa55dDEKNASFaNRo6wWPPA9DpBVetuCyPO7DZSh2R3eUJqnsGekbthqj2g2ocoZnMlp/EySXnZD/K 6iqyUWPTtHMFXPXSv7heax1a7CV8mtw+sclSEDnN1HXu9c3RtGRMCmPFPVRTN5Z3br55Eul3Ec7U4 48OMlof6o0jGU8vrSCo1C7XTUPvHUL/d+AGf81FC4RwpMWHdxJzziqYvsFuwEwXKvbLdlXIqfTSXy LMNBjkDP4JdbPnLYYUqmWm8Dg7V2lF1z0fKdYM6WkV16dHaNxUJzFvWpUGzq4/n3I7y3InYwugHUt KVfXyXRg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33084) 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 1o6U5h-0002kp-Ux; Wed, 29 Jun 2022 10:34:33 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1o6U5c-0005jm-5C; Wed, 29 Jun 2022 10:34:28 +0100 Date: Wed, 29 Jun 2022 10:34:28 +0100 From: "Russell King (Oracle)" To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Andrew Lunn , Heiner Kallweit , Alexandre Belloni , Alvin =?utf-8?Q?=C5=A0ipraga?= , Claudiu Manoil , "David S. Miller" , DENG Qingfang , Eric Dumazet , Florian Fainelli , George McCollister , Hauke Mehrtens , Jakub Kicinski , Kurt Kanzenbach , Landen Chao , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , netdev@vger.kernel.org, Paolo Abeni , Sean Wang , UNGLinuxDriver@microchip.com, Vivien Didelot , Vladimir Oltean , Woojung Huh Subject: Re: [PATCH RFC net-next 0/4] net: dsa: always use phylink Message-ID: References: <20220629112750.4e0ae994@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220629112750.4e0ae994@thinkpad> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220629_023451_839485_415D4457 X-CRM114-Status: GOOD ( 24.26 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Wed, Jun 29, 2022 at 11:27:50AM +0200, Marek Behún wrote: > On Wed, 29 Jun 2022 09:18:10 +0200 > Andrew Lunn wrote: > > > > I should point out that if a DSA port can be programmed in software to > > > support both SGMII and 1000baseX, this will end up selecting SGMII > > > irrespective of what the hardware was wire-strapped to and how it was > > > initially configured. Do we believe that would be acceptable? > > > > I'm pretty sure the devel b board has 1000BaseX DSA links between its > > two switches. Since both should end up SGMII that should be O.K. > > > > Where we potentially have issues is 1000BaseX to the CPU. This is not > > an issue for the Vybrid based boards, since they are fast Ethernet > > only, but there are some boards with an IMX6 with 1G ethernet. I guess > > they currently use 1000BaseX, and the CPU side of the link probably > > has a fixed-link with phy-mode = 1000BaseX. So we might have an issue > > there. > > If one side of the link (e.g. only the CPU eth interface) has 1000base-x > specified in device-tree explicitly, the code should keep it at > 1000base-x for the DSA CPU port... So does that mean that, if we don't find a phy-mode property in the cpu port node, we should chase the ethernet property and check there? This seems to be adding functionality that wasn't there before. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!