+Shubhrajyoti, On 04. 06. 19 1:33, Robert Hancock wrote: > This driver does not support reading more than 255 bytes at once because > the register for storing the number of bytes to read is only 8 bits. Add > a max_read_len quirk to enforce this. How did you find it out? Any particular issue you have had that you were looking for a solution? I think there is more things behind which should be described in commit message. Thanks, Michal > > Signed-off-by: Robert Hancock <hancock@xxxxxxxxxxxxx> > --- > drivers/i2c/busses/i2c-xiic.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c > index 0fea7c5..37b3b93 100644 > --- a/drivers/i2c/busses/i2c-xiic.c > +++ b/drivers/i2c/busses/i2c-xiic.c > @@ -709,11 +709,16 @@ static u32 xiic_func(struct i2c_adapter *adap) > .functionality = xiic_func, > }; > > +static const struct i2c_adapter_quirks xiic_quirks = { > + .max_read_len = 255, > +}; > + > static const struct i2c_adapter xiic_adapter = { > .owner = THIS_MODULE, > .name = DRIVER_NAME, > .class = I2C_CLASS_DEPRECATED, > .algo = &xiic_algorithm, > + .quirks = &xiic_quirks, > }; > > >