From: Hayes Wang Date: Tue, 2 May 2023 03:36:27 +0000 (+0800) Subject: r8152: fix the autosuspend doesn't work X-Git-Tag: v5.15.144~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c117984824b4a852a0e0765e5bdea0f1c7d6309;p=thirdparty%2Fkernel%2Fstable.git r8152: fix the autosuspend doesn't work 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index fc4fb809caba0..e8fd743a1509d 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -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)