summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorTorgny Johansson <torgny.johansson@ericsson.com>2010-04-27 17:07:40 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-12 15:02:56 -0700
commit5b0dede91684c855ab8e6abe7fa3513282f60fb6 (patch)
treece193fb238c5c9209fc551cb431b2b82c65ff68a /drivers/net/usb
parent2afddab2958e63289a538985bfd8b584502de37b (diff)
downloadkernel-crypto-5b0dede91684c855ab8e6abe7fa3513282f60fb6.tar.gz
kernel-crypto-5b0dede91684c855ab8e6abe7fa3513282f60fb6.tar.xz
kernel-crypto-5b0dede91684c855ab8e6abe7fa3513282f60fb6.zip
cdc_ether: fix autosuspend for mbm devices
[ 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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/cdc_ether.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 5f3b9eaeb04..8a6e0273632 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -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,
};
/*-------------------------------------------------------------------------*/