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

Commit 06a374ed authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: set state to NOT_ATTACHED on disconnect_irq



whenever we get a Disconnect Interrupt, we should
make sure to update out udc state to NOT_ATTACHED,
otherwise sysfs will show wrong values.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent f2918ad8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2140,6 +2140,7 @@ static void dwc3_gadget_disconnect_interrupt(struct dwc3 *dwc)

	dwc->gadget.speed = USB_SPEED_UNKNOWN;
	dwc->setup_packet_pending = false;
	usb_gadget_set_state(&dwc->gadget, USB_STATE_NOTATTACHED);
}

static void dwc3_gadget_reset_interrupt(struct dwc3 *dwc)