diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2018-12-19 17:48:17 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-01-08 21:01:07 +0100 |
commit | 9ac6cb5fbb1781d120ca0ad29d014d35c9c3f0c4 (patch) | |
tree | b44a8a6d12a88ed839e4b6bd670a32e59ade2b95 /Documentation/i2c | |
parent | Linux 5.0-rc1 (diff) | |
download | linux-9ac6cb5fbb1781d120ca0ad29d014d35c9c3f0c4.tar.xz linux-9ac6cb5fbb1781d120ca0ad29d014d35c9c3f0c4.zip |
i2c: add suspended flag and accessors for i2c adapters
A few drivers open code the handling of suspended adapters. It could be
handled by the core, though, to ensure generic handling. This patch adds
the flag and accessor functions. The usage of these helpers is optional,
though. See the kerneldoc in this patch. Using the new flag, we now
reject further transfers if the adapter is already marked suspended.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'Documentation/i2c')
-rw-r--r-- | Documentation/i2c/fault-codes | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/i2c/fault-codes b/Documentation/i2c/fault-codes index 47c25abb7d52..0cee0fc545b4 100644 --- a/Documentation/i2c/fault-codes +++ b/Documentation/i2c/fault-codes @@ -112,6 +112,10 @@ EPROTO case is when the length of an SMBus block data response (from the SMBus slave) is outside the range 1-32 bytes. +ESHUTDOWN + Returned when a transfer was requested using an adapter + which is already suspended. + ETIMEDOUT This is returned by drivers when an operation took too much time, and was aborted before it completed. |