cros_ec: Add a max_response_size parameter overriding the EC-reported value

On some platforms, the EC reports an incorrect max response size. Add a
programmer parameter to override it in those cases.

BUG=b:171370392, b:171354328
TEST=FP firmware can be updated on Zork with max_response_size=256
BRANCH=None

Change-Id: I9aa66c5fd6a9dd37d3ca24f8ca5e1eb0d4abcc4d
Signed-off-by: Sam McNally <sammc@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2500801
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
(cherry picked from commit 6ac63c162fca72bd965c6e56b43e072d1d82e05d)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2504450
Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
Commit-Queue: Bhanu Prakash Maiya <bhanumaiya@google.com>
Tested-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
Auto-Submit: Bhanu Prakash Maiya <bhanumaiya@google.com>
2 files changed