• Enric Balletbo i Serra's avatar
    platform/chrome: cros_ec_proto: Report command not supported · c5cd2b47
    Enric Balletbo i Serra authored
    In practice most drivers that use the EC protocol what really care is if
    the result was successful or not, hence, we introduced a
    cros_ec_cmd_xfer_status() function that converts EC errors to standard
    Linux error codes. On some few cases, though, we are interested on know
    if the command is supported or not, and in such cases, just ignore the
    error. To achieve this, return a -ENOTSUPP error when the command is not
    supported.
    
    This will allow us to finish the conversion of all users to use the
    cros_ec_cmd_xfer_status() function instead of cros_ec_cmd_xfer() and
    make the latest private to the protocol driver, so users of the protocol
    are not confused in which function they should use.
    Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
    Tested-by: default avatarPrashant Malani <pmalani@chromium.org>
    c5cd2b47
cros_ec_proto.c 22.5 KB