usb: dwc3: gadget: prevent DCTL register corruption
authorFelipe Balbi <balbi@ti.com>
Thu, 24 May 2012 07:27:56 +0000 (10:27 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:08:25 +0000 (23:08 +0300)
commitfcc023c726b5879d8f3f0f0f48c45d09055272c4
treeb5a88957b7fdc046305c98eb034e6f0d25780c22
parent7acd85e0eb2ed300edf123178445237059b35fb9
usb: dwc3: gadget: prevent DCTL register corruption

If we don't read out the contents of the register
(in order to reinitialize 'reg' variable) we will
be writing unknown contents to the DCTL register
whenever we try to use dwc3_gadget_wakeup() function.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c