ec/google/chromeec: ignore LIMIT_POWER based on command code in response
commitcf425783c8896173a74103bd4936d0c205954f83
authorRizwan Qureshi <rizwan.qureshi@intel.com>
Fri, 27 Dec 2019 16:11:07 +0000 (27 21:41 +0530)
committerEdward O'Callaghan <quasisec@chromium.org>
Sun, 29 Dec 2019 00:34:21 +0000 (29 00:34 +0000)
treeec77aa1f6fbbb7edd77543d4c6672e1443334171
parenta76cf28279bee4359991c429fe00ccb514cc8d00
ec/google/chromeec: ignore LIMIT_POWER based on command code in response

Assume that LIMIT_POWER is not requested if the ec does not support it.
Do this by checking the command code in the response message instead
of return value.

BUG=b:146165519
BRANCH=None
TEST=Boot puff with EC which does not support LIMIT_POWER param.

Change-Id: Ib2f5f69a53f204acebfab3e36aab2960eeec1204
Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37947
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
src/ec/google/chromeec/ec.c