usb: dwc2: Init desc_before_addr
authorMarek Vasut <marex@denx.de>
Tue, 26 Apr 2016 01:02:35 +0000 (03:02 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 3 May 2016 17:21:18 +0000 (19:21 +0200)
commite96e064f51139c4af39f14499564ef76e40bbc29
treeb3fcb42cef26f512cd1198ab040e07f97038db98
parentb4fbd089e4b7ead53d4a27148f6df9c18572b1ce
usb: dwc2: Init desc_before_addr

Initialize desc_before_addr, otherwise the USB core won't send the
first 64B Get Device Descriptor request in common/usb.c function
usb_setup_descriptor() . There are some USB devices which expect
this sequence and otherwise can misbehave.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Tom Rini <trini@konsulko.com>
drivers/usb/host/dwc2.c