From patchwork Wed Jul 13 14:06:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 12916810 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 7226DC433EF for ; Wed, 13 Jul 2022 14:08:05 +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:Content-Type:MIME-Version: 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:In-Reply-To:References:List-Owner; bh=gA3XVimnX7f3s6KgiLlFK+Po6cdJBSVv58Yny5mkLeQ=; b=RU9u4dDZ9UxjrVyDjrs+1VLsTS 45Tba9xAgoNRHnliseZmGxkiLSR6GmGFXT/p9ZznCZM/IW6HIwdnFcR4GEdSmWmrE88t43bwj6ckR LzzZuICTdrIq4VeqUp43UqTVAyDeP+gW7aZ3e2cHGSeHrv28h2p5kdL5zTEBC+49NKyqqf6izqu88 FMgnzwW8Pln58ixoNElHnA/rbPa80IkgsRWcRmpRYTcPoycJqxkcaya6z0pIAJA3AvAtThalsir2K dfM0VAliVBIoMaV9Pf9+5tigNZ32bmb0WSpZZymCxBwP0J1w6MNoVmhzcUdMwDX/SjCh0mqET4DIj 1bKh0f4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBd1v-004Ezm-PQ; Wed, 13 Jul 2022 14:07:55 +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 1oBd1h-004Ejb-J7; Wed, 13 Jul 2022 14:07:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: 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:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gA3XVimnX7f3s6KgiLlFK+Po6cdJBSVv58Yny5mkLeQ=; b=DeAZz/u08LyY66av49LSBj404F Z1pv+JxyNxpbyQNSBtLumt6bq99DUgUOvJELIyRwoLQEXcthrEo0yZ9nVAAtX1tKSgxuH2dMmB+jA RU4NQAi+mSAy8faMSx/seFqS6ytNIgYr2tQx/OJxiMNdEA0fckOScgYQZCR7QV5N+Ql4iLxVW7u5t YVEhA4gpDss/Fp1O9Yy6+X/53bDV+oM4Zinq344vPFpPcwUDc86YHQnhaNBfwgjreihJ0oQO8qC3V BEx2OXyizzoqih3kUFui4oDFzaID0qEjlas5NmT78Mb2+auyWkNQYZzUSmWHX1O4ueEJ9TKBzA6LP YXum0aZw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33316) 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 1oBd0u-0004Zy-Vu; Wed, 13 Jul 2022 15:06:53 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oBd0p-0005gm-9r; Wed, 13 Jul 2022 15:06:47 +0100 Date: Wed, 13 Jul 2022 15:06:47 +0100 From: "Russell King (Oracle)" To: Andrew Lunn , Heiner Kallweit Cc: Alexandre Belloni , Alvin =?utf-8?q?=C5=A0ipraga?= , Andy Shevchenko , Claudiu Manoil , Daniel Scally , "David S. Miller" , DENG Qingfang , Eric Dumazet , Florian Fainelli , George McCollister , Greg Kroah-Hartman , Hauke Mehrtens , Heikki Krogerus , Jakub Kicinski , Kurt Kanzenbach , Landen Chao , Linus Walleij , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Marek =?iso-8859-1?Q?Beh=FAn?= , Matthias Brugger , netdev@vger.kernel.org, Paolo Abeni , "Rafael J. Wysocki" , Sakari Ailus , Sean Wang , UNGLinuxDriver@microchip.com, Vivien Didelot , Vladimir Oltean , Woojung Huh Subject: [PATCH RFC v2 0/6] net: dsa: always use phylink Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220713_070741_944225_F40E2529 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. 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 Hi, This is a re-hash of the previous RFC series, this time using the suggestion from Vladimir to create a swnode based fixed-link specifier. Most of the changes are to DSA and phylink code from the previous series. I've tested on my Clearfog (which has just one Marvell DSA switch) and it works there - also tested without the fixed-link specified in DT. drivers/base/swnode.c | 14 ++- drivers/net/dsa/b53/b53_common.c | 3 +- drivers/net/dsa/bcm_sf2.c | 3 +- drivers/net/dsa/hirschmann/hellcreek.c | 3 +- drivers/net/dsa/lantiq_gswip.c | 6 +- drivers/net/dsa/microchip/ksz_common.c | 3 +- drivers/net/dsa/mt7530.c | 3 +- drivers/net/dsa/mv88e6xxx/chip.c | 134 ++++++++++++------------- drivers/net/dsa/mv88e6xxx/chip.h | 6 +- drivers/net/dsa/mv88e6xxx/port.c | 32 ------ drivers/net/dsa/mv88e6xxx/port.h | 5 - drivers/net/dsa/ocelot/felix.c | 3 +- drivers/net/dsa/qca/ar9331.c | 3 +- drivers/net/dsa/qca8k.c | 3 +- drivers/net/dsa/realtek/rtl8365mb.c | 3 +- drivers/net/dsa/sja1105/sja1105_main.c | 3 +- drivers/net/dsa/xrs700x/xrs700x.c | 3 +- drivers/net/phy/phylink.c | 30 ++++-- include/linux/phylink.h | 1 + include/linux/property.h | 4 + include/net/dsa.h | 3 +- net/dsa/port.c | 175 +++++++++++++++++++++++++++++---- 22 files changed, 290 insertions(+), 153 deletions(-) Tested-by: Marcin Wojtas Reviewed-by: Marcin Wojtas