Skip to content

Commit

Permalink
i2c: ismt: Use minimum descriptor size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fan Du authored and Wolfram Sang committed Sep 29, 2014
1 parent 639a26c commit 8b57ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-ismt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8b57ceb

Please sign in to comment.