From: Antti Palosaari Date: Sun, 2 Jun 2013 22:41:46 +0000 (-0300) Subject: upstream: [media] radio-keene: add delay in order to settle hardware X-Git-Tag: submit/tizen/20141121.110247~2238 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=52365c8530daa07af7e2dc5ae7a3125f9ab2818c;p=platform%2Fkernel%2Flinux-3.10.git upstream: [media] radio-keene: add delay in order to settle hardware It was found by trial and error testing that at least 11 ms delay is needed before first I/O, otherwise device will skip given command. Signed-off-by: Antti Palosaari Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/radio/radio-keene.c b/drivers/media/radio/radio-keene.c index 99da3d4..21db23b 100644 --- a/drivers/media/radio/radio-keene.c +++ b/drivers/media/radio/radio-keene.c @@ -382,6 +382,8 @@ static int usb_keene_probe(struct usb_interface *intf, video_set_drvdata(&radio->vdev, radio); set_bit(V4L2_FL_USE_FH_PRIO, &radio->vdev.flags); + /* at least 11ms is needed in order to settle hardware */ + msleep(20); keene_cmd_main(radio, 95.16 * FREQ_MUL, false); retval = video_register_device(&radio->vdev, VFL_TYPE_RADIO, -1);