diff options
author | Hayes Wang <hayeswang@realtek.com> | 2023-05-02 06:36:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-20 19:00:29 +0300 |
commit | 325556d46bfd13a2fa0d304d0625be86821fd683 (patch) | |
tree | e2590a95fc63e6612cb034c243f4ed36a828ac0f | |
parent | 4c2ad8e39c62c5288ca31ebf5c30e34f3bd9d044 (diff) | |
download | linux-325556d46bfd13a2fa0d304d0625be86821fd683.tar.xz |
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 <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/net/usb/r8152.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index f11e465b9fdb..958a02b19554 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -9940,6 +9940,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) |