linux-stable/drivers/platform
Enric Balletbo i Serra c5cd2b47b2 platform/chrome: cros_ec_proto: Report command not supported
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: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Prashant Malani <pmalani@chromium.org>
2020-03-02 11:04:05 +01:00
..
chrome platform/chrome: cros_ec_proto: Report command not supported 2020-03-02 11:04:05 +01:00
goldfish mm, tree-wide: rename put_user_page*() to unpin_user_page*() 2020-01-31 10:30:38 -08:00
mellanox platform/mellanox: mlxreg-hotplug: Add support for new capability register 2020-01-13 21:02:46 +02:00
mips MIPS: Kconfig: Use correct form for 'depends on' 2019-12-02 10:51:01 -08:00
olpc Platform: OLPC: add SPI MODULE_DEVICE_TABLE 2019-07-25 20:21:00 +03:00
x86 proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
Kconfig platform-drivers-x86 for v5.3-1 2019-07-14 16:51:47 -07:00
Makefile Platform: OLPC: Add XO-1.75 EC driver 2019-05-20 17:27:08 +03:00