Skip to content

Commit

Permalink
r8152: fix the autosuspend doesn't work
Browse files Browse the repository at this point in the history
commit 0fbd79c upstream.

Set supports_autosuspend = 1 for the rtl8152_cfgselector_driver.

Fixes: ec51fbd ("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>
  • Loading branch information
hayesorz authored and gregkh committed Dec 20, 2023
1 parent 4c2ad8e commit 325556d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/usb/r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 325556d

Please sign in to comment.