From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62DA3347FD7 for ; Thu, 19 Mar 2026 23:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773961967; cv=none; b=oUMR1B79CzEtT/9oDddydoE88KkjKMFoYY0A+LogApXfwzxx3NzqAbyQAKXq2frlovRvQdnS7hRimnooElFE1ZgRMVZcrXilhzwBIVPa4eRkp2d6iyogM2KKjWl/w8BJYA1445EQamcWh+QG/Yi/wAfw+Ay7JvwIzLkmEcmvyLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773961967; c=relaxed/simple; bh=m6iYYB8uKqbPiLGC/QiXT6W+LdvKK9YSo9bsmQ2vh2I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oLrhwKxBEvCSpvBh94+Iib7xjk8nV8H+rd0RYkkYE+RB9gHQYUkF2B/h8JINw53N0emRXvbRkER5KAMZTVzxeDpMPNRvDP5/YSDtDrKZ8VbCVOsRso7Ph/r83FRafeWHvV5k2jo90wtQLwW8hqZZykel7xtD+m0xjZH+Q5ywuRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=reV152Po; arc=none smtp.client-ip=212.77.101.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="reV152Po" Received: (wp-smtpd smtp.wp.pl 46149 invoked from network); 20 Mar 2026 00:12:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1773961961; bh=qfaK6l9J5wfAPUEJLhkZds3IFOFd/5cFiKFRvHIq0Cs=; h=Subject:To:Cc:From; b=reV152PoSCm/mRlSQK6ej2CjfufmaljTJAQJBcWg0wfXF7XnpzQDygrM2pTdMdRKP dkQsO/Y/ymnNypNlm50VYnJO1V2mXX1kFmJK2vo8yDXckLo5WzzSldrmKqBi/EU2Nl ob4MYa/A3DTJtl4D2x/+lPKsdEk/2AWp6KlqrhdIuY5zKjSFV5v7118vK3j0QXBaIL 6Eq7Irj/D7hyPZa7tKuoN/i4CnelcQxezM74DN+BX3QB/f/NEpXWmplBy6gRAjiiUL twa6HC9tjyAVIzt0V/Dtff1pepGIdg+s/b/cXIeXb0nH7g1H0IVjf/d+7LhEpaK1Ou FKaZ7xLP8Db5Q== Received: from 83.5.169.164.ipv4.supernova.orange.pl (HELO [192.168.3.203]) (olek2@wp.pl@[83.5.169.164]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with TLS_AES_256_GCM_SHA384 encrypted SMTP for ; 20 Mar 2026 00:12:41 +0100 Message-ID: <1aa4eb41-c027-4a1a-85f1-fb8846742bfa@wp.pl> Date: Fri, 20 Mar 2026 00:12:41 +0100 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: [PATCH net-next v2 1/2] r8152: Add support for 5Gbit Link Speeds and EEE To: Andrew Lunn Cc: Birger Koblitz , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260317-rtl8157_next-v2-0-10ea1fa488d1@birger-koblitz.de> <20260317-rtl8157_next-v2-1-10ea1fa488d1@birger-koblitz.de> <2bfede0e-f8d1-472d-80c4-7c3570b5921e@wp.pl> <876af50e-320f-4cec-97c0-a7eb438dc838@lunn.ch> Content-Language: pl From: Aleksander Jan Bajkowski In-Reply-To: <876af50e-320f-4cec-97c0-a7eb438dc838@lunn.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-WP-MailID: 2da21c68c29a0e2045ba457eebc21ead X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000000 [ofPs] Hi Andrew, On 19/03/2026 23:46, Andrew Lunn wrote: >>> @@ -604,6 +604,7 @@ enum spd_duplex { >>> FORCE_100M_FULL, >>> FORCE_1000M_FULL, >>> NWAY_2500M_FULL, >>> + NWAY_5000M_FULL, >>> }; >>> /* OCP_ALDPS_CONFIG */ >>> @@ -725,6 +726,7 @@ enum spd_duplex { >>> #define BP4_SUPER_ONLY 0x1578 /* RTL_VER_04 only */ >>> enum rtl_register_content { >>> + _5000bps = BIT(12), >> Based on other Realtek chips, I guess that BIT(11_ corresponds to 2500 Mbps >> over two twisted pairs. Realtek calls this 5G Lite. Similarly, there are >> 2.5G Lite and 1G Lite, offering 1250 Mbps and 500 Mbps, respectively, over >> two pairs of wires. > Oh, that is different. Normally for a -T2 link, you double the clock > frequency, so you keep the normal bandwidth. But you are saying it > does 500Base-T2, 1250Base-T2, 2500Base-T2? It works exactly like you describe. It’s described in the RTL8156B datasheet[1] if your interested. To be honest, I’ve never used Lite Mode. I think it’s disabled by default in the driver. 1. https://www.lcsc.com/datasheet/C41376388.pdf > > Can it select these modes on its own, if the link partner is another > Realtek device? Many 1G PHYs will detect if a pair is broken and > downshift to 100Mbps, which only require two working pairs. But this > device has the option of downshifting to 500M. > > Andrew Best regards, Aleksander