[PATCH v4 08/22] [media] em28xx: convert i2c wait completion logic to use jiffies

2014-01-04 Thread Mauro Carvalho Chehab
The I2C wait completion/timeout logic currently assumes that msleep(5) will wait exaclty 5 ms. This is not true at all, as it depends on CONFIG_HZ. Convert it to use jiffies, in order to not wait for more time than needed. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/em28xx/em28xx

Re: [PATCH v4 08/22] [media] em28xx: convert i2c wait completion logic to use jiffies

2014-01-05 Thread Frank Schäfer
Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: > The I2C wait completion/timeout logic currently assumes that > msleep(5) will wait exaclty 5 ms. This is not true at all, > as it depends on CONFIG_HZ. > > Convert it to use jiffies, in order to not wait for more time > than needed. > > Signed-o

Re: [PATCH v4 08/22] [media] em28xx: convert i2c wait completion logic to use jiffies

2014-01-05 Thread Mauro Carvalho Chehab
Em Sun, 05 Jan 2014 12:03:51 +0100 Frank Schäfer escreveu: > Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: > > The I2C wait completion/timeout logic currently assumes that > > msleep(5) will wait exaclty 5 ms. This is not true at all, > > as it depends on CONFIG_HZ. > > > > Convert it to us

Re: [PATCH v4 08/22] [media] em28xx: convert i2c wait completion logic to use jiffies

2014-01-06 Thread Frank Schäfer
Am 05.01.2014 14:10, schrieb Mauro Carvalho Chehab: > Em Sun, 05 Jan 2014 12:03:51 +0100 > Frank Schäfer escreveu: > >> Am 04.01.2014 11:55, schrieb Mauro Carvalho Chehab: >>> The I2C wait completion/timeout logic currently assumes that >>> msleep(5) will wait exaclty 5 ms. This is not true at all