Message ID | 20220413211038.72797-1-w36195@motorola.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bf95c4d4630c7a2c16e7b424fdea5177d9ce0864 |
Headers | show |
Series | usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind() | expand |
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 1fb837d9271e..84b73cb03f87 100644 --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c @@ -1438,6 +1438,8 @@ static void configfs_composite_unbind(struct usb_gadget *gadget) usb_ep_autoconfig_reset(cdev->gadget); spin_lock_irqsave(&gi->spinlock, flags); cdev->gadget = NULL; + cdev->deactivations = 0; + gadget->deactivated = false; set_gadget_data(gadget, NULL); spin_unlock_irqrestore(&gi->spinlock, flags); }