Received: by 10.223.164.202 with SMTP id h10csp748378wrb; Mon, 6 Nov 2017 14:59:18 -0800 (PST) X-Google-Smtp-Source: ABhQp+TyNtuYmcdrmAlrKzBdjXkna/dQbUiqi56ApcveYwql8s6SKK3zRCxStnKq6JlW31vDE48P X-Received: by 10.84.253.23 with SMTP id z23mr15999124pll.210.1510009158149; Mon, 06 Nov 2017 14:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510009158; cv=none; d=google.com; s=arc-20160816; b=M+DnRqUyWO/UnwIxKdsLKh9j6LT4Ix4YdsXyRZoic+IRohpaRwfE+5JjlYppyg8f68 zDLy0cQuEG4udn2rkLTx8wKGrVZp9TSvTcQkVbafnjNJbi24xsE2tZzuk7NGNAB7Zr03 ERrCp3ORfP0sxczdJzCJCDqyjjlOxt9j9yafBnWiGOXsepDHVa0+Jikfvr99zmgYr6/1 I0b3GyJIVsdBFVW4HtYmTovW/TCUnf9kMo07Ud7O2SUsniyPXdRRa9v5dirwvWdmR+QS yFivSwi4+fRUtQfQ2aeUxy7Mbi/LJ1GtCH+RjjZvx/8LZsASBld2nS0NzeUsQU6tTfXo szog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gfrVFzbonR9Shf59VteUwTwM/6yliPcneSoTg2k3ks4=; b=Lw4j8o5gDX6pCH/e65O+Gl3ax8rZdLjvH8oFbw6+wjAcn1OCvABaC89isQCaRbOI1t tL0NysMHQgBekHfFWqn4GqOcstgK5u5t/PWA+4M3RMf8NhlFWYX+Qi+y+4RwB3IfZ8i/ mW30r0msBYkLZeKKrqe/Fr5aWqp6YYBtRCbnrqWkjrPYmm/S90vt3fX6M/fOxKW0/J1L Mxf5vZ2ZYGInOqF+3W0GxKVmcOTWh/Q7nr1uV7QNEOf8oyxjFrXU1v494nBHhFL4R42d ckhNADwmUK9s2qFTqLiX91366FxO1HkZC1mSSaNG5lDSTUl/neZbgaHVJwlkEPJV3kLR +i8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si11020338pll.664.2017.11.06.14.59.03; Mon, 06 Nov 2017 14:59:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753968AbdKFVMT (ORCPT + 95 others); Mon, 6 Nov 2017 16:12:19 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:55070 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753396AbdKFVMR (ORCPT ); Mon, 6 Nov 2017 16:12:17 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id B41519C1BAA; Mon, 6 Nov 2017 16:12:16 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KhXDKJqL4s6P; Mon, 6 Nov 2017 16:12:16 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id E09B49C2F06; Mon, 6 Nov 2017 16:12:15 -0500 (EST) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xpg-mgzfi7yi; Mon, 6 Nov 2017 16:12:15 -0500 (EST) Received: from weeman.mtl.sfl (unknown [192.168.49.104]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id BAFAB9C18C7; Mon, 6 Nov 2017 16:12:15 -0500 (EST) From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Vivien Didelot Subject: [PATCH net-next 00/11] net: dsa: setup stage Date: Mon, 6 Nov 2017 16:11:42 -0500 Message-Id: <20171106211153.26529-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Vivien Didelot (11): net: dsa: constify cpu_dp member of dsa_port net: dsa: setup and teardown default CPU port net: dsa: setup and teardown master device net: dsa: setup and teardown tree net: dsa: setup and teardown switches net: dsa: setup and teardown ports net: dsa: add find port by node helper net: dsa: use of_for_each_phandle net: dsa: setup routing table net: dsa: setup a tree when adding a switch to it net: dsa: rename probe and remove switch functions include/net/dsa.h | 4 +- net/dsa/dsa2.c | 615 +++++++++++++++++++++++------------------------------ net/dsa/dsa_priv.h | 4 +- net/dsa/legacy.c | 20 +- net/dsa/master.c | 30 ++- net/dsa/slave.c | 2 +- 6 files changed, 296 insertions(+), 379 deletions(-) -- 2.14.3 From 1583709030394160358@xxx Fri Nov 10 19:37:06 +0000 2017 X-GM-THRID: 1583709030394160358 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread