From patchwork Fri Dec 14 16:48:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 1013636 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=public-files.de Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43Gc485gwBz9s4s for ; Sat, 15 Dec 2018 03:50:32 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730045AbeLNQu2 (ORCPT ); Fri, 14 Dec 2018 11:50:28 -0500 Received: from mout.gmx.net ([212.227.15.19]:38097 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729823AbeLNQu1 (ORCPT ); Fri, 14 Dec 2018 11:50:27 -0500 Received: from localhost.localdomain ([91.14.94.237]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lq9se-1h2UZX0lzE-00dmBv; Fri, 14 Dec 2018 17:49:07 +0100 From: Frank Wunderlich To: Matthias Brugger , netdev@vger.kernel.org, Sean Wang , Andrew Lunn , linux-mediatek@lists.infradead.org Cc: Frank Wunderlich Subject: [PATCH 0/8] adding multiple CPU-Ports Date: Fri, 14 Dec 2018 17:48:39 +0100 Message-Id: <20181214164847.4851-1-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 X-Provags-ID: V03:K1:Wo/ML0ireloMZCby64lDreeHsWos1g5Mj78AoDnxpfDjch2Yv2C 5WbVaj4sjoNRwkHRBqr2Basat0FkNdc9ihBHUBc9Yazb5BDGacJ2p8f5KmubLiH0+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E+bW5S4zLp5F6gy3D+GrVDV6EuGHs9ANGT+40 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org some switch-chips have multiple CPU-Ports this patch-series adds basic functionality and handle the 2 cpu-Ports of mt7530 on board BananaPi R2 changes to mtk-ethernet-driver are not included yet, because here are still some issues with watchdog-timeouts most patches are based on OpenWRT-Patches created by John Crispin and only ported to DSA-Core 4.15+ with 2 main differences: - no change to platform-driver - option in dts is named "default_cpu" instead of only "cpu" to allow modification from userspace (additional patches needed) complete source (including eth-patches) is uploaded here: https://github.com/frank-w/BPI-R2-4.14/commits/4.20-gmac-test new in v2: - added DTS-changes - added cover-letter - added change of dts-option (default_cpu) currently posted not to full maintainers-list for first review, will do it when patches are ready :) Frank Wunderlich (8): net: dsa: adding fields for holding information about upstream-port net: dsa: add helper functions net: dsa: adding handling of second CPU-Port net: dsa: add support for GMAC2 wired to ext net: dsa: dsa multi cpu (mt7530.c) net: dsa: tell GDMA when we are turning on the special tag net: dsa: mt7530 add linking to mdio net: dsa: changes to dts arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 29 +++++++++- drivers/net/dsa/mt7530.c | 55 +++++++++++++------ drivers/net/dsa/mt7530.h | 4 ++ include/net/dsa.h | 22 ++++++++ net/dsa/dsa2.c | 36 ++++++++++++ net/dsa/dsa_priv.h | 5 ++ net/dsa/slave.c | 3 +- 7 files changed, 135 insertions(+), 19 deletions(-)