rtl8152: correct speed testing
authorOliver Neukum <oneukum@suse.com>
Mon, 2 May 2016 11:06:14 +0000 (13:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 19:49:34 +0000 (15:49 -0400)
Allow for SS+ USB

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index d1f78c2c97aaf9bcfded27cd0fb826608579a6d2..3f9f6ed3eec4de5c14e43039e08d53b209e52cb4 100644 (file)
@@ -3366,7 +3366,7 @@ static void r8153_init(struct r8152 *tp)
        ocp_write_word(tp, MCU_TYPE_PLA, PLA_LED_FEATURE, ocp_data);
 
        ocp_data = FIFO_EMPTY_1FB | ROK_EXIT_LPM;
-       if (tp->version == RTL_VER_04 && tp->udev->speed != USB_SPEED_SUPER)
+       if (tp->version == RTL_VER_04 && tp->udev->speed < USB_SPEED_SUPER)
                ocp_data |= LPM_TIMER_500MS;
        else
                ocp_data |= LPM_TIMER_500US;
@@ -4211,6 +4211,7 @@ static int rtl8152_probe(struct usb_interface *intf,
 
        switch (udev->speed) {
        case USB_SPEED_SUPER:
+       case USB_SPEED_SUPER_PLUS:
                tp->coalesce = COALESCE_SUPER;
                break;
        case USB_SPEED_HIGH: