summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_cppi41.c
diff options
context:
space:
mode:
authorFelipe Balbi2014-09-30 17:39:14 +0200
committerFelipe Balbi2014-10-23 16:55:35 +0200
commit36f84ffb45c75ff10442a9f8f2fd91dcf6c6f5dd (patch)
treeaadbdc58f32334172eb8b19f9b6c944618b7e74b /drivers/usb/musb/musb_cppi41.c
parentusb: dwc3: ep0: return early on NULL requests (diff)
downloadkernel-qcow2-linux-36f84ffb45c75ff10442a9f8f2fd91dcf6c6f5dd.tar.gz
kernel-qcow2-linux-36f84ffb45c75ff10442a9f8f2fd91dcf6c6f5dd.tar.xz
kernel-qcow2-linux-36f84ffb45c75ff10442a9f8f2fd91dcf6c6f5dd.zip
usb: dwc3: ep0: fix Data Phase for transfer sizes aligned to wMaxPacketSize
According to Section 8.5.3.2 of the USB 2.0 specification, a USB device must terminate a Data Phase with either a short packet or a ZLP (if the previous transfer was a multiple of wMaxPacketSize). For reference, here's what the USB 2.0 specification, section 8.5.3.2 says: " 8.5.3.2 Variable-length Data Stage A control pipe may have a variable-length data phase in which the host requests more data than is contained in the specified data structure. When all of the data structure is returned to the host, the function should indicate that the Data stage is ended by returning a packet that is shorter than the MaxPacketSize for the pipe. If the data structure is an exact multiple of wMaxPacketSize for the pipe, the function will return a zero-length packet to indicate the end of the Data stage. " Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_cppi41.c')
0 files changed, 0 insertions, 0 deletions