usb: dwc2: Don't program DMA address for 0 length request
authorRazmik Karapetyan <razmik@synopsys.com>
Wed, 16 Nov 2016 23:33:55 +0000 (15:33 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:52 +0000 (13:54 +0200)
commit729e65746d4f225792e33371f3ae6d614ec66032
treeb08c5ae0069c3bd49902771fdf68657c27c489ed
parent9d8da85798cb45c803e449284c4564d572756428
usb: dwc2: Don't program DMA address for 0 length request

Check the request length in dwc2_hsotg_start_req() function. If
length == 0, do not write DMA address to control register.

Signed-off-by: Razmik Karapetyan <razmik@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c