diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-01-15 22:26:03 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-02-10 19:33:04 +0100 |
commit | 0108bf5157de24619f644721a82775d578087573 (patch) | |
tree | e72f7af6290f77496a2da71e3a5f23be98222f0c /src/console | |
parent | ed87ebc3259abea8f952a7ffd785f670a779bde2 (diff) |
usbdebug: Improve receive speed
Read from USB endpoint_in 8 bytes at a time, the maximum what
EHCI debug port capability has to offer.
Change-Id: I3d012d758a24b24f894e587b301f620933331407
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/4700
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/usbdebug_console.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/console/usbdebug_console.c b/src/console/usbdebug_console.c index 99726bed73..cb627bb96a 100644 --- a/src/console/usbdebug_console.c +++ b/src/console/usbdebug_console.c @@ -34,12 +34,7 @@ static void dbgp_tx_byte(unsigned char data) static unsigned char dbgp_rx_byte(void) { - unsigned char data = 0xff; - - if (dbgp_ep_is_active(dbgp_console_input())) - dbgp_bulk_read_x(dbgp_console_input(), &data, 1); - - return data; + return usbdebug_rx_byte(dbgp_console_input()); } static void dbgp_tx_flush(void) |