]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
r8152: fix the autosuspend doesn't work
authorHayes Wang <hayeswang@realtek.com>
Tue, 2 May 2023 03:36:27 +0000 (11:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 14:17:43 +0000 (15:17 +0100)
commit 0fbd79c01a9a657348f7032df70c57a406468c86 upstream.

Set supports_autosuspend = 1 for the rtl8152_cfgselector_driver.

Fixes: ec51fbd1b8a2 ("r8152: add USB device driver for config selection")
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/r8152.c

index fc4fb809caba00f3750f5a2483f6ff3db398c480..e8fd743a1509ddde65b8679bd57d9d60df7daf0f 100644 (file)
@@ -9913,6 +9913,7 @@ static struct usb_device_driver rtl8152_cfgselector_driver = {
        .probe =        rtl8152_cfgselector_probe,
        .id_table =     rtl8152_table,
        .generic_subclass = 1,
+       .supports_autosuspend = 1,
 };
 
 static int __init rtl8152_driver_init(void)