diff options
author | Oliver Neukum <oneukum@suse.com> | 2016-05-02 13:06:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-03 15:49:34 -0400 |
commit | 2b84af94a3932b1dcb716d1898edb18b7325dbea (patch) | |
tree | b5a2d1c2089f6bf084bb513de15b1bf34ce512c7 /drivers | |
parent | ea0798423c60a1d34c75e5fedae009aee0a8de5f (diff) | |
download | linux-2b84af94a3932b1dcb716d1898edb18b7325dbea.tar.bz2 |
rtl8152: correct speed testing
Allow for SS+ USB
Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/r8152.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index d1f78c2c97aa..3f9f6ed3eec4 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -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: |