From: Torgny Johansson Date: Wed, 28 Apr 2010 00:07:40 +0000 (-0700) Subject: cdc_ether: fix autosuspend for mbm devices X-Git-Tag: v2.6.34-rc6~13^2~10 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=55964d72d63b15df49a5df11ef91dc8601270815;p=~shefty%2Frdma-dev.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index c8cdb7f30ad..3547cf13d21 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -431,6 +431,7 @@ static const struct driver_info mbm_info = { .bind = cdc_bind, .unbind = usbnet_cdc_unbind, .status = cdc_status, + .manage_power = cdc_manage_power, }; /*-------------------------------------------------------------------------*/