aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-05-22 18:50:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-22 18:50:46 -0400
commita481991467d38afb43c3921d5b5b59ccb61b04ba (patch)
treea4b0b9a14da6fd5ef7b9b512bb32dbfcfcf2cd71 /drivers/net/usb
parentf6a26ae7699416d86bea8cb68ce413571e9cab3c (diff)
parentcda4db53e9c28061c100400e1a4d273ea61dfba9 (diff)
Merge tag 'usb-3.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB 3.5-rc1 changes from Greg Kroah-Hartman: "Here is the big USB 3.5-rc1 pull request for the 3.5-rc1 merge window. It's touches a lot of different parts of the kernel, all USB drivers, due to some API cleanups (getting rid of the ancient err() macro) and some changes that are needed for USB 3.0 power management updates. There are also lots of new drivers, pimarily gadget, but others as well. We deleted a staging driver, which was nice, and finally dropped the obsolete usbfs code, which will make Al happy to never have to touch that again. There were some build errors in the tree that linux-next found a few days ago, but those were fixed by the most recent changes (all were due to us not building with CONFIG_PM disabled.) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" * tag 'usb-3.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (477 commits) xhci: Fix DIV_ROUND_UP compile error. xhci: Fix compile with CONFIG_USB_SUSPEND=n USB: Fix core compile with CONFIG_USB_SUSPEND=n brcm80211: Fix compile error for .disable_hub_initiated_lpm. Revert "USB: EHCI: work around bug in the Philips ISP1562 controller" MAINTAINERS: Add myself as maintainer to the USB PHY Layer USB: EHCI: fix command register configuration lost problem USB: Remove races in devio.c USB: ehci-platform: remove update_device USB: Disable hub-initiated LPM for comms devices. xhci: Add Intel U1/U2 timeout policy. xhci: Add infrastructure for host-specific LPM policies. USB: Add macros for interrupt endpoint types. xhci: Reserve one command for USB3 LPM disable. xhci: Some Evaluate Context commands must succeed. USB: Disable USB 3.0 LPM in critical sections. USB: Add support to enable/disable USB3 link states. USB: Allow drivers to disable hub-initiated LPM. USB: Calculate USB 3.0 exit latencies for LPM. USB: Refactor code to set LPM support flag. ... Conflicts: arch/arm/mach-exynos/mach-nuri.c arch/arm/mach-exynos/mach-universal_c210.c drivers/net/wireless/ath/ath6kl/usb.c
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/asix.c1
-rw-r--r--drivers/net/usb/catc.c26
-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.c35
-rw-r--r--drivers/net/usb/kalmia.c3
-rw-r--r--drivers/net/usb/kaweth.c64
-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.c18
-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, 110 insertions, 58 deletions
diff --git a/drivers/net/usb/asix.c b/drivers/net/usb/asix.c
index 42b5151aa78..71e2b0523bc 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 182cfb4aeb1..26c5bebd9ec 100644
--- a/drivers/net/usb/catc.c
+++ b/drivers/net/usb/catc.c
@@ -338,16 +338,18 @@ static void catc_irq_done(struct urb *urb)
338 } else { 338 } else {
339 catc->rx_urb->dev = catc->usbdev; 339 catc->rx_urb->dev = catc->usbdev;
340 if ((res = usb_submit_urb(catc->rx_urb, GFP_ATOMIC)) < 0) { 340 if ((res = usb_submit_urb(catc->rx_urb, GFP_ATOMIC)) < 0) {
341 err("submit(rx_urb) status %d", res); 341 dev_err(&catc->usbdev->dev,
342 "submit(rx_urb) status %d\n", res);
342 } 343 }
343 } 344 }
344 } 345 }
345resubmit: 346resubmit:
346 res = usb_submit_urb (urb, GFP_ATOMIC); 347 res = usb_submit_urb (urb, GFP_ATOMIC);
347 if (res) 348 if (res)
348 err ("can't resubmit intr, %s-%s, status %d", 349 dev_err(&catc->usbdev->dev,
349 catc->usbdev->bus->bus_name, 350 "can't resubmit intr, %s-%s, status %d\n",
350 catc->usbdev->devpath, res); 351 catc->usbdev->bus->bus_name,
352 catc->usbdev->devpath, res);
351} 353}
352 354
353/* 355/*
@@ -366,7 +368,8 @@ static int catc_tx_run(struct catc *catc)
366 catc->tx_urb->dev = catc->usbdev; 368 catc->tx_urb->dev = catc->usbdev;
367 369
368 if ((status = usb_submit_urb(catc->tx_urb, GFP_ATOMIC)) < 0) 370 if ((status = usb_submit_urb(catc->tx_urb, GFP_ATOMIC)) < 0)
369 err("submit(tx_urb), status %d", status); 371 dev_err(&catc->usbdev->dev, "submit(tx_urb), status %d\n",
372 status);
370 373
371 catc->tx_idx = !catc->tx_idx; 374 catc->tx_idx = !catc->tx_idx;
372 catc->tx_ptr = 0; 375 catc->tx_ptr = 0;
@@ -496,7 +499,8 @@ static void catc_ctrl_run(struct catc *catc)
496 memcpy(catc->ctrl_buf, q->buf, q->len); 499 memcpy(catc->ctrl_buf, q->buf, q->len);
497 500
498 if ((status = usb_submit_urb(catc->ctrl_urb, GFP_ATOMIC))) 501 if ((status = usb_submit_urb(catc->ctrl_urb, GFP_ATOMIC)))
499 err("submit(ctrl_urb) status %d", status); 502 dev_err(&catc->usbdev->dev, "submit(ctrl_urb) status %d\n",
503 status);
500} 504}
501 505
502static void catc_ctrl_done(struct urb *urb) 506static void catc_ctrl_done(struct urb *urb)
@@ -555,7 +559,7 @@ static int catc_ctrl_async(struct catc *catc, u8 dir, u8 request, u16 value,
555 catc->ctrl_head = (catc->ctrl_head + 1) & (CTRL_QUEUE - 1); 559 catc->ctrl_head = (catc->ctrl_head + 1) & (CTRL_QUEUE - 1);
556 560
557 if (catc->ctrl_head == catc->ctrl_tail) { 561 if (catc->ctrl_head == catc->ctrl_tail) {
558 err("ctrl queue full"); 562 dev_err(&catc->usbdev->dev, "ctrl queue full\n");
559 catc->ctrl_tail = (catc->ctrl_tail + 1) & (CTRL_QUEUE - 1); 563 catc->ctrl_tail = (catc->ctrl_tail + 1) & (CTRL_QUEUE - 1);
560 retval = -1; 564 retval = -1;
561 } 565 }
@@ -714,7 +718,8 @@ static int catc_open(struct net_device *netdev)
714 718
715 catc->irq_urb->dev = catc->usbdev; 719 catc->irq_urb->dev = catc->usbdev;
716 if ((status = usb_submit_urb(catc->irq_urb, GFP_KERNEL)) < 0) { 720 if ((status = usb_submit_urb(catc->irq_urb, GFP_KERNEL)) < 0) {
717 err("submit(irq_urb) status %d", status); 721 dev_err(&catc->usbdev->dev, "submit(irq_urb) status %d\n",
722 status);
718 return -1; 723 return -1;
719 } 724 }
720 725
@@ -769,7 +774,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
769 774
770 if (usb_set_interface(usbdev, 775 if (usb_set_interface(usbdev,
771 intf->altsetting->desc.bInterfaceNumber, 1)) { 776 intf->altsetting->desc.bInterfaceNumber, 1)) {
772 err("Can't set altsetting 1."); 777 dev_err(&intf->dev, "Can't set altsetting 1.\n");
773 return -EIO; 778 return -EIO;
774 } 779 }
775 780
@@ -799,7 +804,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
799 catc->irq_urb = usb_alloc_urb(0, GFP_KERNEL); 804 catc->irq_urb = usb_alloc_urb(0, GFP_KERNEL);
800 if ((!catc->ctrl_urb) || (!catc->tx_urb) || 805 if ((!catc->ctrl_urb) || (!catc->tx_urb) ||
801 (!catc->rx_urb) || (!catc->irq_urb)) { 806 (!catc->rx_urb) || (!catc->irq_urb)) {
802 err("No free urbs available."); 807 dev_err(&intf->dev, "No free urbs available.\n");
803 usb_free_urb(catc->ctrl_urb); 808 usb_free_urb(catc->ctrl_urb);
804 usb_free_urb(catc->tx_urb); 809 usb_free_urb(catc->tx_urb);
805 usb_free_urb(catc->rx_urb); 810 usb_free_urb(catc->rx_urb);
@@ -947,6 +952,7 @@ static struct usb_driver catc_driver = {
947 .probe = catc_probe, 952 .probe = catc_probe,
948 .disconnect = catc_disconnect, 953 .disconnect = catc_disconnect,
949 .id_table = catc_id_table, 954 .id_table = catc_id_table,
955 .disable_hub_initiated_lpm = 1,
950}; 956};
951 957
952module_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 3e41b00c680..d848d4dd575 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 685a4e22c76..434d5af8e6f 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 fffee6aee8b..a03de719704 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -705,6 +705,7 @@ static struct usb_driver cdc_driver = {
705 .resume = usbnet_resume, 705 .resume = usbnet_resume,
706 .reset_resume = usbnet_resume, 706 .reset_resume = usbnet_resume,
707 .supports_autosuspend = 1, 707 .supports_autosuspend = 1,
708 .disable_hub_initiated_lpm = 1,
708}; 709};
709 710
710module_usb_driver(cdc_driver); 711module_usb_driver(cdc_driver);
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
index 7adc9f6b0ea..4b9513fcf27 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 b403d934e4e..0d1fe89ae0b 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 0e0531356e6..49ab45e17fe 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 b97226318ea..e0433ce6ced 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 38266bdae26..db3c8021f2a 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 2d2a6882ba3..042c1a99520 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 12a22a453ff..8de641713d5 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 dd78c4cbd45..964031e3da8 100644
--- a/drivers/net/usb/ipheth.c
+++ b/drivers/net/usb/ipheth.c
@@ -209,7 +209,8 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
209 case 0: 209 case 0:
210 break; 210 break;
211 default: 211 default:
212 err("%s: urb status: %d", __func__, status); 212 dev_err(&dev->intf->dev, "%s: urb status: %d\n",
213 __func__, status);
213 return; 214 return;
214 } 215 }
215 216
@@ -222,7 +223,8 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
222 223
223 skb = dev_alloc_skb(len); 224 skb = dev_alloc_skb(len);
224 if (!skb) { 225 if (!skb) {
225 err("%s: dev_alloc_skb: -ENOMEM", __func__); 226 dev_err(&dev->intf->dev, "%s: dev_alloc_skb: -ENOMEM\n",
227 __func__);
226 dev->net->stats.rx_dropped++; 228 dev->net->stats.rx_dropped++;
227 return; 229 return;
228 } 230 }
@@ -251,7 +253,8 @@ static void ipheth_sndbulk_callback(struct urb *urb)
251 status != -ENOENT && 253 status != -ENOENT &&
252 status != -ECONNRESET && 254 status != -ECONNRESET &&
253 status != -ESHUTDOWN) 255 status != -ESHUTDOWN)
254 err("%s: urb status: %d", __func__, status); 256 dev_err(&dev->intf->dev, "%s: urb status: %d\n",
257 __func__, status);
255 258
256 dev_kfree_skb_irq(dev->tx_skb); 259 dev_kfree_skb_irq(dev->tx_skb);
257 netif_wake_queue(dev->net); 260 netif_wake_queue(dev->net);
@@ -271,7 +274,8 @@ static int ipheth_carrier_set(struct ipheth_device *dev)
271 dev->ctrl_buf, IPHETH_CTRL_BUF_SIZE, 274 dev->ctrl_buf, IPHETH_CTRL_BUF_SIZE,
272 IPHETH_CTRL_TIMEOUT); 275 IPHETH_CTRL_TIMEOUT);
273 if (retval < 0) { 276 if (retval < 0) {
274 err("%s: usb_control_msg: %d", __func__, retval); 277 dev_err(&dev->intf->dev, "%s: usb_control_msg: %d\n",
278 __func__, retval);
275 return retval; 279 return retval;
276 } 280 }
277 281
@@ -308,9 +312,11 @@ static int ipheth_get_macaddr(struct ipheth_device *dev)
308 IPHETH_CTRL_BUF_SIZE, 312 IPHETH_CTRL_BUF_SIZE,
309 IPHETH_CTRL_TIMEOUT); 313 IPHETH_CTRL_TIMEOUT);
310 if (retval < 0) { 314 if (retval < 0) {
311 err("%s: usb_control_msg: %d", __func__, retval); 315 dev_err(&dev->intf->dev, "%s: usb_control_msg: %d\n",
316 __func__, retval);
312 } else if (retval < ETH_ALEN) { 317 } else if (retval < ETH_ALEN) {
313 err("%s: usb_control_msg: short packet: %d bytes", 318 dev_err(&dev->intf->dev,
319 "%s: usb_control_msg: short packet: %d bytes\n",
314 __func__, retval); 320 __func__, retval);
315 retval = -EINVAL; 321 retval = -EINVAL;
316 } else { 322 } else {
@@ -335,7 +341,8 @@ static int ipheth_rx_submit(struct ipheth_device *dev, gfp_t mem_flags)
335 341
336 retval = usb_submit_urb(dev->rx_urb, mem_flags); 342 retval = usb_submit_urb(dev->rx_urb, mem_flags);
337 if (retval) 343 if (retval)
338 err("%s: usb_submit_urb: %d", __func__, retval); 344 dev_err(&dev->intf->dev, "%s: usb_submit_urb: %d\n",
345 __func__, retval);
339 return retval; 346 return retval;
340} 347}
341 348
@@ -396,7 +403,8 @@ static int ipheth_tx(struct sk_buff *skb, struct net_device *net)
396 403
397 retval = usb_submit_urb(dev->tx_urb, GFP_ATOMIC); 404 retval = usb_submit_urb(dev->tx_urb, GFP_ATOMIC);
398 if (retval) { 405 if (retval) {
399 err("%s: usb_submit_urb: %d", __func__, retval); 406 dev_err(&dev->intf->dev, "%s: usb_submit_urb: %d\n",
407 __func__, retval);
400 dev->net->stats.tx_errors++; 408 dev->net->stats.tx_errors++;
401 dev_kfree_skb_irq(skb); 409 dev_kfree_skb_irq(skb);
402 } else { 410 } else {
@@ -414,7 +422,7 @@ static void ipheth_tx_timeout(struct net_device *net)
414{ 422{
415 struct ipheth_device *dev = netdev_priv(net); 423 struct ipheth_device *dev = netdev_priv(net);
416 424
417 err("%s: TX timeout", __func__); 425 dev_err(&dev->intf->dev, "%s: TX timeout\n", __func__);
418 dev->net->stats.tx_errors++; 426 dev->net->stats.tx_errors++;
419 usb_unlink_urb(dev->tx_urb); 427 usb_unlink_urb(dev->tx_urb);
420} 428}
@@ -464,7 +472,7 @@ static int ipheth_probe(struct usb_interface *intf,
464 hintf = usb_altnum_to_altsetting(intf, IPHETH_ALT_INTFNUM); 472 hintf = usb_altnum_to_altsetting(intf, IPHETH_ALT_INTFNUM);
465 if (hintf == NULL) { 473 if (hintf == NULL) {
466 retval = -ENODEV; 474 retval = -ENODEV;
467 err("Unable to find alternate settings interface"); 475 dev_err(&intf->dev, "Unable to find alternate settings interface\n");
468 goto err_endpoints; 476 goto err_endpoints;
469 } 477 }
470 478
@@ -477,7 +485,7 @@ static int ipheth_probe(struct usb_interface *intf,
477 } 485 }
478 if (!(dev->bulk_in && dev->bulk_out)) { 486 if (!(dev->bulk_in && dev->bulk_out)) {
479 retval = -ENODEV; 487 retval = -ENODEV;
480 err("Unable to find endpoints"); 488 dev_err(&intf->dev, "Unable to find endpoints\n");
481 goto err_endpoints; 489 goto err_endpoints;
482 } 490 }
483 491
@@ -495,7 +503,7 @@ static int ipheth_probe(struct usb_interface *intf,
495 503
496 retval = ipheth_alloc_urbs(dev); 504 retval = ipheth_alloc_urbs(dev);
497 if (retval) { 505 if (retval) {
498 err("error allocating urbs: %d", retval); 506 dev_err(&intf->dev, "error allocating urbs: %d\n", retval);
499 goto err_alloc_urbs; 507 goto err_alloc_urbs;
500 } 508 }
501 509
@@ -506,7 +514,7 @@ static int ipheth_probe(struct usb_interface *intf,
506 514
507 retval = register_netdev(netdev); 515 retval = register_netdev(netdev);
508 if (retval) { 516 if (retval) {
509 err("error registering netdev: %d", retval); 517 dev_err(&intf->dev, "error registering netdev: %d\n", retval);
510 retval = -EIO; 518 retval = -EIO;
511 goto err_register_netdev; 519 goto err_register_netdev;
512 } 520 }
@@ -546,6 +554,7 @@ static struct usb_driver ipheth_driver = {
546 .probe = ipheth_probe, 554 .probe = ipheth_probe,
547 .disconnect = ipheth_disconnect, 555 .disconnect = ipheth_disconnect,
548 .id_table = ipheth_table, 556 .id_table = ipheth_table,
557 .disable_hub_initiated_lpm = 1,
549}; 558};
550 559
551module_usb_driver(ipheth_driver); 560module_usb_driver(ipheth_driver);
diff --git a/drivers/net/usb/kalmia.c b/drivers/net/usb/kalmia.c
index 7562649b3d6..92c49e0a59e 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 df2a2cf35a9..d8ad5528438 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];
@@ -400,12 +401,13 @@ static int kaweth_download_firmware(struct kaweth_device *kaweth,
400 401
401 ret = request_firmware(&fw, fwname, &kaweth->dev->dev); 402 ret = request_firmware(&fw, fwname, &kaweth->dev->dev);
402 if (ret) { 403 if (ret) {
403 err("Firmware request failed\n"); 404 dev_err(&kaweth->intf->dev, "Firmware request failed\n");
404 return ret; 405 return ret;
405 } 406 }
406 407
407 if (fw->size > KAWETH_FIRMWARE_BUF_SIZE) { 408 if (fw->size > KAWETH_FIRMWARE_BUF_SIZE) {
408 err("Firmware too big: %zu", fw->size); 409 dev_err(&kaweth->intf->dev, "Firmware too big: %zu\n",
410 fw->size);
409 release_firmware(fw); 411 release_firmware(fw);
410 return -ENOSPC; 412 return -ENOSPC;
411 } 413 }
@@ -501,9 +503,10 @@ static void kaweth_resubmit_int_urb(struct kaweth_device *kaweth, gfp_t mf)
501 } 503 }
502 504
503 if (status) 505 if (status)
504 err ("can't resubmit intr, %s-%s, status %d", 506 dev_err(&kaweth->intf->dev,
505 kaweth->dev->bus->bus_name, 507 "can't resubmit intr, %s-%s, status %d\n",
506 kaweth->dev->devpath, status); 508 kaweth->dev->bus->bus_name,
509 kaweth->dev->devpath, status);
507} 510}
508 511
509static void int_callback(struct urb *u) 512static void int_callback(struct urb *u)
@@ -576,7 +579,8 @@ static int kaweth_resubmit_rx_urb(struct kaweth_device *kaweth,
576 kaweth->suspend_lowmem_rx = 1; 579 kaweth->suspend_lowmem_rx = 1;
577 schedule_delayed_work(&kaweth->lowmem_work, HZ/4); 580 schedule_delayed_work(&kaweth->lowmem_work, HZ/4);
578 } 581 }
579 err("resubmitting rx_urb %d failed", result); 582 dev_err(&kaweth->intf->dev, "resubmitting rx_urb %d failed\n",
583 result);
580 } else { 584 } else {
581 kaweth->suspend_lowmem_rx = 0; 585 kaweth->suspend_lowmem_rx = 0;
582 } 586 }
@@ -634,20 +638,21 @@ static void kaweth_usb_receive(struct urb *urb)
634 spin_unlock(&kaweth->device_lock); 638 spin_unlock(&kaweth->device_lock);
635 639
636 if(status && status != -EREMOTEIO && count != 1) { 640 if(status && status != -EREMOTEIO && count != 1) {
637 err("%s RX status: %d count: %d packet_len: %d", 641 dev_err(&kaweth->intf->dev,
638 net->name, 642 "%s RX status: %d count: %d packet_len: %d\n",
639 status, 643 net->name, status, count, (int)pkt_len);
640 count,
641 (int)pkt_len);
642 kaweth_resubmit_rx_urb(kaweth, GFP_ATOMIC); 644 kaweth_resubmit_rx_urb(kaweth, GFP_ATOMIC);
643 return; 645 return;
644 } 646 }
645 647
646 if(kaweth->net && (count > 2)) { 648 if(kaweth->net && (count > 2)) {
647 if(pkt_len > (count - 2)) { 649 if(pkt_len > (count - 2)) {
648 err("Packet length too long for USB frame (pkt_len: %x, count: %x)",pkt_len, count); 650 dev_err(&kaweth->intf->dev,
649 err("Packet len & 2047: %x", pkt_len & 2047); 651 "Packet length too long for USB frame (pkt_len: %x, count: %x)\n",
650 err("Count 2: %x", count2); 652 pkt_len, count);
653 dev_err(&kaweth->intf->dev, "Packet len & 2047: %x\n",
654 pkt_len & 2047);
655 dev_err(&kaweth->intf->dev, "Count 2: %x\n", count2);
651 kaweth_resubmit_rx_urb(kaweth, GFP_ATOMIC); 656 kaweth_resubmit_rx_urb(kaweth, GFP_ATOMIC);
652 return; 657 return;
653 } 658 }
@@ -686,7 +691,7 @@ static int kaweth_open(struct net_device *net)
686 691
687 res = usb_autopm_get_interface(kaweth->intf); 692 res = usb_autopm_get_interface(kaweth->intf);
688 if (res) { 693 if (res) {
689 err("Interface cannot be resumed."); 694 dev_err(&kaweth->intf->dev, "Interface cannot be resumed.\n");
690 return -EIO; 695 return -EIO;
691 } 696 }
692 res = kaweth_resubmit_rx_urb(kaweth, GFP_KERNEL); 697 res = kaweth_resubmit_rx_urb(kaweth, GFP_KERNEL);
@@ -907,7 +912,8 @@ static void kaweth_async_set_rx_mode(struct kaweth_device *kaweth)
907 KAWETH_CONTROL_TIMEOUT); 912 KAWETH_CONTROL_TIMEOUT);
908 913
909 if(result < 0) { 914 if(result < 0) {
910 err("Failed to set Rx mode: %d", result); 915 dev_err(&kaweth->intf->dev, "Failed to set Rx mode: %d\n",
916 result);
911 } 917 }
912 else { 918 else {
913 dbg("Set Rx mode to %d", packet_filter_bitmap); 919 dbg("Set Rx mode to %d", packet_filter_bitmap);
@@ -1045,7 +1051,8 @@ static int kaweth_probe(
1045 "kaweth/new_code.bin", 1051 "kaweth/new_code.bin",
1046 100, 1052 100,
1047 2)) < 0) { 1053 2)) < 0) {
1048 err("Error downloading firmware (%d)", result); 1054 dev_err(&intf->dev, "Error downloading firmware (%d)\n",
1055 result);
1049 goto err_fw; 1056 goto err_fw;
1050 } 1057 }
1051 1058
@@ -1053,7 +1060,9 @@ static int kaweth_probe(
1053 "kaweth/new_code_fix.bin", 1060 "kaweth/new_code_fix.bin",
1054 100, 1061 100,
1055 3)) < 0) { 1062 3)) < 0) {
1056 err("Error downloading firmware fix (%d)", result); 1063 dev_err(&intf->dev,
1064 "Error downloading firmware fix (%d)\n",
1065 result);
1057 goto err_fw; 1066 goto err_fw;
1058 } 1067 }
1059 1068
@@ -1061,7 +1070,9 @@ static int kaweth_probe(
1061 "kaweth/trigger_code.bin", 1070 "kaweth/trigger_code.bin",
1062 126, 1071 126,
1063 2)) < 0) { 1072 2)) < 0) {
1064 err("Error downloading trigger code (%d)", result); 1073 dev_err(&intf->dev,
1074 "Error downloading trigger code (%d)\n",
1075 result);
1065 goto err_fw; 1076 goto err_fw;
1066 1077
1067 } 1078 }
@@ -1070,13 +1081,14 @@ static int kaweth_probe(
1070 "kaweth/trigger_code_fix.bin", 1081 "kaweth/trigger_code_fix.bin",
1071 126, 1082 126,
1072 3)) < 0) { 1083 3)) < 0) {
1073 err("Error downloading trigger code fix (%d)", result); 1084 dev_err(&intf->dev, "Error downloading trigger code fix (%d)\n", result);
1074 goto err_fw; 1085 goto err_fw;
1075 } 1086 }
1076 1087
1077 1088
1078 if ((result = kaweth_trigger_firmware(kaweth, 126)) < 0) { 1089 if ((result = kaweth_trigger_firmware(kaweth, 126)) < 0) {
1079 err("Error triggering firmware (%d)", result); 1090 dev_err(&intf->dev, "Error triggering firmware (%d)\n",
1091 result);
1080 goto err_fw; 1092 goto err_fw;
1081 } 1093 }
1082 1094
@@ -1091,7 +1103,7 @@ err_fw:
1091 result = kaweth_read_configuration(kaweth); 1103 result = kaweth_read_configuration(kaweth);
1092 1104
1093 if(result < 0) { 1105 if(result < 0) {
1094 err("Error reading configuration (%d), no net device created", result); 1106 dev_err(&intf->dev, "Error reading configuration (%d), no net device created\n", result);
1095 goto err_free_netdev; 1107 goto err_free_netdev;
1096 } 1108 }
1097 1109
@@ -1103,7 +1115,7 @@ err_fw:
1103 if(!memcmp(&kaweth->configuration.hw_addr, 1115 if(!memcmp(&kaweth->configuration.hw_addr,
1104 &bcast_addr, 1116 &bcast_addr,
1105 sizeof(bcast_addr))) { 1117 sizeof(bcast_addr))) {
1106 err("Firmware not functioning properly, no net device created"); 1118 dev_err(&intf->dev, "Firmware not functioning properly, no net device created\n");
1107 goto err_free_netdev; 1119 goto err_free_netdev;
1108 } 1120 }
1109 1121
@@ -1113,7 +1125,7 @@ err_fw:
1113 } 1125 }
1114 1126
1115 if(kaweth_set_sofs_wait(kaweth, KAWETH_SOFS_TO_WAIT) < 0) { 1127 if(kaweth_set_sofs_wait(kaweth, KAWETH_SOFS_TO_WAIT) < 0) {
1116 err("Error setting SOFS wait"); 1128 dev_err(&intf->dev, "Error setting SOFS wait\n");
1117 goto err_free_netdev; 1129 goto err_free_netdev;
1118 } 1130 }
1119 1131
@@ -1123,7 +1135,7 @@ err_fw:
1123 KAWETH_PACKET_FILTER_MULTICAST); 1135 KAWETH_PACKET_FILTER_MULTICAST);
1124 1136
1125 if(result < 0) { 1137 if(result < 0) {
1126 err("Error setting receive filter"); 1138 dev_err(&intf->dev, "Error setting receive filter\n");
1127 goto err_free_netdev; 1139 goto err_free_netdev;
1128 } 1140 }
1129 1141
@@ -1175,7 +1187,7 @@ err_fw:
1175 1187
1176 SET_NETDEV_DEV(netdev, &intf->dev); 1188 SET_NETDEV_DEV(netdev, &intf->dev);
1177 if (register_netdev(netdev) != 0) { 1189 if (register_netdev(netdev) != 0) {
1178 err("Error registering netdev."); 1190 dev_err(&intf->dev, "Error registering netdev.\n");
1179 goto err_intfdata; 1191 goto err_intfdata;
1180 } 1192 }
1181 1193
diff --git a/drivers/net/usb/lg-vl600.c b/drivers/net/usb/lg-vl600.c
index 45a981fde43..808d6506da4 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 c434b6ba033..add1064f755 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 83f965cb69e..28c4d513ba8 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 75239309232..7023220456c 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 b2b035e2997..4584b9a805b 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 63cfd0b2c31..380dbea6109 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -560,6 +560,7 @@ static struct usb_driver qmi_wwan_driver = {
560 .resume = qmi_wwan_resume, 560 .resume = qmi_wwan_resume,
561 .reset_resume = qmi_wwan_resume, 561 .reset_resume = qmi_wwan_resume,
562 .supports_autosuspend = 1, 562 .supports_autosuspend = 1,
563 .disable_hub_initiated_lpm = 1,
563}; 564};
564 565
565static int __init qmi_wwan_init(void) 566static int __init qmi_wwan_init(void)
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c
index 0d746b3fdef..4a4335833c3 100644
--- a/drivers/net/usb/rndis_host.c
+++ b/drivers/net/usb/rndis_host.c
@@ -638,6 +638,7 @@ static struct usb_driver rndis_driver = {
638 .disconnect = usbnet_disconnect, 638 .disconnect = usbnet_disconnect,
639 .suspend = usbnet_suspend, 639 .suspend = usbnet_suspend,
640 .resume = usbnet_resume, 640 .resume = usbnet_resume,
641 .disable_hub_initiated_lpm = 1,
641}; 642};
642 643
643module_usb_driver(rndis_driver); 644module_usb_driver(rndis_driver);
diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
index d363b31053d..0e2c92e0e53 100644
--- a/drivers/net/usb/rtl8150.c
+++ b/drivers/net/usb/rtl8150.c
@@ -203,7 +203,8 @@ static int async_set_registers(rtl8150_t * dev, u16 indx, u16 size)
203 if ((ret = usb_submit_urb(dev->ctrl_urb, GFP_ATOMIC))) { 203 if ((ret = usb_submit_urb(dev->ctrl_urb, GFP_ATOMIC))) {
204 if (ret == -ENODEV) 204 if (ret == -ENODEV)
205 netif_device_detach(dev->netdev); 205 netif_device_detach(dev->netdev);
206 err("control request submission failed: %d", ret); 206 dev_err(&dev->udev->dev,
207 "control request submission failed: %d\n", ret);
207 } else 208 } else
208 set_bit(RX_REG_SET, &dev->flags); 209 set_bit(RX_REG_SET, &dev->flags);
209 210
@@ -516,9 +517,9 @@ resubmit:
516 if (res == -ENODEV) 517 if (res == -ENODEV)
517 netif_device_detach(dev->netdev); 518 netif_device_detach(dev->netdev);
518 else if (res) 519 else if (res)
519 err ("can't resubmit intr, %s-%s/input0, status %d", 520 dev_err(&dev->udev->dev,
520 dev->udev->bus->bus_name, 521 "can't resubmit intr, %s-%s/input0, status %d\n",
521 dev->udev->devpath, res); 522 dev->udev->bus->bus_name, dev->udev->devpath, res);
522} 523}
523 524
524static int rtl8150_suspend(struct usb_interface *intf, pm_message_t message) 525static int rtl8150_suspend(struct usb_interface *intf, pm_message_t message)
@@ -890,11 +891,11 @@ static int rtl8150_probe(struct usb_interface *intf,
890 dev->intr_interval = 100; /* 100ms */ 891 dev->intr_interval = 100; /* 100ms */
891 892
892 if (!alloc_all_urbs(dev)) { 893 if (!alloc_all_urbs(dev)) {
893 err("out of memory"); 894 dev_err(&intf->dev, "out of memory\n");
894 goto out; 895 goto out;
895 } 896 }
896 if (!rtl8150_reset(dev)) { 897 if (!rtl8150_reset(dev)) {
897 err("couldn't reset the device"); 898 dev_err(&intf->dev, "couldn't reset the device\n");
898 goto out1; 899 goto out1;
899 } 900 }
900 fill_skb_pool(dev); 901 fill_skb_pool(dev);
@@ -903,7 +904,7 @@ static int rtl8150_probe(struct usb_interface *intf,
903 usb_set_intfdata(intf, dev); 904 usb_set_intfdata(intf, dev);
904 SET_NETDEV_DEV(netdev, &intf->dev); 905 SET_NETDEV_DEV(netdev, &intf->dev);
905 if (register_netdev(netdev) != 0) { 906 if (register_netdev(netdev) != 0) {
906 err("couldn't register the device"); 907 dev_err(&intf->dev, "couldn't register the device\n");
907 goto out2; 908 goto out2;
908 } 909 }
909 910
@@ -947,7 +948,8 @@ static struct usb_driver rtl8150_driver = {
947 .disconnect = rtl8150_disconnect, 948 .disconnect = rtl8150_disconnect,
948 .id_table = rtl8150_table, 949 .id_table = rtl8150_table,
949 .suspend = rtl8150_suspend, 950 .suspend = rtl8150_suspend,
950 .resume = rtl8150_resume 951 .resume = rtl8150_resume,
952 .disable_hub_initiated_lpm = 1,
951}; 953};
952 954
953module_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 b59cf20c781..3faef5670d1 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 fb1a087b101..1c6e51588da 100644
--- a/drivers/net/usb/smsc75xx.c
+++ b/drivers/net/usb/smsc75xx.c
@@ -1254,6 +1254,7 @@ static struct usb_driver smsc75xx_driver = {
1254 .suspend = usbnet_suspend, 1254 .suspend = usbnet_suspend,
1255 .resume = usbnet_resume, 1255 .resume = usbnet_resume,
1256 .disconnect = usbnet_disconnect, 1256 .disconnect = usbnet_disconnect,
1257 .disable_hub_initiated_lpm = 1,
1257}; 1258};
1258 1259
1259module_usb_driver(smsc75xx_driver); 1260module_usb_driver(smsc75xx_driver);
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 94ae66999f5..b1112e75385 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 34db195fb8b..35c90307d47 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);