]> git.proxmox.com Git - mirror_edk2.git/commit
Use MaxPacketSize as the initial buffer size to read data.
authorElvin Li <elvin.li@intel.com>
Thu, 5 Feb 2015 01:15:09 +0000 (01:15 +0000)
committerli-elvin <li-elvin@Edk2>
Thu, 5 Feb 2015 01:15:09 +0000 (01:15 +0000)
commit5d6507a14687f133d2ab8643ad274b22e578a907
treec19ee5a67097ec18f175a4d9626a0d3cd6f682cc
parent4b4a068cd4cc21d767a25d6f1e966dac12acd4fd
Use MaxPacketSize as the initial buffer size to read data.

If host sends more than 8 bytes of data, BABBLE error would happen if USB3 debug library uses 8 byte of buffer to read data.
We need use MaxPacketSize in USB3 debug descriptor to create buffer and read data into this buffer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Elvin Li <elvin.li@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16762 6f19259b-4bc3-4df7-8a09-765794883524
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Common.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Internal.h
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c