]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: cppi41: fix not transmitting zero length packet issue
authorBin Liu <b-liu@ti.com>
Tue, 12 Aug 2014 19:18:43 +0000 (14:18 -0500)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Sep 2014 14:15:56 +0000 (09:15 -0500)
commitc1b7d81b15656bc24793ab89ebc5216c6e7588dc
treeaf2a1a8b232c7e7a3c5ade8aba73c5b96374d0a8
parentc2dea2904d38f5f9f9f866476cafdab22b452972
usb: musb: cppi41: fix not transmitting zero length packet issue

CPPI TX does not transmit ZLP for TX transfers which
- transfer size is multiple of EP packet size,
- and URB_ZERO_PACKET is set in urb->transfer_flags.

The fix is transmitting the ZLP using PIO mode after the CPPI TX is
done.

Validated using the following usbtest write case in MUSB host mode.

  # testusb -t1 -c1

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c