]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: add quirk structure to describe adapter flaws
authorWolfram Sang <wsa@the-dreams.de>
Mon, 5 Jan 2015 14:35:39 +0000 (15:35 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 13 Mar 2015 14:09:41 +0000 (15:09 +0100)
commitfc2323393c99b9b5c1d2089106842f01202a4032
tree1b9326c70fbdcf81316bf40937f86f10c44a78fb
parent9cbe621030a9cce16d27329dac74fd4b1c1d9412
i2c: add quirk structure to describe adapter flaws

The number of I2C adapters which are not fully I2C compatible is rising,
sadly. Drivers usually do handle the flaws, still the user receives only
some errno for a transfer which normally can be expected to work. This
patch introduces a formal description of flaws. One advantage is that
the core can check before the actual transfer if the messages could be
transferred at all. This is done in the next patch. Another advantage is
that we can pass this information to the user so the restrictions are
exactly known and further actions can be based on that. This will be
done later after some stabilization period for this description.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Tested-by: Ray Jui <rjui@broadcom.com>
Tested-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Tested-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Tested-By: Ludovic Desroches <ludovic.desroches@atmel.com>
include/linux/i2c.h