Skip to content

Commit

Permalink
[media] mceusb: give hardware time to reply to cmds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Aug 27, 2011
1 parent a6fbd3b commit 417c0a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/rc/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ static void mce_request_packet(struct mceusb_dev *ir, unsigned char *data,
static void mce_async_out(struct mceusb_dev *ir, unsigned char *data, int size)
{
mce_request_packet(ir, data, size, MCEUSB_TX);
msleep(10);
}

static void mce_flush_rx_buffer(struct mceusb_dev *ir, int size)
Expand Down

0 comments on commit 417c0a2

Please sign in to comment.