b4d5b8bdb91519a350f2ffd864139814bae327d0
[openwrt/staging/stintel.git] / target / linux / generic / backport-6.1 / 795-v6.4-07-r8152-fix-the-autosuspend-doesn-t-work.patch
1 From 0fbd79c01a9a657348f7032df70c57a406468c86 Mon Sep 17 00:00:00 2001
2 From: Hayes Wang <hayeswang@realtek.com>
3 Date: Tue, 2 May 2023 11:36:27 +0800
4 Subject: [PATCH] r8152: fix the autosuspend doesn't work
5
6 Set supports_autosuspend = 1 for the rtl8152_cfgselector_driver.
7
8 Fixes: ec51fbd1b8a2 ("r8152: add USB device driver for config selection")
9 Signed-off-by: Hayes Wang <hayeswang@realtek.com>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
11 ---
12 drivers/net/usb/r8152.c | 1 +
13 1 file changed, 1 insertion(+)
14
15 --- a/drivers/net/usb/r8152.c
16 +++ b/drivers/net/usb/r8152.c
17 @@ -9925,6 +9925,7 @@ static struct usb_device_driver rtl8152_
18 .probe = rtl8152_cfgselector_probe,
19 .id_table = rtl8152_table,
20 .generic_subclass = 1,
21 + .supports_autosuspend = 1,
22 };
23
24 static int __init rtl8152_driver_init(void)