795-v6.4-07-r8152-fix-the-autosuspend-doesn-t-work.patch 813 B

123456789101112131415161718192021222324
  1. From 0fbd79c01a9a657348f7032df70c57a406468c86 Mon Sep 17 00:00:00 2001
  2. From: Hayes Wang <[email protected]>
  3. Date: Tue, 2 May 2023 11:36:27 +0800
  4. Subject: [PATCH] r8152: fix the autosuspend doesn't work
  5. Set supports_autosuspend = 1 for the rtl8152_cfgselector_driver.
  6. Fixes: ec51fbd1b8a2 ("r8152: add USB device driver for config selection")
  7. Signed-off-by: Hayes Wang <[email protected]>
  8. Signed-off-by: David S. Miller <[email protected]>
  9. ---
  10. drivers/net/usb/r8152.c | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/drivers/net/usb/r8152.c
  13. +++ b/drivers/net/usb/r8152.c
  14. @@ -9912,6 +9912,7 @@ static struct usb_device_driver rtl8152_
  15. .probe = rtl8152_cfgselector_probe,
  16. .id_table = rtl8152_table,
  17. .generic_subclass = 1,
  18. + .supports_autosuspend = 1,
  19. };
  20. static int __init rtl8152_driver_init(void)