panther: libpayload: usb: xhci: Fix TD size if it overflows 5 bits
xHCI Spec says TD Size (5 bits) field shall be forced to 31,
if the number of packets to be scheduled is greater than 31.
BUG=chrome-os-partner:30263
BRANCH=tricky
TEST=Manual: Ensure recovery boot with USB 2.0 media
Change-Id: Ia70c7db963d7e41421ea0abef4eaa4016abf0adb
Signed-off-by: Justin Tsai <Justin_Tsai@quantatw.com>
Reviewed-by: Mohammed Habibulla <moch@chromium.org>
Reviewed-by: Wei Shun <wei.shun.chang@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/206767
Reviewed-by: Wei Shun Chang <wei.shun.chang@intel.com>
(cherry picked from commit 2ad67bed79d9d7950844065e413ebc84d7afe0aa)
Reviewed-on: https://chromium-review.googlesource.com/223423
Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org>
Commit-Queue: Shawn Nematbakhsh <shawnn@chromium.org>
Tested-by: Shawn Nematbakhsh <shawnn@chromium.org>
2 files changed