diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-04-23 13:08:51 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-05-18 18:42:55 -0400 |
commit | e1f12eb6ba6f1e74007eb01ed26fad7c5239d62b (patch) | |
tree | 4c6753fc5091cd31b8cc0029e41f86f4f8c3b195 /drivers/net | |
parent | e3567d2c15a7a8e2f992a5f7c7683453ca406d82 (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')
44 files changed, 46 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 | ||
1652 | module_usb_driver(asix_driver); | 1653 | module_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 | ||
957 | module_usb_driver(catc_driver); | 958 | module_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 | ||
462 | module_usb_driver(usbpn_driver); | 463 | module_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 | ||
373 | module_usb_driver(eem_driver); | 374 | module_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 | ||
638 | module_usb_driver(cdc_driver); | 639 | module_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 | ||
1217 | static const struct ethtool_ops cdc_ncm_ethtool_ops = { | 1218 | static 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 | ||
341 | module_usb_driver(cdc_subset_driver); | 342 | module_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 | ||
332 | module_usb_driver(cx82310_driver); | 333 | module_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 | ||
675 | module_usb_driver(dm9601_driver); | 676 | module_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 | ||
230 | module_usb_driver(gl620a_driver); | 231 | module_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 | ||
3296 | static int __init hso_init(void) | 3297 | static 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 | ||
241 | module_usb_driver(int51x1_driver); | 242 | module_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 | ||
559 | module_usb_driver(ipheth_driver); | 560 | module_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 | ||
378 | module_usb_driver(kalmia_driver); | 379 | module_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 | ||
184 | typedef __u8 eth_addr_t[6]; | 185 | typedef __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 | ||
349 | module_usb_driver(lg_vl600_driver); | 350 | module_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 | ||
695 | module_usb_driver(mcs7830_driver); | 696 | module_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 | ||
592 | module_usb_driver(net1080_driver); | 593 | module_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 | ||
1494 | static void __init parse_id(char *id) | 1495 | static 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 | ||
157 | module_usb_driver(plusb_driver); | 158 | module_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 | ||
530 | static int __init qmi_wwan_init(void) | 531 | static 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 | ||
638 | module_usb_driver(rndis_driver); | 639 | module_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 | ||
954 | module_usb_driver(rtl8150_driver); | 955 | module_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 | ||
987 | module_usb_driver(sierra_net_driver); | 988 | module_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 | ||
1255 | module_usb_driver(smsc75xx_driver); | 1256 | module_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 | ||
1302 | module_usb_driver(smsc95xx_driver); | 1303 | module_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 | ||
382 | module_usb_driver(zaurus_driver); | 383 | module_usb_driver(zaurus_driver); |
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index cc741b3cc024..9dcd49cfab94 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c | |||
@@ -2486,6 +2486,7 @@ static struct usb_driver at76_driver = { | |||
2486 | .probe = at76_probe, | 2486 | .probe = at76_probe, |
2487 | .disconnect = at76_disconnect, | 2487 | .disconnect = at76_disconnect, |
2488 | .id_table = dev_table, | 2488 | .id_table = dev_table, |
2489 | .disable_hub_initiated_lpm = 1, | ||
2489 | }; | 2490 | }; |
2490 | 2491 | ||
2491 | static int __init at76_mod_init(void) | 2492 | static int __init at76_mod_init(void) |
diff --git a/drivers/net/wireless/ath/ath6kl/usb.c b/drivers/net/wireless/ath/ath6kl/usb.c index 325b1224c2b1..f8a27db69c7f 100644 --- a/drivers/net/wireless/ath/ath6kl/usb.c +++ b/drivers/net/wireless/ath/ath6kl/usb.c | |||
@@ -405,6 +405,7 @@ static struct usb_driver ath6kl_usb_driver = { | |||
405 | .probe = ath6kl_usb_probe, | 405 | .probe = ath6kl_usb_probe, |
406 | .disconnect = ath6kl_usb_remove, | 406 | .disconnect = ath6kl_usb_remove, |
407 | .id_table = ath6kl_usb_ids, | 407 | .id_table = ath6kl_usb_ids, |
408 | .disable_hub_initiated_lpm = 1, | ||
408 | }; | 409 | }; |
409 | 410 | ||
410 | static int ath6kl_usb_init(void) | 411 | static int ath6kl_usb_init(void) |
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index 424aabb2c730..dea53dea9a53 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c | |||
@@ -1356,6 +1356,7 @@ static struct usb_driver ath9k_hif_usb_driver = { | |||
1356 | #endif | 1356 | #endif |
1357 | .id_table = ath9k_hif_usb_ids, | 1357 | .id_table = ath9k_hif_usb_ids, |
1358 | .soft_unbind = 1, | 1358 | .soft_unbind = 1, |
1359 | .disable_hub_initiated_lpm = 1, | ||
1359 | }; | 1360 | }; |
1360 | 1361 | ||
1361 | int ath9k_hif_usb_init(void) | 1362 | int ath9k_hif_usb_init(void) |
diff --git a/drivers/net/wireless/ath/carl9170/usb.c b/drivers/net/wireless/ath/carl9170/usb.c index 89821e4835c7..888152ce3eca 100644 --- a/drivers/net/wireless/ath/carl9170/usb.c +++ b/drivers/net/wireless/ath/carl9170/usb.c | |||
@@ -1159,6 +1159,7 @@ static struct usb_driver carl9170_driver = { | |||
1159 | .resume = carl9170_usb_resume, | 1159 | .resume = carl9170_usb_resume, |
1160 | .reset_resume = carl9170_usb_resume, | 1160 | .reset_resume = carl9170_usb_resume, |
1161 | #endif /* CONFIG_PM */ | 1161 | #endif /* CONFIG_PM */ |
1162 | .disable_hub_initiated_lpm = 1, | ||
1162 | }; | 1163 | }; |
1163 | 1164 | ||
1164 | module_usb_driver(carl9170_driver); | 1165 | module_usb_driver(carl9170_driver); |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/brcm80211/brcmfmac/usb.c index 82364223e817..8852d23ef829 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c | |||
@@ -1605,6 +1605,7 @@ static struct usb_driver brcmf_usbdrvr = { | |||
1605 | .suspend = brcmf_usb_suspend, | 1605 | .suspend = brcmf_usb_suspend, |
1606 | .resume = brcmf_usb_resume, | 1606 | .resume = brcmf_usb_resume, |
1607 | .supports_autosuspend = 1 | 1607 | .supports_autosuspend = 1 |
1608 | .disable_hub_initiated_lpm = 1, | ||
1608 | }; | 1609 | }; |
1609 | 1610 | ||
1610 | void brcmf_usb_exit(void) | 1611 | void brcmf_usb_exit(void) |
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c index 74da5f1ea243..76ea66d53b9c 100644 --- a/drivers/net/wireless/libertas/if_usb.c +++ b/drivers/net/wireless/libertas/if_usb.c | |||
@@ -1180,6 +1180,7 @@ static struct usb_driver if_usb_driver = { | |||
1180 | .suspend = if_usb_suspend, | 1180 | .suspend = if_usb_suspend, |
1181 | .resume = if_usb_resume, | 1181 | .resume = if_usb_resume, |
1182 | .reset_resume = if_usb_resume, | 1182 | .reset_resume = if_usb_resume, |
1183 | .disable_hub_initiated_lpm = 1, | ||
1183 | }; | 1184 | }; |
1184 | 1185 | ||
1185 | module_usb_driver(if_usb_driver); | 1186 | module_usb_driver(if_usb_driver); |
diff --git a/drivers/net/wireless/libertas_tf/if_usb.c b/drivers/net/wireless/libertas_tf/if_usb.c index 7ced130f4f9e..19a5a92dd779 100644 --- a/drivers/net/wireless/libertas_tf/if_usb.c +++ b/drivers/net/wireless/libertas_tf/if_usb.c | |||
@@ -920,6 +920,7 @@ static struct usb_driver if_usb_driver = { | |||
920 | .id_table = if_usb_table, | 920 | .id_table = if_usb_table, |
921 | .suspend = if_usb_suspend, | 921 | .suspend = if_usb_suspend, |
922 | .resume = if_usb_resume, | 922 | .resume = if_usb_resume, |
923 | .disable_hub_initiated_lpm = 1, | ||
923 | }; | 924 | }; |
924 | 925 | ||
925 | module_usb_driver(if_usb_driver); | 926 | module_usb_driver(if_usb_driver); |
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c index f634d4582bfe..7f53cea2f205 100644 --- a/drivers/net/wireless/orinoco/orinoco_usb.c +++ b/drivers/net/wireless/orinoco/orinoco_usb.c | |||
@@ -1752,6 +1752,7 @@ static struct usb_driver orinoco_driver = { | |||
1752 | .probe = ezusb_probe, | 1752 | .probe = ezusb_probe, |
1753 | .disconnect = ezusb_disconnect, | 1753 | .disconnect = ezusb_disconnect, |
1754 | .id_table = ezusb_table, | 1754 | .id_table = ezusb_table, |
1755 | .disable_hub_initiated_lpm = 1, | ||
1755 | }; | 1756 | }; |
1756 | 1757 | ||
1757 | module_usb_driver(orinoco_driver); | 1758 | module_usb_driver(orinoco_driver); |
diff --git a/drivers/net/wireless/p54/p54usb.c b/drivers/net/wireless/p54/p54usb.c index f4d28c39aac7..d14dc81820e3 100644 --- a/drivers/net/wireless/p54/p54usb.c +++ b/drivers/net/wireless/p54/p54usb.c | |||
@@ -1081,6 +1081,7 @@ static struct usb_driver p54u_driver = { | |||
1081 | .reset_resume = p54u_resume, | 1081 | .reset_resume = p54u_resume, |
1082 | #endif /* CONFIG_PM */ | 1082 | #endif /* CONFIG_PM */ |
1083 | .soft_unbind = 1, | 1083 | .soft_unbind = 1, |
1084 | .disable_hub_initiated_lpm = 1, | ||
1084 | }; | 1085 | }; |
1085 | 1086 | ||
1086 | module_usb_driver(p54u_driver); | 1087 | module_usb_driver(p54u_driver); |
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index d66e2980bc27..748a89de50d0 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -3776,6 +3776,7 @@ static struct usb_driver rndis_wlan_driver = { | |||
3776 | .disconnect = usbnet_disconnect, | 3776 | .disconnect = usbnet_disconnect, |
3777 | .suspend = usbnet_suspend, | 3777 | .suspend = usbnet_suspend, |
3778 | .resume = usbnet_resume, | 3778 | .resume = usbnet_resume, |
3779 | .disable_hub_initiated_lpm = 1, | ||
3779 | }; | 3780 | }; |
3780 | 3781 | ||
3781 | module_usb_driver(rndis_wlan_driver); | 3782 | module_usb_driver(rndis_wlan_driver); |
diff --git a/drivers/net/wireless/rt2x00/rt2500usb.c b/drivers/net/wireless/rt2x00/rt2500usb.c index 1de9c752c88b..d432e49ed6cd 100644 --- a/drivers/net/wireless/rt2x00/rt2500usb.c +++ b/drivers/net/wireless/rt2x00/rt2500usb.c | |||
@@ -1980,6 +1980,7 @@ static struct usb_driver rt2500usb_driver = { | |||
1980 | .disconnect = rt2x00usb_disconnect, | 1980 | .disconnect = rt2x00usb_disconnect, |
1981 | .suspend = rt2x00usb_suspend, | 1981 | .suspend = rt2x00usb_suspend, |
1982 | .resume = rt2x00usb_resume, | 1982 | .resume = rt2x00usb_resume, |
1983 | .disable_hub_initiated_lpm = 1, | ||
1983 | }; | 1984 | }; |
1984 | 1985 | ||
1985 | module_usb_driver(rt2500usb_driver); | 1986 | module_usb_driver(rt2500usb_driver); |
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 001735f7a661..d60d4e2772e6 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -1293,6 +1293,7 @@ static struct usb_driver rt2800usb_driver = { | |||
1293 | .disconnect = rt2x00usb_disconnect, | 1293 | .disconnect = rt2x00usb_disconnect, |
1294 | .suspend = rt2x00usb_suspend, | 1294 | .suspend = rt2x00usb_suspend, |
1295 | .resume = rt2x00usb_resume, | 1295 | .resume = rt2x00usb_resume, |
1296 | .disable_hub_initiated_lpm = 1, | ||
1296 | }; | 1297 | }; |
1297 | 1298 | ||
1298 | module_usb_driver(rt2800usb_driver); | 1299 | module_usb_driver(rt2800usb_driver); |
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index e477a964081d..f813de6cd1b7 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2526,6 +2526,7 @@ static struct usb_driver rt73usb_driver = { | |||
2526 | .disconnect = rt2x00usb_disconnect, | 2526 | .disconnect = rt2x00usb_disconnect, |
2527 | .suspend = rt2x00usb_suspend, | 2527 | .suspend = rt2x00usb_suspend, |
2528 | .resume = rt2x00usb_resume, | 2528 | .resume = rt2x00usb_resume, |
2529 | .disable_hub_initiated_lpm = 1, | ||
2529 | }; | 2530 | }; |
2530 | 2531 | ||
2531 | module_usb_driver(rt73usb_driver); | 2532 | module_usb_driver(rt73usb_driver); |
diff --git a/drivers/net/wireless/rtl818x/rtl8187/dev.c b/drivers/net/wireless/rtl818x/rtl8187/dev.c index cf53ac9d6f23..c2d2a21dd452 100644 --- a/drivers/net/wireless/rtl818x/rtl8187/dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187/dev.c | |||
@@ -1662,6 +1662,7 @@ static struct usb_driver rtl8187_driver = { | |||
1662 | .id_table = rtl8187_table, | 1662 | .id_table = rtl8187_table, |
1663 | .probe = rtl8187_probe, | 1663 | .probe = rtl8187_probe, |
1664 | .disconnect = __devexit_p(rtl8187_disconnect), | 1664 | .disconnect = __devexit_p(rtl8187_disconnect), |
1665 | .disable_hub_initiated_lpm = 1, | ||
1665 | }; | 1666 | }; |
1666 | 1667 | ||
1667 | module_usb_driver(rtl8187_driver); | 1668 | module_usb_driver(rtl8187_driver); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c index 82c85286ab2e..0face8b7e524 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | |||
@@ -372,6 +372,7 @@ static struct usb_driver rtl8192cu_driver = { | |||
372 | #ifdef CONFIG_AUTOSUSPEND | 372 | #ifdef CONFIG_AUTOSUSPEND |
373 | .supports_autosuspend = 1, | 373 | .supports_autosuspend = 1, |
374 | #endif | 374 | #endif |
375 | .disable_hub_initiated_lpm = 1, | ||
375 | }; | 376 | }; |
376 | 377 | ||
377 | module_usb_driver(rtl8192cu_driver); | 378 | module_usb_driver(rtl8192cu_driver); |
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c index a66b93b7ff9a..48273dd05b63 100644 --- a/drivers/net/wireless/zd1201.c +++ b/drivers/net/wireless/zd1201.c | |||
@@ -1905,6 +1905,7 @@ static struct usb_driver zd1201_usb = { | |||
1905 | .id_table = zd1201_table, | 1905 | .id_table = zd1201_table, |
1906 | .suspend = zd1201_suspend, | 1906 | .suspend = zd1201_suspend, |
1907 | .resume = zd1201_resume, | 1907 | .resume = zd1201_resume, |
1908 | .disable_hub_initiated_lpm = 1, | ||
1908 | }; | 1909 | }; |
1909 | 1910 | ||
1910 | module_usb_driver(zd1201_usb); | 1911 | module_usb_driver(zd1201_usb); |
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c index f766b3e67c6d..af83c43bcdb1 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zd1211rw/zd_usb.c | |||
@@ -1542,6 +1542,7 @@ static struct usb_driver driver = { | |||
1542 | .disconnect = disconnect, | 1542 | .disconnect = disconnect, |
1543 | .pre_reset = pre_reset, | 1543 | .pre_reset = pre_reset, |
1544 | .post_reset = post_reset, | 1544 | .post_reset = post_reset, |
1545 | .disable_hub_initiated_lpm = 1, | ||
1545 | }; | 1546 | }; |
1546 | 1547 | ||
1547 | struct workqueue_struct *zd_workqueue; | 1548 | struct workqueue_struct *zd_workqueue; |