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: 10731451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABD84746 for ; Fri, 14 Dec 2018 16:50:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EDE62890F for ; Fri, 14 Dec 2018 16:50:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 127322D861; Fri, 14 Dec 2018 16:50:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B9F572890F for ; Fri, 14 Dec 2018 16:50:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2LwedFHZusMn57bUKeHo4NyQt84zaeS2x1ewgQYhIBk=; b=t46 dDDlwVBmyMc6/qZzwU9fLdZOL3pIRNGC5bVua5UPaTYI0nRwRCBWYS5PUckJ8A/ykpRJ/ZZWy7taX 3IekoEKAaS7XAYSEWYNN46EOdvZ9Lq4c553B27Kq3PaEa7HPgz84wWYbWr1xT6geiXYPMpmvceayQ XAcZiSUEYyeI6uEO+jEYSBVnXyYmx2tUyCtm7lzUr7BnSAyMdGbxvyCQF+IN0IgaTieqNDxxER+n9 8fqvgWXhM7K3ggIlNaMZdtCVDuUl4JwQ55ohKZr8OwImF8EkZ7JKLLqbs0/1DfXCORUudwsSN6rgy FkTdVwYuo634fGLfbKTNKxO8GDc1cEw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXqfX-0000uv-2h; Fri, 14 Dec 2018 16:50:31 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXqfN-00087D-1M for linux-mediatek@lists.infradead.org; Fri, 14 Dec 2018 16:50:24 +0000 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 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+Ymf289 ZHjm0QJqxl0k2I9bCBCl8i+OBMq209fw6CPijtQ4AKLqaMmKLMSE1J+EzlwwZo2eqZs0ED1 ztw9PHeNzneApsUxMZQ5w== X-UI-Out-Filterresults: notjunk:1;V03:K0:u7PXPAinuUg=:ALh3P9C96UOfcpAmbmo//e kCcXUPoC7tBP9Hm4Ydp3Pa1qERZL96nTmMXLsGKvOhDUVaaf4sdqY9wHK+CYtf++rpdtbFk71 muge9QE9tnnN3stMaOCvJD4s2GPwnv0kPvrjoR6o3eKo/UkEcVhWHAxYcDGeVV06rBd5Whwas riqd9V3vmi2WsbAC8GpFqQeNu3WamtkKHvPlDwBHNYc4XfGiqX0BmTi20Fc9U69lbxmwrA7wk U0j25DeFZGnoY4iShi+S+UFwIk+VwivI4jlPOp/iqKu6BUoN8b9aTzyB7D4mybfNgatFGFzgM J29wPXjYKRHCyvboPA0q4YimJhWL5B/fdSh01urFttVqHrxgS6Fc0o9824jML0sW3v9qbKgIS /XIt2Cbw3EtGoFxAUX8vcjex4+fFtNeoqSoZ1aIoiQcOPo+7ep6gXPDRJfCAYDwzfwAjF9zGg nqZjIigm/sLY/NlETJfWCROEtRua61ovemyll191DVrrxO3gi20/+WxF63VGpxgwVPfk4LpgN TJ1C/hKIJlYIJ+wt85jNoHPIFD9vXRg8FGzJKQLUAccfwSPp2sRN1+1TSFMpjJl41qfBut1Tt QtJRMqfsC7uZgCOw0hx0S8Zv+IeSBTjGE9BmIr2LpVxuWKQL+r1xxeriq/5vLz1VP1thIZHaB +mbTCsM01V+Xhl8+KK9881mWDZ/A4Z45BwjVDT/knJiWmaT7ocLZYhwE90HSBR8loBL5uYaxv GTSaIVdfXGfZ8KCLHUAWrJW89oX5xOdJUtZGsVgoNZsdVTDNMgKp5CsEwK+9wwuCApczm6s9s NkJ8DLE91e37kFShTTxH/4RFyTJEj6gpat2vNW5XHMZLnExQkNeLxOKinLuCf4tvKEOkxpLf5 /JJZvtTs8evu3gveW2Kua24EKE+bW5S4zLp5F6gy3D+GrVDV6EuGHs9ANGT+40 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181214_085021_544497_37658E11 X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Wunderlich MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)