Skip to contentSkip to conversation

Fix for new version of realtek r8153

PATCH In review jake Briggs 2 participants 2 messages May 2, 2017 – May 3, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix for new version of realtek r8153

From: jake <[email protected]>

Fix for new version of realtek r8153 not being recognised by the r8152
driver. The new version of the device with idVendor=0bda, idProduct=8153 is 6010 and treating it as if it was a 5c30 allow it to work.

Error log:

Apr 19 09:55:13 devotron kernel: [  330.167074] usb 2-2.2: New USB
device found, idVendor=0bda, idProduct=8153
Apr 19 09:55:13 devotron kernel: [  330.167078] usb 2-2.2: New USB
device strings: Mfr=1, Product=2, SerialNumber=6
Apr 19 09:55:13 devotron kernel: [  330.167080] usb 2-2.2: Product: USB
10/100/1000 LAN
Apr 19 09:55:13 devotron kernel: [  330.167081] usb 2-2.2: Manufacturer:
Realtek
Apr 19 09:55:13 devotron kernel: [  330.167083] usb 2-2.2: SerialNumber:
001000001
Apr 19 09:55:13 devotron kernel: [  330.258781] usb 2-2.2: reset
SuperSpeed USB device number 5 using xhci_hcd
Apr 19 09:55:13 devotron kernel: [  330.279430] r8152 2-2.2:1.0 (unnamed
net_device) (uninitialized): Unknown version 0x6010
Apr 19 09:55:13 devotron kernel: [  330.279434] r8152 2-2.2:1.0 (unnamed

net_device) (uninitialized): Unknown Device

---
 drivers/net/usb/r8152.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/usb/r8152.c +1 -0
index 07f788c49d57..2a55459fdfac 100644
@@ -4277,6 +4277,7 @@ static void r8152b_get_version(struct r8152 *tp)
 		tp->mii.supports_gmii = 1;
 		break;
 	case 0x5c30:
+	case 0x6010:	
 		tp->version = RTL_VER_06;
 		tp->mii.supports_gmii = 1;
 		break;
Signature · 1 line
2.11.0
#1 lore raw

jake Briggs [mailto:[email protected]]

Quoted 1 line

Sent: Wednesday, May 03, 2017 7:21 AM

[...]

drivers/net/usb/r8152.c static void r8152b_get_version(struct r8152 *tp) · line 4280

Quoted 9 lines
drivers/net/usb/r8152.c +1 -0
index 07f788c49d57..2a55459fdfac 100644
@@ -4277,6 +4277,7 @@ static void r8152b_get_version(struct r8152 *tp)
 		tp->mii.supports_gmii = 1;
 		break;
 	case 0x5c30:
+	case 0x6010:

The two chips are different. I don't think it is a good idea. Maybe you could use the driver from the Realtek website first.

drivers/net/usb/r8152.c static void r8152b_get_version(struct r8152 *tp) · line 4283

Quoted 3 lines
drivers/net/usb/r8152.c +0 -0
 		tp->version = RTL_VER_06;
 		tp->mii.supports_gmii = 1;
 		break;

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html