usb: dwc2: gadget: On USB RESET reset device address to zero
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Tue, 11 Jul 2017 10:25:13 +0000 (14:25 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 18 Jul 2017 05:57:36 +0000 (08:57 +0300)
commit307bc11fcdf9f911a1adacf9e77fe1c490041ee3
tree74e7b4b25e9f019832576b3c13e019af431cfdb8
parent4a71fcb8ac5f94c07bf47a43b13258a52e4fe3ad
usb: dwc2: gadget: On USB RESET reset device address to zero

Reseted DEVADDR field in DCFG to zero on USB RESET.

Device address in DCFG register does not reset to zero,
which required to pass enumeration, after disconnect and
reconnect.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c