]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit2187f03a9576c4fb8342deed912b5ba6fcf98cba
tree1b9326c70fbdcf81316bf40937f86f10c44a78fb
parentc517d838eb7d07bbe9507871fab3931deccff539
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