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

Commit 9054dfb1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: ci13xxx_udc: Set gadget state to NOT_ATTACHED on disconnect"

parents fc7340cc 08f1b437
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3474,6 +3474,7 @@ static int ci13xxx_vbus_session(struct usb_gadget *_gadget, int is_active)
		if (udc->udc_driver->notify_event)
			udc->udc_driver->notify_event(udc,
				CI13XXX_CONTROLLER_DISCONNECT_EVENT);
		usb_gadget_set_state(&udc->gadget, USB_STATE_NOTATTACHED);
	}

	return 0;