]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/i2c/busses/i2c-ismt.c
i2c: ismt: Use minimum descriptor size
authorFan Du <fan.du@intel.com>
Tue, 16 Sep 2014 09:21:03 +0000 (17:21 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 29 Sep 2014 20:41:19 +0000 (22:41 +0200)
commit8b57cebedd3e8a384ab678a69e9b7128eb438a1f
treea65fbbc347f70474d83bc0533a2be6bce92de6ee
parent639a26cf0771cb5a4d61a0f7777882cbda989753
i2c: ismt: Use minimum descriptor size

Software is allowed to allocate number of descriptor size from 2 to 256,
this i2c controller could process more descriptor, but for i2c core soft
ware layer, only one i2c transaction is allowed each time.

So here switch to minimum 2 descriptor when initialization.

Signed-off-by: Fan Du <fan.du@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-ismt.c