OSDN Git Service

i2c: mlxcpld: Add support for extended transaction length for i2c-mlxcpld
authorMichael Shych <michaelsh@mellanox.com>
Tue, 27 Mar 2018 14:01:22 +0000 (14:01 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Apr 2018 08:39:28 +0000 (10:39 +0200)
commit313ce648b5a4ac8ceed63a36570126b7684165a0
tree7d251c2f7930062efca98a9a51d700590556b31f
parent6e29577fc2a870c4272d10d54d2fdec019301dc0
i2c: mlxcpld: Add support for extended transaction length for i2c-mlxcpld

It adds support for extended length of read and write transactions.
New CPLD logic allows double size of the read and write transactions
length. This feature is verified through capability register, which is
renamed from unclear LPF_REG to CPBLTY_REG. Two bits 5 and 6 of these
register are used for length capability detection, while only 01
combination indicates support of extended transaction length.
Others mean lack of such support.

Signed-off-by: Michael Shych <michaelsh@mellanox.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mlxcpld.c