From: Antti Palosaari Date: Fri, 18 May 2012 19:07:46 +0000 (-0300) Subject: [media] rtl28xxu: add small sleep for rtl2830 demod attach X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ccb5cf9bfcec739506d91737c4a9675e78868db2;p=openwrt%2Fstaging%2Fblogic.git [media] rtl28xxu: add small sleep for rtl2830 demod attach Demod needs some time to wake up after power on. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- 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)