[media] lirc_zilog: z8 on usb doesn't like back-to-back i2c_master_send
authorJarod Wilson <jarod@redhat.com>
Wed, 19 Jan 2011 21:49:19 +0000 (18:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 31 Jan 2011 14:18:42 +0000 (12:18 -0200)
commit5766d204ae6c1f54beaef37a18c3c9b5e32c3b16
tree05858f379d89689bf9245e2a0caccab5dfe949fc
parent7f2a06deaa22104a4cf4c0cc3d7c44c7e3228ef3
[media] lirc_zilog: z8 on usb doesn't like back-to-back i2c_master_send

Both the HD-PVR and HVR-1950, driven by the hdpvr and pvrusb2 drivers
respectively, have a zilog z8 chip exposed via i2c. These are both
usb-connected devices, and on both of them, back-to-back i2c_master_send
calls that work fine with a z8 on a pci card fail with a -EIO, as the
chip isn't yet ready from the prior command. To cope with that, add a
delay and retry loop where necessary.

Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/lirc/lirc_zilog.c