Skip to content

Commit d2689b6

Browse files
jtornosmkuba-moo
authored andcommitted
net: usb: ax88179_178a: avoid two consecutive device resets
The device is always reset two consecutive times (ax88179_reset is called twice), one from usbnet_probe during the device binding and the other from usbnet_open. Remove the non-necessary reset during the device binding and let the reset operation from open to keep the normal behavior (tested with generic ASIX Electronics Corp. AX88179 Gigabit Ethernet device). Reported-by: Herb Wei <[email protected]> Tested-by: Herb Wei <[email protected]> Signed-off-by: Jose Ignacio Tornos Martinez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3356628 commit d2689b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/usb/ax88179_178a.c

-2
Original file line numberDiff line numberDiff line change
@@ -1298,8 +1298,6 @@ static int ax88179_bind(struct usbnet *dev, struct usb_interface *intf)
12981298

12991299
netif_set_tso_max_size(dev->net, 16384);
13001300

1301-
ax88179_reset(dev);
1302-
13031301
return 0;
13041302
}
13051303

0 commit comments

Comments
 (0)