cdc_ether: fix autosuspend for mbm devices
authorTorgny Johansson <torgny.johansson@ericsson.com>
Wed, 28 Apr 2010 00:07:40 +0000 (17:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:56 +0000 (15:02 -0700)
[ Upstream commit 55964d72d63b15df49a5df11ef91dc8601270815 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/usb/cdc_ether.c

index 5f3b9eaeb04fbc76ea1a721931d331ebe6e4ccd1..8a6e0273632401314c14a5f83090daea83d4e468 100644 (file)
@@ -433,6 +433,7 @@ static const struct driver_info mbm_info = {
        .bind =         cdc_bind,
        .unbind =       usbnet_cdc_unbind,
        .status =       cdc_status,
+       .manage_power = cdc_manage_power,
 };
 
 /*-------------------------------------------------------------------------*/