]> asedeno.scripts.mit.edu Git - linux.git/commit
i2c: add suspended flag and accessors for i2c adapters
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 19 Dec 2018 16:48:17 +0000 (17:48 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 8 Jan 2019 20:01:07 +0000 (21:01 +0100)
commit9ac6cb5fbb1781d120ca0ad29d014d35c9c3f0c4
treeb44a8a6d12a88ed839e4b6bd670a32e59ade2b95
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
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>
Documentation/i2c/fault-codes
drivers/i2c/i2c-core-base.c
include/linux/i2c.h