]> git.itanic.dy.fi Git - linux-stable/commit
net: usb: ax88179_178a: avoid two consecutive device resets
authorJose Ignacio Tornos Martinez <jtornosm@redhat.com>
Mon, 20 Nov 2023 12:11:41 +0000 (13:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Nov 2023 22:34:11 +0000 (14:34 -0800)
commitd2689b6a86b9d23574bd4b654bf770b6034e2c7e
tree478f0d728b4917cd18c68fa5f49d421243158c2e
parent335662889f5a5f4d5668ed6c8b5fd58913d91d15
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 <weihao.bj@ieisystem.com>
Tested-by: Herb Wei <weihao.bj@ieisystem.com>
Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
Link: https://lore.kernel.org/r/20231120121239.54504-1-jtornosm@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/ax88179_178a.c