Re: [PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-14 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 2:39 PM, Jonas Mark (BT-FIR/ENG1) wrote: > tout = jiffies + msecs_to_jiffies(at24_write_timeout); > do { > read_time = jiffies; > > ret = regmap_bulk_read(regmap, offset, buf, count); > dev_dbg(&client->dev, "read %zu@%d --> %d (%ld)\n", >

Re: [PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-06 Thread Jonas Mark (BT-FIR/ENG1)
Hi Andy, > >> > -#define at24_loop_until_timeout(tout, op_time) \ > >> > - for (tout = jiffies + msecs_to_jiffies(at24_write_timeout), \ > >> > -op_time = 0; \ > >> > -op_time ? time_before(op_t

Re: [PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-05 Thread Andy Shevchenko
On Sun, Aug 5, 2018 at 3:26 PM, Jonas Mark (BT-FIR/ENG1) wrote: > Hi Andy, > > Thank you for your feedback. > >> > -#define at24_loop_until_timeout(tout, op_time) \ >> > - for (tout = jiffies + msecs_to_jiffies(at24_write_timeout), \ >> > -op_time = 0;

Re: [PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-05 Thread Jonas Mark (BT-FIR/ENG1)
Hi Andy, Thank you for your feedback. > > -#define at24_loop_until_timeout(tout, op_time) \ > > - for (tout = jiffies + msecs_to_jiffies(at24_write_timeout), \ > > -op_time = 0; \ > > -op_time

Re: [PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-04 Thread Andy Shevchenko
On Sat, Aug 4, 2018 at 8:43 PM, Mark Jonas wrote: > -#define at24_loop_until_timeout(tout, op_time) \ > - for (tout = jiffies + msecs_to_jiffies(at24_write_timeout), \ > -op_time = 0; \ > -op_