dwc2: gadget: Fix ISOC IN DDMA PID bitfield value calculation
authorMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Wed, 23 May 2018 12:24:44 +0000 (16:24 +0400)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 19 Jun 2018 09:48:14 +0000 (12:48 +0300)
commit1d8e5c00275825fc42aaa5597dab1d0b5b26bb64
treeb69606da10d7d91038ca216b907f6296b6619f1a
parent9bb073a053f0464ea74a4d4c331fdb7da58568d6
dwc2: gadget: Fix ISOC IN DDMA PID bitfield value calculation

PID bitfield in descriptor should be set based on particular request
length, not based on EP's mc value. PID value can't be set to 0 even
request length is 0.

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