[PATCH 8/8] usb: eth: Bind Realtek RTL815x to CDC ECM driver

Jonas Karlman jonas at kwiboo.se
Sat Jul 11 18:08:06 CEST 2026


The Realtek RTL815x Ethernet controllers have CDC ECM support. The
RTL8156 and RTL8157 also have CDC NCM support, however RTL8157 fails to
signal Network Connection status on demand.

Bind the Realtek RTL815x Ethernet controllers to the CDC ECM driver. The
driver is sorted last so should work as a fallback after the r8152
driver.

Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
---
 drivers/usb/eth/cdc_ecm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/usb/eth/cdc_ecm.c b/drivers/usb/eth/cdc_ecm.c
index 3d2212be73cc..992eb7ba9cfd 100644
--- a/drivers/usb/eth/cdc_ecm.c
+++ b/drivers/usb/eth/cdc_ecm.c
@@ -278,6 +278,11 @@ U_BOOT_DRIVER(usb_cdc_2_ecm) = {
 static const struct usb_device_id cdc_ecm_id_table[] = {
 	/* ASIX AX88179A, AX88772D, AX88279 */
 	{ USB_DEVICE_VER(0x0b95, 0x1790, 0x0200, 0x0400), },
+	/* Realtek RTL8152, RTL8153, RTL8156, RTL8157 */
+	{ USB_DEVICE(0x0bda, 0x8152), },
+	{ USB_DEVICE(0x0bda, 0x8153), },
+	{ USB_DEVICE(0x0bda, 0x8156), },
+	{ USB_DEVICE(0x0bda, 0x8157), },
 	/* CDC ECM */
 	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ETHERNET,
 			     USB_CDC_PROTO_NONE), },
-- 
2.54.0



More information about the U-Boot mailing list