libpayload: usb: Max packet size of SuperSpeed control EPs should be 512.

BRANCH=none
BUG=none
TEST=none

Change-Id: I563ef65db900d7675aeb5b9123dfb5a8980bf964
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 9764115d7bcce1d6423464bd81b58211ac728409
Original-Change-Id: Ibac8d3b9e28b4a563079f288901abcfbff6913ee
Original-Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/269863
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Queue: Yidi Lin <yidi.lin@mediatek.com>
Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com>
Reviewed-on: http://review.coreboot.org/10388
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Chunfeng Yun 2015-05-07 15:28:19 +08:00 committed by Patrick Georgi
parent a4cf83df7a
commit 08e3013490
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ usb_decode_mps0(usb_speed speed, u8 bMaxPacketSize0)
usb_debug("Invalid MPS0: 0x%02x\n", bMaxPacketSize0); usb_debug("Invalid MPS0: 0x%02x\n", bMaxPacketSize0);
bMaxPacketSize0 = 9; bMaxPacketSize0 = 9;
} }
return 2 << bMaxPacketSize0; return 1 << bMaxPacketSize0;
default: /* GCC is stupid and cannot deal with enums correctly */ default: /* GCC is stupid and cannot deal with enums correctly */
return 8; return 8;
} }