public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Birger Koblitz <mail@birger-koblitz.de>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	linux-usb@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Chih Kai Hsu <hsu.chih.kai@realtek.com>
Subject: Re: [PATCH net-next 4/4] r8152: Add firmware upload capability for RTL8157/RTL8159
Date: Wed, 29 Apr 2026 06:21:58 +0200	[thread overview]
Message-ID: <877f67bd-6bd8-4d61-8f7b-d206b9125eda@birger-koblitz.de> (raw)
In-Reply-To: <d9d69a5a-be6e-4566-9ec3-e742f745a530@lunn.ch>

On 29/04/2026 3:57 am, Andrew Lunn wrote:
> On Tue, Apr 28, 2026 at 05:47:24AM +0200, Birger Koblitz wrote:
>> The RTL8159 requires firmware for its PHY in order to work at
>> connection speeds > 5GBit. Add support for uploading firmware for
>> the PHYs using the existing rtl8152_apply_firmware() function
>> in r8157_hw_phy_cfg() and set up the correct names for the firmware
>> files.
>>
>> If no firmware is found, both the RTL8157 and the RTL8159 will continue
>> to work.
>>
>> Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>
>> ---
>>   drivers/net/usb/r8152.c | 15 ++++++++++++++-
>>   1 file changed, 14 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
>> index 08cc3c1dae0facb2400890ba4d093c97ed56d40b..56e00fe6f32405ce753df3e03e54a7daaf1a29ac 100644
>> --- a/drivers/net/usb/r8152.c
>> +++ b/drivers/net/usb/r8152.c
>> @@ -4663,10 +4663,11 @@ static bool rtl8152_is_fw_phy_speed_up_ok(struct r8152 *tp, struct fw_phy_speed_
>>   	case RTL_VER_11:
>>   	case RTL_VER_12:
>>   	case RTL_VER_14:
>> -	case RTL_VER_16:
>>   		goto out;
>>   	case RTL_VER_13:
>>   	case RTL_VER_15:
>> +	case RTL_VER_16:
>> +	case RTL_VER_17:
> 
> Is that a bug fix?
> 
> 	Andrew
No, since the RTL8157 (RTL_VER_16) also works in my experiments as 
expected without this change, i.e. without any updated firmware, or 
better the possibility to update the firmware. It is only for the 
RTL8159 where the firmware is necessary to even get 10GBit performance, 
at least for the link-partners I use for testing. My understanding of 
the Realtek "firmware" is that it mainly provides updated calibration 
constants, possibly better calibration routines for interoperability. 
Unlike for many other drivers, the firmware is not necessary to make the 
driver work at all.

Birger


  reply	other threads:[~2026-04-29  4:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-28  3:47 [PATCH net-next 0/4] r8152: Add support for the RTL8159 10Gbit USB Ethernet chip Birger Koblitz
2026-04-28  3:47 ` [PATCH net-next 1/4] r8152: Add support for 10Gbit Link Speeds and EEE Birger Koblitz
2026-04-29  1:53   ` Andrew Lunn
2026-04-28  3:47 ` [PATCH net-next 2/4] r8152: Add support for the RTL8159 chip Birger Koblitz
2026-04-29  1:52   ` Andrew Lunn
2026-04-29  3:52     ` Birger Koblitz
2026-04-28  3:47 ` [PATCH net-next 3/4] r8152: Add irq mitigation for RTL8157/9 Birger Koblitz
2026-04-29  1:56   ` Andrew Lunn
2026-04-29  4:06     ` Birger Koblitz
2026-04-29 18:02       ` Michal Pecio
2026-04-30  3:36         ` Birger Koblitz
2026-04-30  5:44           ` Michal Pecio
2026-04-30 14:19           ` Andrew Lunn
2026-05-01  5:24             ` Michal Pecio
2026-05-01  7:01             ` Birger Koblitz
2026-05-01 12:21               ` Andrew Lunn
2026-04-28  3:47 ` [PATCH net-next 4/4] r8152: Add firmware upload capability for RTL8157/RTL8159 Birger Koblitz
2026-04-29  1:57   ` Andrew Lunn
2026-04-29  4:21     ` Birger Koblitz [this message]
2026-04-29 13:01       ` Andrew Lunn
2026-04-29 15:58         ` Birger Koblitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f67bd-6bd8-4d61-8f7b-d206b9125eda@birger-koblitz.de \
    --to=mail@birger-koblitz.de \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hsu.chih.kai@realtek.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox