summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-05-18 21:07:46 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-20 15:25:00 +0200
commitccb5cf9bfcec739506d91737c4a9675e78868db2 (patch)
treed05aa95a8ccbb40240818b084a747de4a3843a90
parent[media] rtl2830: prevent hw access when sleeping (diff)
downloadlinux-ccb5cf9bfcec739506d91737c4a9675e78868db2.tar.xz
linux-ccb5cf9bfcec739506d91737c4a9675e78868db2.zip
[media] rtl28xxu: add small sleep for rtl2830 demod attach
Demod needs some time to wake up after power on. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/dvb-usb/rtl28xxu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/rtl28xxu.c b/drivers/media/dvb/dvb-usb/rtl28xxu.c
index 4e69e9db849e..41e1f5537f44 100644
--- a/drivers/media/dvb/dvb-usb/rtl28xxu.c
+++ b/drivers/media/dvb/dvb-usb/rtl28xxu.c
@@ -322,6 +322,9 @@ static int rtl2831u_frontend_attach(struct dvb_usb_adapter *adap)
* since there is some demod params needed to set according to tuner.
*/
+ /* demod needs some time to wake up */
+ msleep(20);
+
/* open demod I2C gate */
ret = rtl28xxu_ctrl_msg(adap->dev, &req_gate);
if (ret)