diff options
author | Guenter Roeck <[email protected]> | 2020-08-22 08:08:54 -0700 |
---|---|---|
committer | Enric Balletbo i Serra <[email protected]> | 2020-08-24 11:37:34 +0200 |
commit | d509f8a71aa0a5e6d92409d9f0b4eaa94615727d (patch) | |
tree | 176d4849684f1a6e9973c011378636330a77dc85 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b646e7db1ce85e24bdb3afd16e542a348a53d2ab (diff) |
pwm: cros-ec: Accept more error codes from cros_ec_cmd_xfer_status
Since commit c5cd2b47b203 ("platform/chrome: cros_ec_proto: Report command
not supported") we can no longer assume that cros_ec_cmd_xfer_status()
reports -EPROTO for all errors returned by the EC itself. A follow-up
patch will change cros_ec_cmd_xfer_status() to report additional errors
reported by the EC as distinguished Linux error codes.
Handle this change by no longer assuming that only -EPROTO is used
to report all errors returned by the EC itself. Instead, support both
the old and the new error codes.
Add a comment describing cros_ec_num_pwms() to explain its functionality.
Cc: Gwendal Grignou <[email protected]>
Cc: Yu-Hsuan Hsu <[email protected]>
Cc: Prashant Malani <[email protected]>
Cc: Brian Norris <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions