mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 00:11:13 +00:00
4b26ba4155
Deleted (upstreamed): bcm53xx/patches-5.10/081-v5.15-Revert-pinctrl-bcm-ns-support-updated-DT-binding-as-.patch [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.10.y&id=01c2881bb0e0a71b87ca425e1b763ac13855aa7e Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
48 lines
1.4 KiB
Diff
48 lines
1.4 KiB
Diff
From 69b4339c0b9f3edc6a8f681f05efaaf4add1bb0e Mon Sep 17 00:00:00 2001
|
|
From: Hayes Wang <hayeswang@realtek.com>
|
|
Date: Fri, 19 Feb 2021 17:04:40 +0800
|
|
Subject: [PATCH] r8152: enable U1/U2 for USB_SPEED_SUPER
|
|
|
|
commit 7a0ae61acde2cebd69665837170405eced86a6c7 upstream.
|
|
|
|
U1/U2 shoued be enabled for USB 3.0 or later. The USB 2.0 doesn't
|
|
support it.
|
|
|
|
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
|
|
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
|
---
|
|
drivers/net/usb/r8152.c | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
--- a/drivers/net/usb/r8152.c
|
|
+++ b/drivers/net/usb/r8152.c
|
|
@@ -3336,7 +3336,7 @@ static void rtl8153b_runtime_enable(stru
|
|
r8153b_ups_en(tp, false);
|
|
r8153_queue_wake(tp, false);
|
|
rtl_runtime_suspend_enable(tp, false);
|
|
- if (tp->udev->speed != USB_SPEED_HIGH)
|
|
+ if (tp->udev->speed >= USB_SPEED_SUPER)
|
|
r8153b_u1u2en(tp, true);
|
|
}
|
|
}
|
|
@@ -5029,7 +5029,7 @@ static void rtl8153b_up(struct r8152 *tp
|
|
|
|
r8153_aldps_en(tp, true);
|
|
|
|
- if (tp->udev->speed != USB_SPEED_HIGH)
|
|
+ if (tp->udev->speed >= USB_SPEED_SUPER)
|
|
r8153b_u1u2en(tp, true);
|
|
}
|
|
|
|
@@ -5571,8 +5571,9 @@ static void r8153b_init(struct r8152 *tp
|
|
ocp_data |= POLL_LINK_CHG;
|
|
ocp_write_word(tp, MCU_TYPE_PLA, PLA_EXTRA_STATUS, ocp_data);
|
|
|
|
- if (tp->udev->speed != USB_SPEED_HIGH)
|
|
+ if (tp->udev->speed >= USB_SPEED_SUPER)
|
|
r8153b_u1u2en(tp, true);
|
|
+
|
|
usb_enable_lpm(tp->udev);
|
|
|
|
/* MAC clock speed down */
|