diff options
author | Peter Marheine <pmarheine@chromium.org> | 2023-01-10 16:40:32 +1100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-09 04:47:57 +0000 |
commit | 2ec183d2e6a558d15ae9d01f5602450b5039584c (patch) | |
tree | 6f32364071d11326dc82026b1b4296741247a89c /twister | |
parent | 6dcdb53df670f8d6a15fe8428bee65ad6a1013be (diff) | |
download | chrome-ec-factory-nissa-15199.B-main.tar.gz |
battery: extend BATTERY_GET_STATIC hostcmd for 32-byte stringsfactory-nissa-15199.B-main
The Smart Battery Specification defines a string as up to 31 characters,
and nissa project has encountered some batteries where the existing
11-character strings for v1 of BATTERY_GET_STATIC are insufficient to
differentiate some batteries that can be used on a given device. This
change adds a new version of this host command that extends the strings
fields to each accommodate up to 31 characters of data, which should be
enough to support all smart batteries compliant with the latest version
of the specification.
BUG=b:263920422
TEST=`ectool battery` with updated ectool works on Nereid and uses the
new hostcmd version. If EC support for v2 or v1 is disabled, older
command versions are used.
BRANCH=nissa
Change-Id: Ia6a3a917051d5e641e7d38ef6936ec7174cb8aab
Signed-off-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4150669
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
(cherry picked from commit 19b4b94a0589a15fa40f7694ec79b3136e3219c6)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4173089
Commit-Queue: Clark Chung <ckclark@chromium.org>
Tested-by: Clark Chung <ckclark@chromium.org>
Diffstat (limited to 'twister')
0 files changed, 0 insertions, 0 deletions