]> Pileus Git - ~andy/linux/commit
[media] em28xx: use a better value for I2C timeouts
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 28 Dec 2013 10:42:47 +0000 (07:42 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 10 Jan 2014 08:10:07 +0000 (06:10 -0200)
commitd20e4ed6d30c6ecee315eea0efb3449c3591d09e
tree618cb9da20c3ed822495338301b3eb77bc47efdc
parentd1b7213b480a42c9bc78938a1b3f4bc14089467f
[media] em28xx: use a better value for I2C timeouts

In the lack of a better spec, let's assume the timeout
values compatible with SMBus spec:
http://smbus.org/specs/smbus110.pdf

at chapter 8 - Electrical Characteristics of SMBus devices

Ok, SMBus is a subset of I2C, and not all devices will be
following it, but the timeout value before this patch was not
even following the spec.

So, while we don't have a better guess for it, use 35 + 1
ms as the timeout.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx.h