aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2012-04-23 13:08:51 -0400
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2012-05-18 18:42:55 -0400
commite1f12eb6ba6f1e74007eb01ed26fad7c5239d62b (patch)
tree4c6753fc5091cd31b8cc0029e41f86f4f8c3b195 /drivers/net/usb
parente3567d2c15a7a8e2f992a5f7c7683453ca406d82 (diff)
USB: Disable hub-initiated LPM for comms devices.
Hub-initiated LPM is not good for USB communications devices. Comms devices should be able to tell when their link can go into a lower power state, because they know when an incoming transmission is finished. Ideally, these devices would slam their links into a lower power state, using the device-initiated LPM, after finishing the last packet of their data transfer. If we enable the idle timeouts for the parent hubs to enable hub-initiated LPM, we will get a lot of useless LPM packets on the bus as the devices reject LPM transitions when they're in the middle of receiving data. Worse, some devices might blindly accept the hub-initiated LPM and power down their radios while they're in the middle of receiving a transmission. The Intel Windows folks are disabling hub-initiated LPM for all USB communications devices under a xHCI USB 3.0 host. In order to keep the Linux behavior as close as possible to Windows, we need to do the same in Linux. Set the disable_hub_initiated_lpm flag for for all USB communications drivers. I know there aren't currently any USB 3.0 devices that implement these class specifications, but we should be ready if they do. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Cc: Marcel Holtmann <marcel@holtmann.org> Cc: Gustavo Padovan <gustavo@padovan.org> Cc: Johan Hedberg <johan.hedberg@gmail.com> Cc: Hansjoerg Lipp <hjlipp@web.de> Cc: Tilman Schmidt <tilman@imap.cc> Cc: Karsten Keil <isdn@linux-pingi.de> Cc: Peter Korsgaard <jacmet@sunsite.dk> Cc: Jan Dumon <j.dumon@option.com> Cc: Petko Manolov <petkan@users.sourceforge.net> Cc: Steve Glendinning <steve.glendinning@smsc.com> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Kalle Valo <kvalo@qca.qualcomm.com> Cc: "Luis R. Rodriguez" <mcgrof@qca.qualcomm.com> Cc: Jouni Malinen <jouni@qca.qualcomm.com> Cc: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Cc: Senthil Balasubramanian <senthilb@qca.qualcomm.com> Cc: Christian Lamparter <chunkeey@googlemail.com> Cc: Brett Rudley <brudley@broadcom.com> Cc: Roland Vossen <rvossen@broadcom.com> Cc: Arend van Spriel <arend@broadcom.com> Cc: "Franky (Zhenhui) Lin" <frankyl@broadcom.com> Cc: Kan Yan <kanyan@broadcom.com> Cc: Dan Williams <dcbw@redhat.com> Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Cc: Ivo van Doorn <IvDoorn@gmail.com> Cc: Gertjan van Wingerde <gwingerde@gmail.com> Cc: Helmut Schaa <helmut.schaa@googlemail.com> Cc: Herton Ronaldo Krzesinski <herton@canonical.com> Cc: Hin-Tak Leung <htl10@users.sourceforge.net> Cc: Larry Finger <Larry.Finger@lwfinger.net> Cc: Chaoming Li <chaoming_li@realsil.com.cn> Cc: Daniel Drake <dsd@gentoo.org> Cc: Ulrich Kunitz <kune@deine-taler.de> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/asix.c1
-rw-r--r--drivers/net/usb/catc.c1
-rw-r--r--drivers/net/usb/cdc-phonet.c1
-rw-r--r--drivers/net/usb/cdc_eem.c1
-rw-r--r--drivers/net/usb/cdc_ether.c1
-rw-r--r--drivers/net/usb/cdc_ncm.c1
-rw-r--r--drivers/net/usb/cdc_subset.c1
-rw-r--r--drivers/net/usb/cx82310_eth.c1
-rw-r--r--drivers/net/usb/dm9601.c1
-rw-r--r--drivers/net/usb/gl620a.c1
-rw-r--r--drivers/net/usb/hso.c1
-rw-r--r--drivers/net/usb/int51x1.c1
-rw-r--r--drivers/net/usb/ipheth.c1
-rw-r--r--drivers/net/usb/kalmia.c3
-rw-r--r--drivers/net/usb/kaweth.c1
-rw-r--r--drivers/net/usb/lg-vl600.c1
-rw-r--r--drivers/net/usb/mcs7830.c1
-rw-r--r--drivers/net/usb/net1080.c1
-rw-r--r--drivers/net/usb/pegasus.c1
-rw-r--r--drivers/net/usb/plusb.c1
-rw-r--r--drivers/net/usb/qmi_wwan.c1
-rw-r--r--drivers/net/usb/rndis_host.c1
-rw-r--r--drivers/net/usb/rtl8150.c3
-rw-r--r--drivers/net/usb/sierra_net.c1
-rw-r--r--drivers/net/usb/smsc75xx.c1
-rw-r--r--drivers/net/usb/smsc95xx.c1
-rw-r--r--drivers/net/usb/zaurus.c1
27 files changed, 29 insertions, 2 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index 42b5151aa78a..71e2b0523bc2 100644
--- a/drivers/net/usb/asix.c
+++ b/drivers/net/usb/asix.c
@@ -1647,6 +1647,7 @@ static struct usb_driver asix_driver = {
1647 .resume = usbnet_resume, 1647 .resume = usbnet_resume,
1648 .disconnect = usbnet_disconnect, 1648 .disconnect = usbnet_disconnect,
1649 .supports_autosuspend = 1, 1649 .supports_autosuspend = 1,
1650 .disable_hub_initiated_lpm = 1,
1650}; 1651};
1651 1652
1652module_usb_driver(asix_driver); 1653module_usb_driver(asix_driver);
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c
index 5a73730b32eb..26c5bebd9eca 100644
--- a/drivers/net/usb/catc.c
+++ b/drivers/net/usb/catc.c
@@ -952,6 +952,7 @@ static struct usb_driver catc_driver = {
952 .probe = catc_probe, 952 .probe = catc_probe,
953 .disconnect = catc_disconnect, 953 .disconnect = catc_disconnect,
954 .id_table = catc_id_table, 954 .id_table = catc_id_table,
955 .disable_hub_initiated_lpm = 1,
955}; 956};
956 957
957module_usb_driver(catc_driver); 958module_usb_driver(catc_driver);
diff --git a/drivers/net/usb/cdc-phonet.c b/drivers/net/usb/cdc-phonet.c
index 3e41b00c6806..d848d4dd5754 100644
--- a/drivers/net/usb/cdc-phonet.c
+++ b/drivers/net/usb/cdc-phonet.c
@@ -457,6 +457,7 @@ static struct usb_driver usbpn_driver = {
457 .probe = usbpn_probe, 457 .probe = usbpn_probe,
458 .disconnect = usbpn_disconnect, 458 .disconnect = usbpn_disconnect,
459 .id_table = usbpn_ids, 459 .id_table = usbpn_ids,
460 .disable_hub_initiated_lpm = 1,
460}; 461};
461 462
462module_usb_driver(usbpn_driver); 463module_usb_driver(usbpn_driver);
diff --git a/drivers/net/usb/cdc_eem.c b/drivers/net/usb/cdc_eem.c
index 685a4e22c768..434d5af8e6fb 100644
--- a/drivers/net/usb/cdc_eem.c
+++ b/drivers/net/usb/cdc_eem.c
@@ -368,6 +368,7 @@ static struct usb_driver eem_driver = {
368 .disconnect = usbnet_disconnect, 368 .disconnect = usbnet_disconnect,
369 .suspend = usbnet_suspend, 369 .suspend = usbnet_suspend,
370 .resume = usbnet_resume, 370 .resume = usbnet_resume,
371 .disable_hub_initiated_lpm = 1,
371}; 372};
372 373
373module_usb_driver(eem_driver); 374module_usb_driver(eem_driver);
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 00880edba048..04997320862a 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -633,6 +633,7 @@ static struct usb_driver cdc_driver = {
633 .resume = usbnet_resume, 633 .resume = usbnet_resume,
634 .reset_resume = usbnet_resume, 634 .reset_resume = usbnet_resume,
635 .supports_autosuspend = 1, 635 .supports_autosuspend = 1,
636 .disable_hub_initiated_lpm = 1,
636}; 637};
637 638
638module_usb_driver(cdc_driver); 639module_usb_driver(cdc_driver);
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
index 7adc9f6b0ea1..4b9513fcf275 100644
--- a/drivers/net/usb/cdc_ncm.c
+++ b/drivers/net/usb/cdc_ncm.c
@@ -1212,6 +1212,7 @@ static struct usb_driver cdc_ncm_driver = {
1212 .resume = usbnet_resume, 1212 .resume = usbnet_resume,
1213 .reset_resume = usbnet_resume, 1213 .reset_resume = usbnet_resume,
1214 .supports_autosuspend = 1, 1214 .supports_autosuspend = 1,
1215 .disable_hub_initiated_lpm = 1,
1215}; 1216};
1216 1217
1217static const struct ethtool_ops cdc_ncm_ethtool_ops = { 1218static const struct ethtool_ops cdc_ncm_ethtool_ops = {
diff --git a/drivers/net/usb/cdc_subset.c b/drivers/net/usb/cdc_subset.c
index b403d934e4e3..0d1fe89ae0bd 100644
--- a/drivers/net/usb/cdc_subset.c
+++ b/drivers/net/usb/cdc_subset.c
@@ -336,6 +336,7 @@ static struct usb_driver cdc_subset_driver = {
336 .resume = usbnet_resume, 336 .resume = usbnet_resume,
337 .disconnect = usbnet_disconnect, 337 .disconnect = usbnet_disconnect,
338 .id_table = products, 338 .id_table = products,
339 .disable_hub_initiated_lpm = 1,
339}; 340};
340 341
341module_usb_driver(cdc_subset_driver); 342module_usb_driver(cdc_subset_driver);
diff --git a/drivers/net/usb/cx82310_eth.c b/drivers/net/usb/cx82310_eth.c
index 0e0531356e62..49ab45e17fe8 100644
--- a/drivers/net/usb/cx82310_eth.c
+++ b/drivers/net/usb/cx82310_eth.c
@@ -327,6 +327,7 @@ static struct usb_driver cx82310_driver = {
327 .disconnect = usbnet_disconnect, 327 .disconnect = usbnet_disconnect,
328 .suspend = usbnet_suspend, 328 .suspend = usbnet_suspend,
329 .resume = usbnet_resume, 329 .resume = usbnet_resume,
330 .disable_hub_initiated_lpm = 1,
330}; 331};
331 332
332module_usb_driver(cx82310_driver); 333module_usb_driver(cx82310_driver);
diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c
index b97226318ea5..e0433ce6ced7 100644
--- a/drivers/net/usb/dm9601.c
+++ b/drivers/net/usb/dm9601.c
@@ -670,6 +670,7 @@ static struct usb_driver dm9601_driver = {
670 .disconnect = usbnet_disconnect, 670 .disconnect = usbnet_disconnect,
671 .suspend = usbnet_suspend, 671 .suspend = usbnet_suspend,
672 .resume = usbnet_resume, 672 .resume = usbnet_resume,
673 .disable_hub_initiated_lpm = 1,
673}; 674};
674 675
675module_usb_driver(dm9601_driver); 676module_usb_driver(dm9601_driver);
diff --git a/drivers/net/usb/gl620a.c b/drivers/net/usb/gl620a.c
index 38266bdae26b..db3c8021f2a3 100644
--- a/drivers/net/usb/gl620a.c
+++ b/drivers/net/usb/gl620a.c
@@ -225,6 +225,7 @@ static struct usb_driver gl620a_driver = {
225 .disconnect = usbnet_disconnect, 225 .disconnect = usbnet_disconnect,
226 .suspend = usbnet_suspend, 226 .suspend = usbnet_suspend,
227 .resume = usbnet_resume, 227 .resume = usbnet_resume,
228 .disable_hub_initiated_lpm = 1,
228}; 229};
229 230
230module_usb_driver(gl620a_driver); 231module_usb_driver(gl620a_driver);
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index 2d2a6882ba33..042c1a99520f 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -3291,6 +3291,7 @@ static struct usb_driver hso_driver = {
3291 .resume = hso_resume, 3291 .resume = hso_resume,
3292 .reset_resume = hso_resume, 3292 .reset_resume = hso_resume,
3293 .supports_autosuspend = 1, 3293 .supports_autosuspend = 1,
3294 .disable_hub_initiated_lpm = 1,
3294}; 3295};
3295 3296
3296static int __init hso_init(void) 3297static int __init hso_init(void)
diff --git a/drivers/net/usb/int51x1.c b/drivers/net/usb/int51x1.c
index 12a22a453ff1..8de641713d5f 100644
--- a/drivers/net/usb/int51x1.c
+++ b/drivers/net/usb/int51x1.c
@@ -236,6 +236,7 @@ static struct usb_driver int51x1_driver = {
236 .disconnect = usbnet_disconnect, 236 .disconnect = usbnet_disconnect,
237 .suspend = usbnet_suspend, 237 .suspend = usbnet_suspend,
238 .resume = usbnet_resume, 238 .resume = usbnet_resume,
239 .disable_hub_initiated_lpm = 1,
239}; 240};
240 241
241module_usb_driver(int51x1_driver); 242module_usb_driver(int51x1_driver);
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c
index 32519e5a7b97..964031e3da87 100644
--- a/drivers/net/usb/ipheth.c
+++ b/drivers/net/usb/ipheth.c
@@ -554,6 +554,7 @@ static struct usb_driver ipheth_driver = {
554 .probe = ipheth_probe, 554 .probe = ipheth_probe,
555 .disconnect = ipheth_disconnect, 555 .disconnect = ipheth_disconnect,
556 .id_table = ipheth_table, 556 .id_table = ipheth_table,
557 .disable_hub_initiated_lpm = 1,
557}; 558};
558 559
559module_usb_driver(ipheth_driver); 560module_usb_driver(ipheth_driver);
diff --git a/drivers/net/usb/kalmia.c b/drivers/net/usb/kalmia.c
index 7562649b3d6b..92c49e0a59ec 100644
--- a/drivers/net/usb/kalmia.c
+++ b/drivers/net/usb/kalmia.c
@@ -372,7 +372,8 @@ static struct usb_driver kalmia_driver = {
372 .probe = usbnet_probe, 372 .probe = usbnet_probe,
373 .disconnect = usbnet_disconnect, 373 .disconnect = usbnet_disconnect,
374 .suspend = usbnet_suspend, 374 .suspend = usbnet_suspend,
375 .resume = usbnet_resume 375 .resume = usbnet_resume,
376 .disable_hub_initiated_lpm = 1,
376}; 377};
377 378
378module_usb_driver(kalmia_driver); 379module_usb_driver(kalmia_driver);
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c
index b8baf0858515..d8ad55284389 100644
--- a/drivers/net/usb/kaweth.c
+++ b/drivers/net/usb/kaweth.c
@@ -179,6 +179,7 @@ static struct usb_driver kaweth_driver = {
179 .resume = kaweth_resume, 179 .resume = kaweth_resume,
180 .id_table = usb_klsi_table, 180 .id_table = usb_klsi_table,
181 .supports_autosuspend = 1, 181 .supports_autosuspend = 1,
182 .disable_hub_initiated_lpm = 1,
182}; 183};
183 184
184typedef __u8 eth_addr_t[6]; 185typedef __u8 eth_addr_t[6];
diff --git a/drivers/net/usb/lg-vl600.c b/drivers/net/usb/lg-vl600.c
index 45a981fde43f..808d6506da41 100644
--- a/drivers/net/usb/lg-vl600.c
+++ b/drivers/net/usb/lg-vl600.c
@@ -344,6 +344,7 @@ static struct usb_driver lg_vl600_driver = {
344 .disconnect = usbnet_disconnect, 344 .disconnect = usbnet_disconnect,
345 .suspend = usbnet_suspend, 345 .suspend = usbnet_suspend,
346 .resume = usbnet_resume, 346 .resume = usbnet_resume,
347 .disable_hub_initiated_lpm = 1,
347}; 348};
348 349
349module_usb_driver(lg_vl600_driver); 350module_usb_driver(lg_vl600_driver);
diff --git a/drivers/net/usb/mcs7830.c b/drivers/net/usb/mcs7830.c
index c434b6ba0337..add1064f755d 100644
--- a/drivers/net/usb/mcs7830.c
+++ b/drivers/net/usb/mcs7830.c
@@ -690,6 +690,7 @@ static struct usb_driver mcs7830_driver = {
690 .suspend = usbnet_suspend, 690 .suspend = usbnet_suspend,
691 .resume = usbnet_resume, 691 .resume = usbnet_resume,
692 .reset_resume = mcs7830_reset_resume, 692 .reset_resume = mcs7830_reset_resume,
693 .disable_hub_initiated_lpm = 1,
693}; 694};
694 695
695module_usb_driver(mcs7830_driver); 696module_usb_driver(mcs7830_driver);
diff --git a/drivers/net/usb/net1080.c b/drivers/net/usb/net1080.c
index 83f965cb69e7..28c4d513ba85 100644
--- a/drivers/net/usb/net1080.c
+++ b/drivers/net/usb/net1080.c
@@ -587,6 +587,7 @@ static struct usb_driver net1080_driver = {
587 .disconnect = usbnet_disconnect, 587 .disconnect = usbnet_disconnect,
588 .suspend = usbnet_suspend, 588 .suspend = usbnet_suspend,
589 .resume = usbnet_resume, 589 .resume = usbnet_resume,
590 .disable_hub_initiated_lpm = 1,
590}; 591};
591 592
592module_usb_driver(net1080_driver); 593module_usb_driver(net1080_driver);
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c
index 752393092325..7023220456c5 100644
--- a/drivers/net/usb/pegasus.c
+++ b/drivers/net/usb/pegasus.c
@@ -1489,6 +1489,7 @@ static struct usb_driver pegasus_driver = {
1489 .id_table = pegasus_ids, 1489 .id_table = pegasus_ids,
1490 .suspend = pegasus_suspend, 1490 .suspend = pegasus_suspend,
1491 .resume = pegasus_resume, 1491 .resume = pegasus_resume,
1492 .disable_hub_initiated_lpm = 1,
1492}; 1493};
1493 1494
1494static void __init parse_id(char *id) 1495static void __init parse_id(char *id)
diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c
index b2b035e29978..4584b9a805b3 100644
--- a/drivers/net/usb/plusb.c
+++ b/drivers/net/usb/plusb.c
@@ -152,6 +152,7 @@ static struct usb_driver plusb_driver = {
152 .disconnect = usbnet_disconnect, 152 .disconnect = usbnet_disconnect,
153 .suspend = usbnet_suspend, 153 .suspend = usbnet_suspend,
154 .resume = usbnet_resume, 154 .resume = usbnet_resume,
155 .disable_hub_initiated_lpm = 1,
155}; 156};
156 157
157module_usb_driver(plusb_driver); 158module_usb_driver(plusb_driver);
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index d316503b35d4..9048efed46db 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -525,6 +525,7 @@ static struct usb_driver qmi_wwan_driver = {
525 .resume = qmi_wwan_resume, 525 .resume = qmi_wwan_resume,
526 .reset_resume = qmi_wwan_resume, 526 .reset_resume = qmi_wwan_resume,
527 .supports_autosuspend = 1, 527 .supports_autosuspend = 1,
528 .disable_hub_initiated_lpm = 1,
528}; 529};
529 530
530static int __init qmi_wwan_init(void) 531static int __init qmi_wwan_init(void)
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c
index c8f1b5b3aff3..446d074ad7d0 100644
--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -633,6 +633,7 @@ static struct usb_driver rndis_driver = {
633 .disconnect = usbnet_disconnect, 633 .disconnect = usbnet_disconnect,
634 .suspend = usbnet_suspend, 634 .suspend = usbnet_suspend,
635 .resume = usbnet_resume, 635 .resume = usbnet_resume,
636 .disable_hub_initiated_lpm = 1,
636}; 637};
637 638
638module_usb_driver(rndis_driver); 639module_usb_driver(rndis_driver);
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
index 65854cdcedc8..0e2c92e0e532 100644
--- a/drivers/net/usb/rtl8150.c
+++ b/drivers/net/usb/rtl8150.c
@@ -948,7 +948,8 @@ static struct usb_driver rtl8150_driver = {
948 .disconnect = rtl8150_disconnect, 948 .disconnect = rtl8150_disconnect,
949 .id_table = rtl8150_table, 949 .id_table = rtl8150_table,
950 .suspend = rtl8150_suspend, 950 .suspend = rtl8150_suspend,
951 .resume = rtl8150_resume 951 .resume = rtl8150_resume,
952 .disable_hub_initiated_lpm = 1,
952}; 953};
953 954
954module_usb_driver(rtl8150_driver); 955module_usb_driver(rtl8150_driver);
diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c
index b59cf20c7817..3faef5670d1f 100644
--- a/drivers/net/usb/sierra_net.c
+++ b/drivers/net/usb/sierra_net.c
@@ -982,6 +982,7 @@ static struct usb_driver sierra_net_driver = {
982 .suspend = usbnet_suspend, 982 .suspend = usbnet_suspend,
983 .resume = usbnet_resume, 983 .resume = usbnet_resume,
984 .no_dynamic_id = 1, 984 .no_dynamic_id = 1,
985 .disable_hub_initiated_lpm = 1,
985}; 986};
986 987
987module_usb_driver(sierra_net_driver); 988module_usb_driver(sierra_net_driver);
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c
index 00103a8c5e04..1fb4ddb2ccbf 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -1250,6 +1250,7 @@ static struct usb_driver smsc75xx_driver = {
1250 .suspend = usbnet_suspend, 1250 .suspend = usbnet_suspend,
1251 .resume = usbnet_resume, 1251 .resume = usbnet_resume,
1252 .disconnect = usbnet_disconnect, 1252 .disconnect = usbnet_disconnect,
1253 .disable_hub_initiated_lpm = 1,
1253}; 1254};
1254 1255
1255module_usb_driver(smsc75xx_driver); 1256module_usb_driver(smsc75xx_driver);
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 94ae66999f59..b1112e753859 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -1297,6 +1297,7 @@ static struct usb_driver smsc95xx_driver = {
1297 .suspend = usbnet_suspend, 1297 .suspend = usbnet_suspend,
1298 .resume = usbnet_resume, 1298 .resume = usbnet_resume,
1299 .disconnect = usbnet_disconnect, 1299 .disconnect = usbnet_disconnect,
1300 .disable_hub_initiated_lpm = 1,
1300}; 1301};
1301 1302
1302module_usb_driver(smsc95xx_driver); 1303module_usb_driver(smsc95xx_driver);
diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c
index 34db195fb8b0..35c90307d473 100644
--- a/drivers/net/usb/zaurus.c
+++ b/drivers/net/usb/zaurus.c
@@ -377,6 +377,7 @@ static struct usb_driver zaurus_driver = {
377 .disconnect = usbnet_disconnect, 377 .disconnect = usbnet_disconnect,
378 .suspend = usbnet_suspend, 378 .suspend = usbnet_suspend,
379 .resume = usbnet_resume, 379 .resume = usbnet_resume,
380 .disable_hub_initiated_lpm = 1,
380}; 381};
381 382
382module_usb_driver(zaurus_driver); 383module_usb_driver(zaurus_driver);