Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 029b71a4 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: composite: Fix a bug in delayed status handling" into msm-4.8

parents 934d9cd2 4787067b
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1997,6 +1997,10 @@ void composite_disconnect(struct usb_gadget *gadget)
		reset_config(cdev);
		reset_config(cdev);
	if (cdev->driver->disconnect)
	if (cdev->driver->disconnect)
		cdev->driver->disconnect(cdev);
		cdev->driver->disconnect(cdev);
	if (cdev->delayed_status != 0) {
		INFO(cdev, "delayed status mismatch..resetting\n");
		cdev->delayed_status = 0;
	}
	spin_unlock_irqrestore(&cdev->lock, flags);
	spin_unlock_irqrestore(&cdev->lock, flags);
}
}