Revert "usb: gadget: u_ether: Re-attach netif device to mirror detachment"
authorFerry Toth <ftoth@exalondelft.nl>
Thu, 20 Jun 2024 20:46:41 +0000 (22:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2024 14:24:25 +0000 (16:24 +0200)
This reverts commit 76c945730cdffb572c7767073cc6515fd3f646b4.

Prerequisite revert for the reverting of the original commit f49449fbc21e.

Fixes: 76c945730cdf ("usb: gadget: u_ether: Re-attach netif device to mirror detachment")
Fixes: f49449fbc21e ("usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach")
Reported-by: Ferry Toth <fntoth@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ferry Toth <fntoth@gmail.com>
Link: https://lore.kernel.org/r/20240620204832.24518-2-ftoth@exalondelft.nl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/u_ether.c

index 11dd0b9..aa0511c 100644 (file)
@@ -1163,8 +1163,6 @@ struct net_device *gether_connect(struct gether *link)
                if (netif_running(dev->net))
                        eth_start(dev, GFP_ATOMIC);
 
-               netif_device_attach(dev->net);
-
        /* on error, disable any endpoints  */
        } else {
                (void) usb_ep_disable(link->out_ep);