From: Jarod Wilson Date: Mon, 18 Jul 2011 19:54:22 +0000 (-0300) Subject: [media] mceusb: give hardware time to reply to cmds X-Git-Tag: MMI-PSA29.97-13-9~18177^2~325 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=417c0a23b7d0384682d6032fbc6a62ab25ce7c18;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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, 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)