coreboot/payloads/libpayload/drivers
Julius Werner ea7793fa3d libpayload: usb: dwc2: Always return 'size' transferred bytes for OUT
Seems like our transferred bytes calculation for OUT transfers that span
more than one packet had been wrong, and we just got lucky that we never
noticed it before. The HCTSIZ.xfersize register field we're reading only
counts bytes transferred by the last packet we sent.

OUT endpoints cannot have short transfers -- every transfer should
either finish all bytes we wanted to send or end in a proper error
condition. Therefore, in the absence of an error we can just conclude
that all input bytes have been transferred.

BRANCH=veyron
BUG=chrome-os-partner:35525
TEST=SMSC95xx netboot on Jerry now works.

Change-Id: Id0a127e6919f5786ba05218277705dda1067b8c3
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/294169
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Commit-Queue: David Hendricks <dhendrix@chromium.org>
Tested-by: David Hendricks <dhendrix@chromium.org>
2015-08-19 02:56:03 +00:00
..
serial serial: Combine Tegra and Rockchip UARTs to generic 8250_mmio32 2014-10-23 01:41:47 +00:00
storage libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. 2013-08-14 17:05:33 -07:00
timer cosmos: add template files for libpayload 2014-10-15 18:23:26 +00:00
usb libpayload: usb: dwc2: Always return 'size' transferred bytes for OUT 2015-08-19 02:56:03 +00:00
video Revert "ryu: libpayload: Set fb address in dc register" 2014-11-14 19:39:26 +00:00
cbmem_console.c libpayload: console: Allow output drivers to print whole strings at once 2014-04-30 10:00:35 +00:00
hid.c make keyboard reset driver generic (not pc keyboard driver dependent) 2010-03-25 18:52:24 +00:00
keyboard.c libpayload: Remove unnecessary keyboard mode setting code 2013-09-14 01:31:10 +00:00
Makefile.inc Revert "ryu: libpayload: Set fb address in dc register" 2014-11-14 19:39:26 +00:00
nvram.c libpayload: Change CONFIG_* to CONFIG_LP_* in the kconfig. 2013-08-14 17:05:33 -07:00
options.c libpayload: Fix lookup by label in CMOS layouts 2012-11-30 06:05:50 +01:00
pci.c [PATCH] libpayload: Fix the PCI search function 2008-10-20 16:52:06 +00:00
speaker.c Fix libpayload speaker driver 2011-10-27 10:49:41 +02:00