Files
OpenCellular/util
Aaron Durbin 1b4c5cf71e ectool: fix console command
There are a few issues with console output:

1. The EC was returning more bytes than the message's insize. The
   reason stems from a refacotring that the set the global
   ec_max_insize  variables to 'EC_PROTO2_MAX_PARAM_SIZE - 8'.
   It really should be EC_PROTO2_MAX_PARAM_SIZE to cover the
   maximum packet size returned from the EC.

2. A change was made to handle EAGAIN returning from the EC kernel
   driver's ioctl() interface. That change prevented 0 bytes received
   from being returned properly.

The first issue occurs because the EC console is always larger than
what the original ec_max_insize was set to. This caused no console
messages to be displayed. The second issue causes the console command
to potentially loop forever because the drain of the EC console is
never indicated because 0 could never be returned.

BUG=chrome-os-partner:21165
BRANCH=falco,peppy
TEST=Built and can now read 'ectool console' output as well
     as not including gargabe.

Change-Id: I3114594f0020a5198532aa78ce126f4da6caf09a
Reviewed-on: https://gerrit.chromium.org/gerrit/63445
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Aaron Durbin <adurbin@chromium.org>
Tested-by: Aaron Durbin <adurbin@chromium.org>
2013-07-26 14:07:45 -07:00
..
2012-08-10 09:28:34 -07:00
2013-07-01 16:14:16 -07:00
2013-07-26 14:07:45 -07:00
2013-07-01 16:14:16 -07:00
2012-11-01 14:09:34 -07:00
2013-07-01 16:14:16 -07:00
2013-07-01 16:14:16 -07:00
2013-07-24 15:50:19 -07:00
2012-07-10 00:35:58 -07:00