OSDN Git Service

i2c: mlxcpld: Add support for smbus block read transaction
authorMichael Shych <michaelsh@mellanox.com>
Tue, 27 Mar 2018 14:01:23 +0000 (14:01 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 30 Apr 2018 08:39:28 +0000 (10:39 +0200)
commitc9bfdc7c16cbc16348ede102f21d0c5c1338cee8
tree0484f93b3acaf580bcb9db7a65b51069200dad4c
parent313ce648b5a4ac8ceed63a36570126b7684165a0
i2c: mlxcpld: Add support for smbus block read transaction

It adds support for smbus block read transaction. CPLD smbus block read bit
of capability register is verified during driver initialization, and driver
data is updated if such capability is available. In case an upper layer
requests a read transaction of length one and expects that length will be
the first received byte, driver will notify CPLD about SMBus block read
transaction flavor, so CPLD will know to execute such kind of transaction.

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