RE: [PATCH] Fix for new version of realtek r8153

From: Hayes Wang
Date: Wed May 03 2017 - 05:18:57 EST


jake Briggs [mailto:nexussix@xxxxxxxxx]
> Sent: Wednesday, May 03, 2017 7:21 AM
[...]
> diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
> index 07f788c49d57..2a55459fdfac 100644
> --- a/drivers/net/usb/r8152.c
> +++ b/drivers/net/usb/r8152.c
> @@ -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.

> tp->version = RTL_VER_06;
> tp->mii.supports_gmii = 1;
> break;