From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58E0D388391 for ; Tue, 28 Apr 2026 09:26:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777368380; cv=none; b=V7XLlYZlhLL3VTCAVZ5tIWYF8NsuZMIvzu4ZvDRRyDyzR+bAdcWZue0+teSjzcOZqWKf5UflqwtdwAHn2l5O3Ak4sH48I4xiM19/doaw9BY3Q+335wa/2gNMMAQkwXtsl8EFun//5SpOC7A/TM8HyEoxrCvQ21ciaxaJfW5u2P4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777368380; c=relaxed/simple; bh=9Cmk2zEMnqYDCmmzuz7M/Q/Kf4X+1td9feLwCVsavls=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kbQNX04whwWAP1Keff9mp7ZJx3ZSPsjhln35GJ8NrvoD46y7Qf3cH5YqcFVKb9lde8EgjJ5MTZU6WYBmPgwehaF5egJaGnFeQtF3prZa7ZhpEmrVB/IgVMopVTbyUUmEPBX03liPFq800w/jLQPYAJm3CutG4/UfgbY7zD/1KIU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QundDFMv; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QundDFMv" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4890098abbaso88495095e9.0 for ; Tue, 28 Apr 2026 02:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777368371; x=1777973171; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=b/bKX8nWZ5h+TCYbqj5tfLIob37kb6iKL7nSpxWlYBs=; b=QundDFMv/byC/UjeX6qUyYUarW3gWzJGjkEa7oIu+C/0B+J61SZzner+sEaiNbwiBC SZvQ2wBUfosAJYpKsH7XKqhZ0LDxKhQz+llcRxDOm3qXvNaYzhMSV7YrYSxttDBOIrlO VmcJuqFvyW/No5ORyNI+57rg8krZcMtUWg4AJqj1azgfRbEB+vrAsNdsrwJAu1uzyWOd 1a3J+1MsZcsYtyrWLLHnrtlwmdMqG1wOiwrqvDBd6pZ+B8py41Vx9Fnu7SK1CXoIudi+ pjtzx1FQsHkpzIv0+rfCCIUDJ/lKMkoXKyX5BqyXU0SgweplA5f95j7Pl/8MPVGZfwEJ EfQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777368371; x=1777973171; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=b/bKX8nWZ5h+TCYbqj5tfLIob37kb6iKL7nSpxWlYBs=; b=GDEEL0KNQyWlLiI/SCeN2hhHsYYKqTYbf319xWXs6i6YoJh5Vtd6Uo1UYHZ314EF2r 3hZB2DfQdC+n13+f2fwq8NYk51viinTblCorXxAsX/2BSHL2qQXCKnJiKPKRnffAnpaw A8KJGHyv6Iv3eJLj28vgrUSi2NGB2hrQfEwp3qofGRQpgH9zd6l9nIuHWbOIaVLJcTlq I5600qDvqRqs2ltHpDXNrqZXg/VUHMenK7JSm35MxdFQtqvKpVj4tli5VOJbzEcu1HeH fFICxI72w3sEFbN734XYvL36QPnhbkq7mO+KiX5gBY1CMOddSFioA4ydiR4LtiQjAvaS sr+g== X-Forwarded-Encrypted: i=1; AFNElJ8ML3C5//6g2fKP2U3R9ei4Gad7s0Cq2ckAIRd6BqG8UF6moOcjrEz45xoU5T+AIMx67hFL8TrpeoZUMQQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzpRQUEb3sgv20sKYLqtyl5u4ssleuM60r/lfZOOGunjJccLTj+ 0g+BsODoZzWotfbKHViq6YHCu5SGwtwXj8jDikb0JCKeRfYv3IASpIGh X-Gm-Gg: AeBDieuZdA3OrmAzlcqiUKvFh5cyvbJR9vrPFPGGDFb8WG6MI4ZUps29B54DvnE5kUo 1KDHGsmNx4YSx4yT9XCKPvlSfUeYaeaSJXy8J9d9E+X7H6qBGAVZG1Kbw4sRQ44nJnIx+r2zn4n n/DC0j2D92nNSZQjSLw9aE7M/lKBTJh5sQw1trrZWaNdrYfIVj4I38qlDn5v22ntIlkzZ7GEF3F Yn64Fbm9R12lQZ/vURUVrR3knijAuqUX4LV7ZQ0/39X5QiloIKROfqL1nQDGFB6dhuYmHgVUTuv jjdNWJDN39NJg3oSIm5ERuBf4bJGyYEWwmCkn4ObclaGQMig8NwEiy9uUup8ttRCGFnH6PKfu0N WYDjZet6Y8ESlBTMaX7StUt+T2FQdatr0BlW61WPOA6OWGjjvIXz0ReoqKT1ftS0pd3ge08esl1 gNJ/neOgFP/QYZsGtS/vlDLEMupKS5ZnBqgExLl/y1PwIoLv8IH7VXOpahQ6sBjT37vRuQE4kkr A== X-Received: by 2002:a05:600c:c048:b0:489:1e8a:90b4 with SMTP id 5b1f17b1804b1-48a77b2203emr26399355e9.21.1777368371175; Tue, 28 Apr 2026 02:26:11 -0700 (PDT) Received: from [192.168.20.170] (5D59A51C.catv.pool.telekom.hu. [93.89.165.28]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a773f1fa0sm44594055e9.14.2026.04.28.02.26.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Apr 2026 02:26:10 -0700 (PDT) Message-ID: <232d7c53-f413-4c8d-bc70-f03a12d601f5@gmail.com> Date: Tue, 28 Apr 2026 11:26:08 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [net-next PATCH 06/10] net: dsa: realtek: rtl8365mb: add VLAN support To: Luiz Angelo Daros de Luca , Linus Walleij Cc: Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , =?UTF-8?Q?Alvin_=C5=A0ipraga?= , Yury Norov , Rasmus Villemoes , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260331-realtek_forward-v1-0-44fb63033b7e@gmail.com> <20260331-realtek_forward-v1-6-44fb63033b7e@gmail.com> Content-Language: hu From: Gabor Juhos In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Luiz, Linus, Sorry for the late reply. > >>> I haven't yet wrapped my head around if the RTL8367 (no extra letters) >>> is more RTL8366RB-ish or more RTL8365MB-ish... take a look at the >>> old code if you can figure it out from register maps etc: >>> https://github.com/openwrt/openwrt/tree/main/target/linux/generic/files/drivers/net/phy >>> (maybe Gabor knows, put him on cc) > > Regarding the RTL8367 (no extra letters), the RTL8367R is indeed a > member of that original family, rather than the "B" family as I > previously suggested. It uses Port 9 for the CPU, which is absent in > RTL8367B. Architecturally, it is definitely more RTL8365MB-ish. I wrote the rtl8367 driver for the RTL8367R and RTL8367M switches. I have no datasheet for those chips, but there are some basic information about their features [1]. The driver was based on various code found in GPL sources of the TP-Link TL-WR2543ND and ASUS RT-N56U devices. Those sources were using the RTL8370 specific API for these chips. It was not clear that the two models really belongs to the RTL8370 family or simply the vendors were using the RTL8370 specific code as a base, so I have used RTL8367 prefix in the swconfig driver. Probably, it would have been better to keep the RTL8370 prefix to avoid confusion. > > The main challenge with the base RTL8367 is the lack of a public API. > Most vendors support it via binary managers (ASUS) or proprietary > kernel modules (TP-Link). The only available references I’ve found are > the OpenWrt swconfig driver you mentioned and some U-Boot > initialization code. I do have the rtl8367{b,c,d} APIs. While the > rtl8367b seems close to the original RTL8367, it has fewer ports. Does > anyone happen to have access to the original RTL8367 API > documentation? I have no documentation, but the RTL8370 API source can be found at various places [2], [3]. To be honest, I don't remember all the details, but I hope that this helps. Regards, Gabor [1] http://semitron.co.kr/product/product.php?lcate=001&mcate=005&scate=004&uid=47&PHPSESSID=ec195486d91ed175f698567462571180 [2] https://github.com/cgoder/openwrt_rtk/tree/master/rtk_openwrt_sdk/target/linux/rtkmipsel/files/drivers/net/rtl819x/RTL8370_RTL8367_API [3] https://github.com/andy-padavan/rt-n56u/tree/master/uboot/mips/uboot-5.x.x.x/drivers/rtl8367/api_8370