diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-07-18 15:54:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-08-27 07:49:30 -0400 |
commit | 417c0a23b7d0384682d6032fbc6a62ab25ce7c18 (patch) | |
tree | 818e8eeb00589321c6f3b07090af9b17ca34110b | |
parent | a6fbd3b77ad0ad7b3020b4f50659e740ff68c719 (diff) |
[media] mceusb: give hardware time to reply to cmds
Sometimes the init routine is blasting commands out to the hardware
faster than it can reply. Throw a brief delay in there to give the
hardware a chance to reply before we send the next command.
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/rc/mceusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index eee28a57e2b4..7af57383c89d 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c | |||
@@ -735,6 +735,7 @@ static void mce_request_packet(struct mceusb_dev *ir, unsigned char *data, | |||
735 | static void mce_async_out(struct mceusb_dev *ir, unsigned char *data, int size) | 735 | static void mce_async_out(struct mceusb_dev *ir, unsigned char *data, int size) |
736 | { | 736 | { |
737 | mce_request_packet(ir, data, size, MCEUSB_TX); | 737 | mce_request_packet(ir, data, size, MCEUSB_TX); |
738 | msleep(10); | ||
738 | } | 739 | } |
739 | 740 | ||
740 | static void mce_flush_rx_buffer(struct mceusb_dev *ir, int size) | 741 | static void mce_flush_rx_buffer(struct mceusb_dev *ir, int size) |