Skip to content
Commit 2187f03a authored by Wolfram Sang's avatar Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa@the-dreams.de>
Tested-by: default avatarRay Jui <rjui@broadcom.com>
Tested-by: default avatarIvan T. Ivanov <iivanov@mm-sol.com>
Tested-by: default avatarNeelesh Gupta <neelegup@linux.vnet.ibm.com>
Tested-By: default avatarLudovic Desroches <ludovic.desroches@atmel.com>
parent c517d838
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment