From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753387AbdKIA3h (ORCPT ); Wed, 8 Nov 2017 19:29:37 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:53466 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753108AbdKIA3e (ORCPT ); Wed, 8 Nov 2017 19:29:34 -0500 Date: Thu, 09 Nov 2017 09:29:28 +0900 (KST) Message-Id: <20171109.092928.841300203717838664.davem@davemloft.net> To: vivien.didelot@savoirfairelinux.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, f.fainelli@gmail.com, andrew@lunn.ch Subject: Re: [PATCH net-next 00/11] net: dsa: setup stage From: David Miller In-Reply-To: <20171106211153.26529-1-vivien.didelot@savoirfairelinux.com> References: <20171106211153.26529-1-vivien.didelot@savoirfairelinux.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 08 Nov 2017 16:29:33 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vivien Didelot Date: Mon, 6 Nov 2017 16:11:42 -0500 > When probing a DSA switch, there is basically two stages. > > The first stage is the parsing of the switch device, from either device > tree or platform data. It fetches the DSA tree to which it belongs, and > validates its ports. The switch device is then added to the tree, and > the second stage is called if this was the last switch of the tree. > > The second stage is the setup of the tree, which validates that the tree > is complete, sets up the routing tables, the default CPU port for user > ports, sets up the switch drivers and finally the master interfaces, > which makes the whole switch fabric functional. > > This patch series covers the second setup stage. The setup and teardown > of a switch tree have been separated into logical steps, and the probing > of a switch now simply parses and adds a switch to a tree. Series applied, thanks Vivien.