diff options
author | Fan Du <fan.du@intel.com> | 2014-09-16 17:21:03 +0800 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-09-29 22:41:19 +0200 |
commit | 8b57cebedd3e8a384ab678a69e9b7128eb438a1f (patch) | |
tree | a65fbbc347f70474d83bc0533a2be6bce92de6ee /drivers/i2c | |
parent | 639a26cf0771cb5a4d61a0f7777882cbda989753 (diff) | |
download | op-kernel-dev-8b57cebedd3e8a384ab678a69e9b7128eb438a1f.zip op-kernel-dev-8b57cebedd3e8a384ab678a69e9b7128eb438a1f.tar.gz |
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-ismt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c index d9ee43c..3f6ecbf 100644 --- a/drivers/i2c/busses/i2c-ismt.c +++ b/drivers/i2c/busses/i2c-ismt.c @@ -81,7 +81,7 @@ #define PCI_DEVICE_ID_INTEL_S1200_SMT1 0x0c5a #define PCI_DEVICE_ID_INTEL_AVOTON_SMT 0x1f15 -#define ISMT_DESC_ENTRIES 32 /* number of descriptor entries */ +#define ISMT_DESC_ENTRIES 2 /* number of descriptor entries */ #define ISMT_MAX_RETRIES 3 /* number of SMBus retries to attempt */ /* Hardware Descriptor Constants - Control Field */ |