On Tue, Sep 16, 2014 at 05:21:03PM +0800, Fan Du wrote: > 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@xxxxxxxxx> > --- > drivers/i2c/busses/i2c-ismt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c > index 9844925..8a0275c 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 */ > -- > 1.7.9.5 > > Acked-by: Neil Horman <nhorman@xxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html