Skip to content

Commit 55964d7

Browse files
Torgny Johanssondavem330
authored andcommitted
cdc_ether: fix autosuspend for mbm devices
Autosuspend works until you bring the wwan interface up, then the device does not enter autosuspend anymore. The following patch fixes the problem by setting the .manage_power field in the mbm_info struct to the same as in the cdc_info struct (cdc_manager_power). Signed-off-by: Torgny Johansson <torgny.johansson@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 477fffb commit 55964d7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/net/usb/cdc_ether.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ static const struct driver_info mbm_info = {
431431
.bind = cdc_bind,
432432
.unbind = usbnet_cdc_unbind,
433433
.status = cdc_status,
434+
.manage_power = cdc_manage_power,
434435
};
435436

436437
/*-------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)