Message ID | 20231006145036.8668-1-hgajjar@de.adit-jv.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | usb: gadget: u_ether: Replace netif_stop_queue with netif_device_detach | expand |
diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index 4bb0553da658..9d1c40c152d8 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -1200,7 +1200,7 @@ void gether_disconnect(struct gether *link) DBG(dev, "%s\n", __func__); - netif_stop_queue(dev->net); + netif_device_detach(dev->net); netif_carrier_off(dev->net); /* disable endpoints, forcing (synchronous) completion