usb: dwc2: gadget: don't erase gahbcfg register when enabling dma
authorGregory Herrero <gregory.herrero@intel.com>
Fri, 9 Jan 2015 12:38:47 +0000 (13:38 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 21:32:59 +0000 (15:32 -0600)
commitf5090044763fd954a002a6ef466fcbc21033518f
tree26c905162d2e0121049596264f52a1d2d19c68e5
parent5f05048e5473a0570b1db9c2828d2a469e8bbbee
usb: dwc2: gadget: don't erase gahbcfg register when enabling dma

Do a read-modify-write instead of only setting DMAEn bit.

Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c