usb: dwc3: gadget: set state to NOT_ATTACHED on disconnect_irq
authorFelipe Balbi <balbi@ti.com>
Fri, 10 Oct 2014 20:24:00 +0000 (15:24 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:00 +0000 (10:01 -0600)
commit06a374ed13fdb7c6b2edd8cbdcf52bd1b0cc67b9
tree20ca3b02df17498be571b55af44533a0ac6fef92
parentf2918ad89df5a5deb4773e13b5f6e21eabfce282
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: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c