Files
OpenCellular/util
Puthikorn Voravootivat 61f2327f07 ectool: read max outsize/insize from ec during comm_init
Current ectool uses max outsize / insize from protocol v2
even if we have a v3 protocol ec. This makes some command
not working when actual size supported by ec is less than
max size from protocol v2.

This CL uses protoinfo command to read max size from ec
during the initialization process to correctly set max size
for ec with protocol v3+. For ec with protocol v2, protoinfo
command won't exist, hence ectool won't modify the max size
and used the size that we set when init the protocol.

BRANCH=none
BUG=chrome-os-partner:31660
TEST=Run 'ectool flashread 0 0x1000 /tmp/fr' in ryu

Change-Id: I226b6c2fb2f7e9be73032f2c5146d2710939b293
Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/214838
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2014-08-29 21:55:34 +00:00
..
2013-12-19 00:12:28 +00:00
2014-08-18 23:16:32 +00:00
2013-07-01 16:14:16 -07:00
2012-11-01 14:09:34 -07:00
2014-08-20 02:12:53 +00:00
2014-02-17 17:35:43 +00:00
2013-07-01 16:14:16 -07:00
2013-07-01 16:14:16 -07:00
2014-01-15 04:52:54 +00:00
2014-07-23 02:30:10 +00:00