aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Hros <git@reversity.org>2020-02-19 22:14:19 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-03-02 10:48:06 +0100
commit62d19285312004bf5980d9b6c95c6bd378612f06 (patch)
treeadcbe5df8e76ce4e9f07fee865263cfc158dcfd8
parent806d06161af045dba29f3c7747550c93b2ea3ca9 (diff)
media: rtl28xxu: add missing sleep before probing slave demod
Slave demod needs some time to wake up otherwise it may not respond to the following probe commands. This problem manifested randomly on my Astrometa DVB-T2 dongle. Signed-off-by: Mario Hros <git@reversity.org> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--drivers/media/usb/dvb-usb-v2/rtl28xxu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
index c6881a1b3232..2080f6ef4be1 100644
--- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
+++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
@@ -552,6 +552,9 @@ tuner_found:
if (ret)
goto err;
+ /* slave demod needs some time to wake up */
+ msleep(20);
+
/* check slave answers */
ret = rtl28xxu_ctrl_msg(d, &req_mn88472);
if (ret == 0 && buf[0] == 0x02) {

Privacy Policy