Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2386347pxb; Tue, 12 Oct 2021 05:38:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5ms5a0rIX6HFGpu9tJzNs6sMwkZOZcES4tdF4gv0THQPAtRmGtS2j5LFp1sRUcyUKYDuH X-Received: by 2002:a63:b917:: with SMTP id z23mr22341348pge.284.1634042299897; Tue, 12 Oct 2021 05:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634042299; cv=none; d=google.com; s=arc-20160816; b=zHW9SMdhlgiJIrMcPPh/GRN4XtZ/NTszhw7ql+iBmFtpeazNXhsDW3UxyW/QHpluKr 3RoYUsQhDcni1f9cF3cVIpVWtuQbsptJy9C+vFh2z21WBr70yQMggN+/0QgoUEP8uano NeCx2KWtI2gmsvtNnQR+g55vooqW+f2NzXGhY6sB4S1XU9TVh5SkYWED894YKRIwaRR4 p/bc+aIAkiV1Dze25DNjxF0KYnJWEWKei/j+C1n8lslIDhl9VRWSv+yqjfs7QsFnB/cC zQzkKX2Qx74SbVQsgyivkvtn5pfOaWEhkVy/7HU+VIW9ODs3VdFWhgwfr1ZNwXMuC2G5 /8vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9Oo+boBE+eAlZd6IuqDEtqKvRJtwbHtewLQoxfaOhls=; b=BdVF2tfS3JTyt2BkkhumSDBvkjfKFfyVXQqVNuYxFDZmK1fmZDcEJSJBUg+S0w+iL3 tpin75K8fXmqs2cABgJYovjrea4+eW+XkgJP9gqi/Hh8m640UZ9+shiFR49DdxKS1m9Q 9+RBbdzDFdBiobr2w0lwFsopYiUaML71No7hVF82TMWIps+54WGFlEq2GiSsgfHW+BNZ n217W+x9yhwmgAQ0FIs2+Jmg+a/WpKUtYDsIVqp8DBIUdxXOnP1l9n7uyZoUAGBOmngV /KQYQU+SUJqaEwin3JeP9aRiftfIHRjxq8zdEqvoIF79PE9UcPrFUUPXB7s6zjIdT50/ 3OHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=kfT7unhm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si17293083pga.457.2021.10.12.05.38.05; Tue, 12 Oct 2021 05:38:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=kfT7unhm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236367AbhJLMjF (ORCPT + 99 others); Tue, 12 Oct 2021 08:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236326AbhJLMjD (ORCPT ); Tue, 12 Oct 2021 08:39:03 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5070FC061745 for ; Tue, 12 Oct 2021 05:37:01 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id a25so64669867edx.8 for ; Tue, 12 Oct 2021 05:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9Oo+boBE+eAlZd6IuqDEtqKvRJtwbHtewLQoxfaOhls=; b=kfT7unhmvoilGV6/AHKo7A+myzo7Y74AbsTelhnnuMoPgx/+7LGeMEqk01wfguHzED HSTDVH6ck0ZHzyEF01fgdd9zMllTnqQobRb2Vmzect38QkOUsX3CYa68z0cvU0/J4HQY zfotXFbZyYWseR0Ts5M2T5jWxO2foaGtGAfLw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9Oo+boBE+eAlZd6IuqDEtqKvRJtwbHtewLQoxfaOhls=; b=iZON/jeK3kxEzadcAvV4L6LJivfoiP3RVo2RCRRZ7iIF0GqNDBV3u0E7W6PCueho8D z47qYnksbeeetN9z7w99CkHm0OnOZXKnEadcSkhnOrcuR7ir3O5aNnAab5mzg3cbSrGa UroCHjc9UtnXF0RU4u84chQ3ANTB/cpkLypf8KAyC3T4gak2kHtDAtowrB8Dw/xX3d29 n8H+AbHM8cpUGuArLFd48GqC0L04Tcr6NzJIXdg0e5ent1dDgv7BZ8Y3PUo1vAhkpx5H 9xlwiV9hQGAb0VDxkxK0p9Z8q/etVDgYHB7prQ1ckPN+ez3TkiYvwJw9Cz0FKVaM+mQY rYZw== X-Gm-Message-State: AOAM531rUWfMfqP+4q3AuY4OPZma5w8YlYIageey2J90ACXKTRndAVE2 b1kQgeIgMpu3ylbM3DhEtQCSLg== X-Received: by 2002:a17:907:7388:: with SMTP id er8mr33437254ejc.324.1634042219554; Tue, 12 Oct 2021 05:36:59 -0700 (PDT) Received: from capella.. (27-reverse.bang-olufsen.dk. [193.89.194.27]) by smtp.gmail.com with ESMTPSA id b5sm5763629edu.13.2021.10.12.05.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 05:36:59 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Linus Walleij , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Heiner Kallweit , Russell King Cc: =?UTF-8?q?Alvin=20=C5=A0ipraga?= , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/6] net: dsa: add support for RTL8365MB-VC Date: Tue, 12 Oct 2021 14:35:49 +0200 Message-Id: <20211012123557.3547280-1-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alvin Šipraga This series adds support for Realtek's RTL8365MB-VC, a 4+1 port 10/100/1000M Ethernet switch. The driver - rtl8365mb - was developed by Michael Ramussen and myself. This version of the driver is relatively slim, implementing only the standalone port functionality and no offload capabilities. It is based on a previous RFC series [1] from August, and the main difference is the removal of some spurious VLAN operations. Otherwise I have simply addressed most of the feedback. Please see the respective patches for more detail. In parallel I am working on offloading the bridge layer capabilities, but I would like to get the basic stuff upstreamed as soon as possible. [1] https://lore.kernel.org/netdev/20210822193145.1312668-1-alvin@pqrs.dk/ Alvin Šipraga (6): ether: add EtherType for proprietary Realtek protocols net: dsa: move NET_DSA_TAG_RTL4_A to right place in Kconfig/Makefile dt-bindings: net: dsa: realtek-smi: document new compatible rtl8365mb net: dsa: tag_rtl8_4: add realtek 8 byte protocol 4 tag net: dsa: realtek-smi: add rtl8365mb subdriver for RTL8365MB-VC net: phy: realtek: add support for RTL8365MB-VC internal PHYs .../bindings/net/dsa/realtek-smi.txt | 1 + drivers/net/dsa/Kconfig | 1 + drivers/net/dsa/Makefile | 2 +- drivers/net/dsa/realtek-smi-core.c | 4 + drivers/net/dsa/realtek-smi-core.h | 1 + drivers/net/dsa/rtl8365mb.c | 1610 +++++++++++++++++ drivers/net/phy/realtek.c | 8 + include/net/dsa.h | 2 + include/uapi/linux/if_ether.h | 1 + net/dsa/Kconfig | 20 +- net/dsa/Makefile | 3 +- net/dsa/tag_rtl8_4.c | 166 ++ 12 files changed, 1810 insertions(+), 9 deletions(-) create mode 100644 drivers/net/dsa/rtl8365mb.c create mode 100644 net/dsa/tag_rtl8_4.c -- 2.32.0