USBNET: centralize computing of max rx/tx qlen
[deliverable/linux.git] / drivers / net / usb / ax88179_178a.c
index bd8758fa38c140cf93dd3c8b623a3d9b61a279fe..658540433faf8a64232d16f9fc665d16a006ad97 100644 (file)
@@ -688,6 +688,9 @@ static int ax88179_change_mtu(struct net_device *net, int new_mtu)
                                  2, 2, &tmp16);
        }
 
+       /* max qlen depend on hard_mtu and rx_urb_size */
+       usbnet_update_max_qlen(dev);
+
        return 0;
 }
 
@@ -1371,7 +1374,7 @@ static int ax88179_stop(struct usbnet *dev)
 }
 
 static const struct driver_info ax88179_info = {
-       .description = "ASIX AX88179 USB 3.0 Gigibit Ethernet",
+       .description = "ASIX AX88179 USB 3.0 Gigabit Ethernet",
        .bind = ax88179_bind,
        .unbind = ax88179_unbind,
        .status = ax88179_status,
@@ -1384,7 +1387,7 @@ static const struct driver_info ax88179_info = {
 };
 
 static const struct driver_info ax88178a_info = {
-       .description = "ASIX AX88178A USB 2.0 Gigibit Ethernet",
+       .description = "ASIX AX88178A USB 2.0 Gigabit Ethernet",
        .bind = ax88179_bind,
        .unbind = ax88179_unbind,
        .status = ax88179_status,
@@ -1433,6 +1436,7 @@ static struct usb_driver ax88179_178a_driver = {
        .probe =        usbnet_probe,
        .suspend =      ax88179_suspend,
        .resume =       ax88179_resume,
+       .reset_resume = ax88179_resume,
        .disconnect =   usbnet_disconnect,
        .supports_autosuspend = 1,
        .disable_hub_initiated_lpm = 1,
This page took 0.028695 seconds and 5 git commands to generate.